pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-brotlipy: restrict py-enum34 dependency to Python 2.7



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Tue Oct 18 11:45:10 2016 +0200
Changeset:	9b688e1ff78b9c8e1a3d551156df1cf4378c07c4

Modified Files:
	py-brotlipy/Makefile

Log Message:
py-brotlipy: restrict py-enum34 dependency to Python 2.7

Only older Pythons need py-enum34 module, mark it as a DEPENDS only if
PYPKGPREFIX is "py27" (this also reflects upstream setup.py).

Thanks to <wiz> for noticing it!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9b688e1ff78b9c8e1a3d551156df1cf4378c07c4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-brotlipy/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diffs:
diff --git a/py-brotlipy/Makefile b/py-brotlipy/Makefile
index b659517..445c988 100644
--- a/py-brotlipy/Makefile
+++ b/py-brotlipy/Makefile
@@ -11,7 +11,10 @@ COMMENT=	Python Bindings to the Brotli Compression Algorithm
 LICENSE=	mit
 
 DEPENDS+=	${PYPKGPREFIX}-cffi>=1.0.0:../../devel/py-cffi
+
+.if ${PYPKGPREFIX} == "py27"
 DEPENDS+=	${PYPKGPREFIX}-enum34>=1.0.4:../../devel/py-enum34
+.endif
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index