diff options
author | fhajny <fhajny@pkgsrc.org> | 2017-10-31 13:15:44 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2017-10-31 13:15:44 +0000 |
commit | 638d10ee75177d158fcac63eab525b58ff1f5512 (patch) | |
tree | 12d22f8ae4a9897854089bd816ae0cb149a9f483 /textproc/py-libxml2 | |
parent | a04dda1cdf4c7e33c58bb4e3522151b071c9fae8 (diff) | |
download | pkgsrc-638d10ee75177d158fcac63eab525b58ff1f5512.tar.gz |
textproc/*libxml2: Move patches and distinfo files under the main package
since the distfile is just one anyway.
Diffstat (limited to 'textproc/py-libxml2')
-rw-r--r-- | textproc/py-libxml2/Makefile | 6 | ||||
-rw-r--r-- | textproc/py-libxml2/distinfo | 9 | ||||
-rw-r--r-- | textproc/py-libxml2/patches/patch-aa | 13 | ||||
-rw-r--r-- | textproc/py-libxml2/patches/patch-ab | 34 | ||||
-rw-r--r-- | textproc/py-libxml2/patches/patch-ac | 22 |
5 files changed, 3 insertions, 81 deletions
diff --git a/textproc/py-libxml2/Makefile b/textproc/py-libxml2/Makefile index 5a23d24bff9..09f482ad99a 100644 --- a/textproc/py-libxml2/Makefile +++ b/textproc/py-libxml2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2017/09/10 20:50:07 wiz Exp $ +# $NetBSD: Makefile,v 1.57 2017/10/31 13:15:44 fhajny Exp $ .include "../../textproc/libxml2/Makefile.common" @@ -9,13 +9,13 @@ LICENSE= modified-bsd USE_GCC_RUNTIME= yes -WRKSRC= ${WRKDIR}/${DISTNAME}/python +PYSETUPSUBDIR= python NO_CONFIGURE= YES SUBST_CLASSES+= setup SUBST_MESSAGE.setup= Fixing hardcoded paths. SUBST_STAGE.setup= pre-build -SUBST_FILES.setup= setup.py +SUBST_FILES.setup= python/setup.py SUBST_SED.setup= -e "/ROOT/s,'/usr','${BUILDLINK_PREFIX.libxml2}',g" SUBST_SED.setup+= -e "/^\"/s,/usr/include,${BUILDLINK_PREFIX.iconv}/include,g" SUBST_SED.setup+= -e "/^\"/s,/usr/local/include,${BUILDLINK_PREFIX.iconv}/include,g" diff --git a/textproc/py-libxml2/distinfo b/textproc/py-libxml2/distinfo deleted file mode 100644 index f8b4c371368..00000000000 --- a/textproc/py-libxml2/distinfo +++ /dev/null @@ -1,9 +0,0 @@ -$NetBSD: distinfo,v 1.38 2017/10/31 09:08:27 jperkin Exp $ - -SHA1 (libxml2-2.9.6.tar.gz) = 4ab4605fce0f82a004c3b2aeb368efc8f356e020 -RMD160 (libxml2-2.9.6.tar.gz) = 99616c77b5991a00e83abca708338cfa09beef29 -SHA512 (libxml2-2.9.6.tar.gz) = 5ef80f895374bd5dd3bcd5f00c715795f026bf45d998f8f762c0cdb739b8755e01de40cf853d98a3826eacef95c4adebe4777db11020e8d98d0bda921f55a0ed -Size (libxml2-2.9.6.tar.gz) = 5469624 bytes -SHA1 (patch-aa) = 54ce6f91dd29144f22247d15093d6d273f5f433b -SHA1 (patch-ab) = 6e10620cf21df24a08b7d46990b47b7f33df827c -SHA1 (patch-ac) = 4d14006810239491ecda6967dee2087eb382ba08 diff --git a/textproc/py-libxml2/patches/patch-aa b/textproc/py-libxml2/patches/patch-aa deleted file mode 100644 index 3497be4d60e..00000000000 --- a/textproc/py-libxml2/patches/patch-aa +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-aa,v 1.2 2004/11/25 18:37:43 minskim Exp $ - ---- libxml.py.orig 2004-09-28 05:59:58.000000000 -0500 -+++ libxml.py -@@ -281,7 +281,7 @@ class xmlCore: - # defined as python2 properties - # - import sys -- if float(sys.version[0:3]) < 2.2: -+ if float(sys.version[0:3].replace('p', '.')) < 2.2: - def __getattr__(self, attr): - if attr == "parent": - ret = libxml2mod.parent(self._o) diff --git a/textproc/py-libxml2/patches/patch-ab b/textproc/py-libxml2/patches/patch-ab deleted file mode 100644 index c051e60fcab..00000000000 --- a/textproc/py-libxml2/patches/patch-ab +++ /dev/null @@ -1,34 +0,0 @@ -$NetBSD: patch-ab,v 1.4 2015/10/23 20:01:08 tnn Exp $ - -Trust pkgsrc to know which iconv to use. -It will be either in the buildlink directory, or in the compiler's -default search path. - ---- setup.py.orig 2014-10-16 07:35:21.000000000 +0000 -+++ setup.py -@@ -56,11 +56,7 @@ else: - # - iconv.h - # - libxslt/xsltconfig.h - includes_dir = [ --"/usr/include", --"/usr/local/include", --"/opt/include", --os.path.join(ROOT,'include'), --HOME -+os.path.join(ROOT,'include') - ]; - - xml_includes="" -@@ -73,11 +69,7 @@ if xml_includes == "": - print("failed to find headers for libxml2: update includes_dir") - sys.exit(1) - --iconv_includes="" --for dir in includes_dir: -- if not missing(dir + "/iconv.h"): -- iconv_includes=dir -- break; -+iconv_includes=os.path.join(ROOT,'include') - - if iconv_includes == "": - print("failed to find headers for libiconv: update includes_dir") diff --git a/textproc/py-libxml2/patches/patch-ac b/textproc/py-libxml2/patches/patch-ac deleted file mode 100644 index 913996d78a9..00000000000 --- a/textproc/py-libxml2/patches/patch-ac +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-ac,v 1.2 2014/10/20 19:11:23 drochner Exp $ - -fix for Python-2.6 - ---- libxml_wrap.h.orig 2014-10-03 09:00:54.000000000 +0000 -+++ libxml_wrap.h -@@ -28,7 +28,6 @@ - * and don't use Capsule but CObjects - */ - #if PY_VERSION_HEX < 0x02070000 --#ifndef PyBytes_Check - #define PyBytes_Check PyString_Check - #define PyBytes_Size PyString_Size - #define PyBytes_AsString PyString_AsString -@@ -40,7 +39,6 @@ - #define PyCapsule_CheckExact PyCObject_Check - #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o)) - #endif --#endif - - /** - * ATTRIBUTE_UNUSED: |