pkgsrc-Changes-HG archive

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

[.joined/pkgsrc/trunk]: .joined/pkgsrc/textproc/py-libxml2 py27-libxml2: try ...



details:   https://anonhg.NetBSD.org/.joined/pkgsrc/rev/115822493a80
branches:  trunk
changeset: 370844:115822493a80
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Dec 31 15:18:37 2021 +0000

description:
py27-libxml2: try to fix build with python 2.7

There are still some packages that need this, such as devel/libhid.

diffstat:

 textproc/py-libxml2/Makefile |   8 +++++++-
 textproc/py-libxml2/PLIST    |  10 +++++-----
 2 files changed, 12 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r 908708cb0641 -r 115822493a80 textproc/py-libxml2/Makefile
--- a/textproc/py-libxml2/Makefile      Fri Dec 31 14:18:15 2021 +0000
+++ b/textproc/py-libxml2/Makefile      Fri Dec 31 15:18:37 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2021/12/30 21:32:38 wiz Exp $
+# $NetBSD: Makefile,v 1.72 2021/12/31 15:18:37 tnn Exp $
 
 .include "../../textproc/libxml2/Makefile.common"
 
@@ -37,6 +37,12 @@
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
 
 .include "../../lang/python/egg.mk"
+PLIST_VARS+=                   py3x
+.if ${_PYTHON_VERSION} > 27
+PLIST.py3x=                    yes
+.else
+_PYSETUPTOOLSINSTALLARGS:=     ${PYSETUPTOOLSINSTALLARGS:N--single-version-externally-managed}
+.endif
 .include "../../converters/libiconv/buildlink3.mk"
 BUILDLINK_API_DEPENDS.libxml2+=        libxml2>=${PKGVERSION_NOREV}
 .include "../../textproc/libxml2/buildlink3.mk"
diff -r 908708cb0641 -r 115822493a80 textproc/py-libxml2/PLIST
--- a/textproc/py-libxml2/PLIST Fri Dec 31 14:18:15 2021 +0000
+++ b/textproc/py-libxml2/PLIST Fri Dec 31 15:18:37 2021 +0000
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.5 2021/12/30 21:32:38 wiz Exp $
+@comment $NetBSD: PLIST,v 1.6 2021/12/31 15:18:37 tnn Exp $
 ${PYSITELIB}/drv_libxml2.py
 ${PYSITELIB}/drv_libxml2.pyc
 ${PYSITELIB}/drv_libxml2.pyo
 ${PYSITELIB}/libxml2.py
 ${PYSITELIB}/libxml2.pyc
 ${PYSITELIB}/libxml2.pyo
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PLIST.py3x}${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/libxml2mod.so



Home | Main Index | Thread Index | Old Index