svn commit: r455304 - head/devel/py-asttokens

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Dec 1 19:45:54 UTC 2017


Author: amdmi3
Date: Fri Dec  1 19:45:53 2017
New Revision: 455304
URL: https://svnweb.freebsd.org/changeset/ports/455304

Log:
  - Simplify and properly support python3 thanks to FLAVORS support

Modified:
  head/devel/py-asttokens/Makefile

Modified: head/devel/py-asttokens/Makefile
==============================================================================
--- head/devel/py-asttokens/Makefile	Fri Dec  1 19:14:20 2017	(r455303)
+++ head/devel/py-asttokens/Makefile	Fri Dec  1 19:45:53 2017	(r455304)
@@ -14,20 +14,14 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}astroid>0:devel/py-astroid@${FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist distutils
 NO_ARCH=	yes
 
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_REL} < 3000
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${FLAVOR} \
-	${PYTHON_PKGNAMEPREFIX}astroid>0:devel/py-astroid@${FLAVOR}
-
-# not supported on 3.x due to missing test depends
 do-test:
 	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list