pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-jinja2 PLIST fix for Python < 3.6
details: https://anonhg.NetBSD.org/pkgsrc/rev/6f89d3a0b9d0
branches: trunk
changeset: 362097:6f89d3a0b9d0
user: adam <adam%pkgsrc.org@localhost>
date: Thu May 04 20:23:31 2017 +0000
description:
PLIST fix for Python < 3.6
diffstat:
textproc/py-jinja2/Makefile | 11 ++++++++++-
textproc/py-jinja2/PLIST | 10 +++++-----
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 00c9f4a53a82 -r 6f89d3a0b9d0 textproc/py-jinja2/Makefile
--- a/textproc/py-jinja2/Makefile Thu May 04 19:53:41 2017 +0000
+++ b/textproc/py-jinja2/Makefile Thu May 04 20:23:31 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2017/05/04 18:11:09 adam Exp $
+# $NetBSD: Makefile,v 1.22 2017/05/04 20:23:31 adam Exp $
DISTNAME= Jinja2-2.9.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -20,5 +20,14 @@
SUBST_SED.unicode+= -e "s,u',',g"
SUBST_SED.unicode+= -e 's,u",",g'
+.include "../../lang/python/pyversion.mk"
+
+# async byte-compilation fails for Python < 3.6
+# see https://github.com/pallets/jinja/issues/643
+PLIST_VARS+= async
+.if "${PYPKGPREFIX}" == "py36"
+PLIST.async= yes
+.endif
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 00c9f4a53a82 -r 6f89d3a0b9d0 textproc/py-jinja2/PLIST
--- a/textproc/py-jinja2/PLIST Thu May 04 19:53:41 2017 +0000
+++ b/textproc/py-jinja2/PLIST Thu May 04 20:23:31 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2017/05/04 19:53:41 adam Exp $
+@comment $NetBSD: PLIST,v 1.9 2017/05/04 20:23:31 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -16,11 +16,11 @@
${PYSITELIB}/jinja2/_stringdefs.pyc
${PYSITELIB}/jinja2/_stringdefs.pyo
${PYSITELIB}/jinja2/asyncfilters.py
-${PLIST.py3x}${PYSITELIB}/jinja2/asyncfilters.pyc
-${PLIST.py3x}${PYSITELIB}/jinja2/asyncfilters.pyo
+${PLIST.async}${PYSITELIB}/jinja2/asyncfilters.pyc
+${PLIST.async}${PYSITELIB}/jinja2/asyncfilters.pyo
${PYSITELIB}/jinja2/asyncsupport.py
-${PLIST.py3x}${PYSITELIB}/jinja2/asyncsupport.pyc
-${PLIST.py3x}${PYSITELIB}/jinja2/asyncsupport.pyo
+${PLIST.async}${PYSITELIB}/jinja2/asyncsupport.pyc
+${PLIST.async}${PYSITELIB}/jinja2/asyncsupport.pyo
${PYSITELIB}/jinja2/bccache.py
${PYSITELIB}/jinja2/bccache.pyc
${PYSITELIB}/jinja2/bccache.pyo
Home |
Main Index |
Thread Index |
Old Index