svn commit: r407979 - head/mail/py-pyspf

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed Feb 3 20:54:39 UTC 2016


Author: sunpoet
Date: Wed Feb  3 20:54:37 2016
New Revision: 407979
URL: https://svnweb.freebsd.org/changeset/ports/407979

Log:
  - Sort knobs
  - Remove outdated PYTHON_REL check
  - Use post-patch:
  - Do not silence test message

Modified:
  head/mail/py-pyspf/Makefile

Modified: head/mail/py-pyspf/Makefile
==============================================================================
--- head/mail/py-pyspf/Makefile	Wed Feb  3 20:54:33 2016	(r407978)
+++ head/mail/py-pyspf/Makefile	Wed Feb  3 20:54:37 2016	(r407979)
@@ -17,11 +17,9 @@ LICENSE=	PSFL
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}authres>=0:${PORTSDIR}/mail/py-authres
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml
 
-USES=		python shebangfix
-USE_PYTHON=	autoplist concurrent distutils
-
 NO_ARCH=	yes
-
+USE_PYTHON=	autoplist concurrent distutils
+USES=		python shebangfix
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 PLIST_FILES=	bin/spf.py
@@ -29,10 +27,6 @@ SHEBANG_FILES=	spf.py
 
 .include <bsd.port.pre.mk>
 
-.if ${PYTHON_REL} <= 3300
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}ipaddr>=0:${PORTSDIR}/devel/py-ipaddr
-.endif
-
 .if ${PYTHON_REL} >= 3000
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}py3dns>=0:${PORTSDIR}/dns/py-py3dns
 .else
@@ -40,7 +34,7 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dns
 .endif
 
 # Make the tests run as a module
-post-extract:
+post-patch:
 	@${TOUCH} ${WRKSRC}/test/__init__.py
 
 post-install:
@@ -48,6 +42,6 @@ post-install:
 	${LN} -s ${PYTHONPREFIX_SITELIBDIR}/spf.py ${STAGEDIR}${PREFIX}/bin/
 
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m test.testspf
+	cd ${WRKSRC}/ && ${PYTHON_CMD} -m test.testspf
 
 .include <bsd.port.post.mk>


More information about the svn-ports-all mailing list