pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-expat py-expat: fix for Python 2.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d325ce6b288
branches:  trunk
changeset: 402835:6d325ce6b288
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Oct 17 11:52:49 2019 +0000

description:
py-expat: fix for Python 2.7

diffstat:

 textproc/py-expat/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9469fcb61a97 -r 6d325ce6b288 textproc/py-expat/Makefile
--- a/textproc/py-expat/Makefile        Thu Oct 17 11:09:04 2019 +0000
+++ b/textproc/py-expat/Makefile        Thu Oct 17 11:52:49 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2019/10/17 06:51:12 adam Exp $
+# $NetBSD: Makefile,v 1.27 2019/10/17 11:52:49 adam Exp $
 
 PKGNAME=       ${PYPKGPREFIX}-expat-${PY_DISTVERSION}
 CATEGORIES=    textproc python
@@ -8,7 +8,10 @@
 COMMENT=       Python interface to expat
 
 EXTRACT_ELEMENTS=      ${PYSUBDIR}/Modules/pyexpat.c
+.include "../../lang/python/extension.mk"
+.if ${_PYTHON_VERSION} != 27
 EXTRACT_ELEMENTS+=     ${PYSUBDIR}/Modules/clinic/pyexpat.c.h
+.endif
 
 USE_GCC_RUNTIME=       yes
 



Home | Main Index | Thread Index | Old Index