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:
parent
29c0fdb886
commit
9b688e1ff7
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue