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!
This commit is contained in:
Leonardo Taccari 2016-10-18 11:45:10 +02:00
parent 29c0fdb886
commit 9b688e1ff7

View file

@ -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"