pkgsrc-WIP-changes archive

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

py-brotli: fix installation for Python 3 and misc improvements

Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <>
Pushed By:	leot
Date:		Mon Feb 13 22:48:49 2017 +0100
Changeset:	c069d986073de3343c810ed497f26077e3614bb9

Modified Files:

Log Message:
py-brotli: fix installation for Python 3 and misc improvements

- Use _PYTHON_VERSION instead of PYPKGPREFIX (more consistent with other
- include before using using _PYTHON_VERSION (otherwise for packages
  that DEPENDS on py-brotli broken conditional can happen)
- Fix PLIST for Python 3 marking the offending entry via{2,3}x

To see a diff of this commit:;a=commitdiff;h=c069d986073de3343c810ed497f26077e3614bb9

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

 py-brotlipy/Makefile | 5 +++--
 py-brotlipy/PLIST    | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/py-brotlipy/Makefile b/py-brotlipy/Makefile
index 445c9880ff..fde430e0e6 100644
--- a/py-brotlipy/Makefile
+++ b/py-brotlipy/Makefile
@@ -12,9 +12,10 @@ LICENSE=	mit
 DEPENDS+=	${PYPKGPREFIX}-cffi>=1.0.0:../../devel/py-cffi
-.if ${PYPKGPREFIX} == "py27"
+.include "../../lang/python/"
+.if ${_PYTHON_VERSION} < 33
 DEPENDS+=	${PYPKGPREFIX}-enum34>=1.0.4:../../devel/py-enum34
-.include "../../lang/python/"
 .include "../../mk/"
diff --git a/py-brotlipy/PLIST b/py-brotlipy/PLIST
index 6f505f3d35..f98e6b5d44 100644
--- a/py-brotlipy/PLIST
+++ b/py-brotlipy/PLIST
@@ -2,7 +2,8 @@

Home | Main Index | Thread Index | Old Index