Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 08:12:50 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339319 - head/dns/py-namebench
Message-ID:  <201401100812.s0A8Co68092107@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Fri Jan 10 08:12:49 2014
New Revision: 339319
URL: http://svnweb.freebsd.org/changeset/ports/339319

Log:
  - adopt staging support
  - trim comment
  - fix dependencies
  - use python autoplist feature

Deleted:
  head/dns/py-namebench/pkg-plist
Modified:
  head/dns/py-namebench/Makefile

Modified: head/dns/py-namebench/Makefile
==============================================================================
--- head/dns/py-namebench/Makefile	Fri Jan 10 08:11:14 2014	(r339318)
+++ head/dns/py-namebench/Makefile	Fri Jan 10 08:12:49 2014	(r339319)
@@ -3,6 +3,7 @@
 
 PORTNAME=	namebench
 PORTVERSION=	1.3.1
+PORTREVISION=	1
 CATEGORIES=	dns python
 MASTER_SITES=	GOOGLE_CODE
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,21 +11,19 @@ DISTNAME=	${PORTNAME}-${PORTVERSION}-sou
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	jgh@FreeBSD.org
-COMMENT=	An open-source DNS benchmark utility
+COMMENT=	Open Source DNS benchmark utility
 
 LICENSE=	APACHE20
 
-RUN_DEPENDS+=	\
-	${PYTHON_PKGNAMEPREFIX}Jinja2>=2.5.5:${PORTSDIR}/devel/py-Jinja2 \
+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
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
-.if empty(PORT_OPTIONS:MX11)
+.if ! ${PORT_OPTIONS:MX11}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tkinter>=2.7.1:${PORTSDIR}/x11-toolkits/py-tkinter
 .endif
 
@@ -36,6 +35,7 @@ PORTDOCS=	README.txt
 USE_PYTHON=	yes
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_INSTALLARGS+=	--install-data=${PREFIX}/share
+PYDISTUTILS_AUTOPLIST=	yes
 
 NO_INSTALL_MANPAGES=	yes
 
@@ -44,9 +44,7 @@ post-patch:
 		${WRKSRC}/libnamebench/util.py
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401100812.s0A8Co68092107>