@@ -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
@@ -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