aboutsummaryrefslogblamecommitdiff
path: root/dns/py-namebench/Makefile
blob: 23f0dde0a65122857f6c81194d51b4166ac5cec4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
           

                         
                     
                 


                                     
                                       
                                                 

                    
                               
                                                 
 
                        
 
                                                                                




                                                                                

                              
                          


                                                                                         
                                  
                                            


                          


                                   

                                                              
           

                                                        

             

                                                                   

                      
# Created by: Sahil Tandon <sahil@tandon.net>
# $FreeBSD$

PORTNAME=	namebench
PORTVERSION=	1.3.1
PORTREVISION=	1
CATEGORIES=	dns python benchmarks
MASTER_SITES=	GOOGLE_CODE \
		LOCAL/jgh/dns/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME}-${PORTVERSION}-source
EXTRACT_SUFX=	.tgz

MAINTAINER=	jgh@FreeBSD.org
COMMENT=	Open Source DNS benchmark utility

LICENSE=	APACHE20

RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.5.5:${PORTSDIR}/devel/py-Jinja2 \
	${PYTHON_PKGNAMEPREFIX}graphy>=1.0:${PORTSDIR}/graphics/py-graphy \
	${PYTHON_PKGNAMEPREFIX}dnspython>=1.9.4:${PORTSDIR}/dns/py-dnspython \
	${PYTHON_PKGNAMEPREFIX}httplib2>=0.6.0:${PORTSDIR}/www/py-httplib2 \
	${PYTHON_PKGNAMEPREFIX}simplejson>=2.1.6:${PORTSDIR}/devel/py-simplejson

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MX11}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=2.7.1:${PORTSDIR}/x11-toolkits/py-tkinter
.endif

MAKE_ENV+=	NO_THIRD_PARTY=yes
WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

PORTDOCS=	README.txt

USES=		python
USE_PYTHON=	distutils autoplist

PYDISTUTILS_INSTALLARGS+=	--install-data=${PREFIX}/share

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
		${WRKSRC}/libnamebench/util.py

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>