aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-qrcode
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2017-11-10 08:41:59 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2017-11-10 08:41:59 +0000
commit5a2f83792117063ebef6a5940a7fb99bd825b268 (patch)
treec2e02757d5ecc524cda5566b96be86d3b70ab467 /textproc/py-qrcode
parent667921adb34c6174d077fb418d2e3dbc2cd550b4 (diff)
Fix dependencies for py3-* stub port.
Notes
Notes: svn path=/head/; revision=453887
Diffstat (limited to 'textproc/py-qrcode')
-rw-r--r--textproc/py-qrcode/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/textproc/py-qrcode/Makefile b/textproc/py-qrcode/Makefile
index 88be2a75dbac..e2b3c9d3ba99 100644
--- a/textproc/py-qrcode/Makefile
+++ b/textproc/py-qrcode/Makefile
@@ -3,6 +3,7 @@
PORTNAME= qrcode
PORTVERSION= 5.3
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +13,18 @@ COMMENT= QR Code image generator
LICENSE= BSD3CLAUSE
+USES?= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} > 3000
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.8:devel/py3-six \
+ ${PYTHON_PKGNAMEPREFIX}pillow>=2.6:graphics/py3-pillow
+.else
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.8:devel/py-six \
${PYTHON_PKGNAMEPREFIX}pillow>=2.6:graphics/py-pillow
+.endif
-USES?= python
-USE_PYTHON= autoplist distutils
+.include <bsd.port.post.mk>
-.include <bsd.port.mk>