pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc Fix building with Python 3.8



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7858b7aa7c3c
branches:  trunk
changeset: 403086:7858b7aa7c3c
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 21 13:19:29 2019 +0000

description:
Fix building with Python 3.8

diffstat:

 textproc/py-cElementTree/Makefile |  6 +++++-
 textproc/py-expat/Makefile        |  4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r a22a65eb6c64 -r 7858b7aa7c3c textproc/py-cElementTree/Makefile
--- a/textproc/py-cElementTree/Makefile Mon Oct 21 12:30:36 2019 +0000
+++ b/textproc/py-cElementTree/Makefile Mon Oct 21 13:19:29 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2016/08/28 15:48:35 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2019/10/21 13:19:29 adam Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-cElementTree-${PY_DISTVERSION}
 CATEGORIES=    textproc python
@@ -8,6 +8,10 @@
 COMMENT=       C implementation of Python ElementTree API
 
 EXTRACT_ELEMENTS=      ${PYSUBDIR}/Modules/_elementtree.c
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} != 27
+EXTRACT_ELEMENTS+=     ${PYSUBDIR}/Modules/clinic/_elementtree.c.h
+.endif
 
 USE_GCC_RUNTIME=yes
 USE_TOOLS+=    patch
diff -r a22a65eb6c64 -r 7858b7aa7c3c textproc/py-expat/Makefile
--- a/textproc/py-expat/Makefile        Mon Oct 21 12:30:36 2019 +0000
+++ b/textproc/py-expat/Makefile        Mon Oct 21 13:19:29 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2019/10/17 11:52:49 adam Exp $
+# $NetBSD: Makefile,v 1.28 2019/10/21 13:19:29 adam Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-expat-${PY_DISTVERSION}
 CATEGORIES=    textproc python
@@ -8,7 +8,7 @@
 COMMENT=       Python interface to expat
 
 EXTRACT_ELEMENTS=      ${PYSUBDIR}/Modules/pyexpat.c
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} != 27
 EXTRACT_ELEMENTS+=     ${PYSUBDIR}/Modules/clinic/pyexpat.c.h
 .endif



Home | Main Index | Thread Index | Old Index