summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz>2015-01-05 08:42:32 +0000
committerwiz <wiz>2015-01-05 08:42:32 +0000
commit89d7f10c63414becf320fd65a8f55f31a413beb3 (patch)
tree74fa702ba6033c6a4ff4a6aa459f8624fbf5c11d /security
parentf9b99f077175496006ece375c8294fb8145ae1fd (diff)
downloadpkgsrc-89d7f10c63414becf320fd65a8f55f31a413beb3.tar.gz
Depend on py-enum34 if not building for python-3.4.
Diffstat (limited to 'security')
-rw-r--r--security/py-cryptography/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/py-cryptography/Makefile b/security/py-cryptography/Makefile
index 19e0096621a..23ce4f7f963 100644
--- a/security/py-cryptography/Makefile
+++ b/security/py-cryptography/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2015/01/04 10:25:08 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2015/01/05 08:42:32 wiz Exp $
DISTNAME= cryptography-0.7.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -20,6 +20,12 @@ BUILD_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
BUILD_DEPENDS+= ${PYPKGPREFIX}-requests>=0.8:../../devel/py-requests
BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=0.8:../../devel/py-test
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" || ${PYPKGPREFIX} == "py33"
+DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.endif
+
do-test:
cd ${WRKSRC} && py.test-${PYVERSSUFFIX}