Sun Mar 31 00:32:39 2019 UTC ()
textproc/itstool: Declare python 2.7 not acceptable

With python 2.7, itstool fails to process the cs translation as part
of the gnumeric112 build.  This appears to be about confusion between
ascii and utf-8 on stderr or something like that.  Because it appears
that few who might debug this are still using python 2.7, mark it
incompatible, which will cause the python3.7 version of itstool to be
built and used.

Proposed on pkgsrc-users without objection, and with no reports of the
2.7 version working.


(gdt)
diff -r1.16 -r1.17 pkgsrc/textproc/itstool/Makefile

cvs diff -r1.16 -r1.17 pkgsrc/textproc/itstool/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/itstool/Makefile 2018/11/30 15:04:02 1.16
+++ pkgsrc/textproc/itstool/Makefile 2019/03/31 00:32:39 1.17
@@ -1,21 +1,28 @@ @@ -1,21 +1,28 @@
1# $NetBSD: Makefile,v 1.16 2018/11/30 15:04:02 wiz Exp $ 1# $NetBSD: Makefile,v 1.17 2019/03/31 00:32:39 gdt Exp $
2 2
3DISTNAME= itstool-2.0.5 3DISTNAME= itstool-2.0.5
 4PKGREVISION= 1
4CATEGORIES= textproc 5CATEGORIES= textproc
5MASTER_SITES= http://files.itstool.org/itstool/ 6MASTER_SITES= http://files.itstool.org/itstool/
6EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
7 8
8MAINTAINER= prlw1@cam.ac.uk 9MAINTAINER= prlw1@cam.ac.uk
9HOMEPAGE= http://itstool.org/ 10HOMEPAGE= http://itstool.org/
10COMMENT= ITS Tool allows you to translate XML documents with PO files 11COMMENT= ITS Tool allows you to translate XML documents with PO files
11LICENSE= gnu-gpl-v3 12LICENSE= gnu-gpl-v3
12 13
13GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
14 15
 16# With 27, gnumeric112 fails to build the cs translation with
 17# ascii/utf-8 confusion. This is not understood, so just avoid
 18# python27, as it increasingly seems that no one is using it and
 19# debugging problems with that version.
 20PYTHON_VERSIONS_INCOMPATIBLE= 27
 21
15REPLACE_PYTHON= ${WRKSRC}/itstool.in 22REPLACE_PYTHON= ${WRKSRC}/itstool.in
16 23
17DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2 24DEPENDS+= ${PYPKGPREFIX}-libxml2-[0-9]*:../../textproc/py-libxml2
18 25
19.include "../../lang/python/application.mk" 26.include "../../lang/python/application.mk"
20.include "../../lang/python/tool.mk" 27.include "../../lang/python/tool.mk"
21.include "../../mk/bsd.pkg.mk" 28.include "../../mk/bsd.pkg.mk"