pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-libxml2



Module Name:    pkgsrc
Committed By:   tnn
Date:           Fri Dec 31 15:18:37 UTC 2021

Modified Files:
        pkgsrc/textproc/py-libxml2: Makefile PLIST

Log Message:
py27-libxml2: try to fix build with python 2.7

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


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 pkgsrc/textproc/py-libxml2/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/py-libxml2/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-libxml2/Makefile
diff -u pkgsrc/textproc/py-libxml2/Makefile:1.71 pkgsrc/textproc/py-libxml2/Makefile:1.72
--- pkgsrc/textproc/py-libxml2/Makefile:1.71    Thu Dec 30 21:32:38 2021
+++ pkgsrc/textproc/py-libxml2/Makefile Fri Dec 31 15:18:37 2021
@@ -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 @@ EGG_NAME=    ${DISTNAME:S/-/_python-/}
 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"

Index: pkgsrc/textproc/py-libxml2/PLIST
diff -u pkgsrc/textproc/py-libxml2/PLIST:1.5 pkgsrc/textproc/py-libxml2/PLIST:1.6
--- pkgsrc/textproc/py-libxml2/PLIST:1.5        Thu Dec 30 21:32:38 2021
+++ pkgsrc/textproc/py-libxml2/PLIST    Fri Dec 31 15:18:37 2021
@@ -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