pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ctemplate devel/ctemplate: restrict to Python 2.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b0509330c025
branches:  trunk
changeset: 333292:b0509330c025
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat May 04 15:29:50 2019 +0000

description:
devel/ctemplate: restrict to Python 2.7

diffstat:

 devel/ctemplate/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 1042117e6a9c -r b0509330c025 devel/ctemplate/Makefile
--- a/devel/ctemplate/Makefile  Sat May 04 15:17:39 2019 +0000
+++ b/devel/ctemplate/Makefile  Sat May 04 15:29:50 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2019/04/25 07:32:44 maya Exp $
+# $NetBSD: Makefile,v 1.15 2019/05/04 15:29:50 rillig Exp $
 
 DISTNAME=      ctemplate-2.3
 PKGREVISION=   4
@@ -22,6 +22,12 @@
 REPLACE_PERL=          src/template-converter
 REPLACE_PYTHON=                src/htmlparser/generate_fsm.py
 
+# In Python 3.x, print is a function, not a statement:
+#      print '\n'.join(...)
+# SyntaxError: invalid syntax
+# https://github.com/OlafvdSpek/ctemplate/issues/137
+PYTHON_VERSIONS_ACCEPTED=      27
+
 .include "../../lang/python/application.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index