summaryrefslogtreecommitdiff
path: root/textproc/py-libxml2
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-01-04 11:47:17 +0000
committerrecht <recht@pkgsrc.org>2004-01-04 11:47:17 +0000
commit2285f7245c3e974dc7fb0033dab6ba4998d35ff4 (patch)
tree7141b4bca372cfb88d819b1fc0e4026dfb6ae2a5 /textproc/py-libxml2
parentd4771a3ff96aa4e01a6effafe132804ac17347ea (diff)
downloadpkgsrc-2285f7245c3e974dc7fb0033dab6ba4998d35ff4.tar.gz
initial import of py-libxml2-2.6.4
provided by Min Sik Kim via pkgsrc-wip This is the libxml2 python module, providing access to the libxml2 library.
Diffstat (limited to 'textproc/py-libxml2')
-rw-r--r--textproc/py-libxml2/DESCR2
-rw-r--r--textproc/py-libxml2/Makefile29
-rw-r--r--textproc/py-libxml2/PLIST8
-rw-r--r--textproc/py-libxml2/distinfo5
-rw-r--r--textproc/py-libxml2/patches/patch-aa13
5 files changed, 57 insertions, 0 deletions
diff --git a/textproc/py-libxml2/DESCR b/textproc/py-libxml2/DESCR
new file mode 100644
index 00000000000..a20e5231426
--- /dev/null
+++ b/textproc/py-libxml2/DESCR
@@ -0,0 +1,2 @@
+This is the libxml2 python module, providing access to the libxml2
+library.
diff --git a/textproc/py-libxml2/Makefile b/textproc/py-libxml2/Makefile
new file mode 100644
index 00000000000..19e20d3a9d5
--- /dev/null
+++ b/textproc/py-libxml2/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/04 11:47:17 recht Exp $
+
+DISTNAME= libxml2-2.6.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}/python
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml2/2.6/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= minskim@bawi.org
+HOMEPAGE= http://xmlsoft.org/
+COMMENT= Python wrapper for libxml2
+
+PYDISTUTILSPKG= YES
+USE_BUILDLINK2= YES
+NO_CONFIGURE= YES
+
+SUBST_CLASSES+= setup
+SUBST_MESSAGE.setup= "Fixing hardcoded paths."
+SUBST_STAGE.setup= post-patch
+SUBST_FILES.setup= setup.py
+SUBST_SED.setup= -e "s,'/usr','${BUILDLINK_PREFIX.libxml2}',g"
+
+BUILDLINK_DEPENDS.libxml2= libxml2>=${PKGVERSION}
+.include "../../textproc/libxml2/buildlink2.mk"
+
+.include "../../lang/python/extension.mk"
+.include "../../converters/libiconv/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-libxml2/PLIST b/textproc/py-libxml2/PLIST
new file mode 100644
index 00000000000..0bb3d6526b5
--- /dev/null
+++ b/textproc/py-libxml2/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/04 11:47:17 recht Exp $
+${PYSITELIB}/drv_libxml2.py
+${PYSITELIB}/drv_libxml2.pyc
+${PYSITELIB}/drv_libxml2.pyo
+${PYSITELIB}/libxml2.py
+${PYSITELIB}/libxml2.pyc
+${PYSITELIB}/libxml2.pyo
+${PYSITELIB}/libxml2mod.so
diff --git a/textproc/py-libxml2/distinfo b/textproc/py-libxml2/distinfo
new file mode 100644
index 00000000000..6c9ffc6042b
--- /dev/null
+++ b/textproc/py-libxml2/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/04 11:47:17 recht Exp $
+
+SHA1 (libxml2-2.6.4.tar.bz2) = 69828400b55ce4f70215c49b62ce546623438d61
+Size (libxml2-2.6.4.tar.bz2) = 2644177 bytes
+SHA1 (patch-aa) = 8466178808ae179a4e952c7304e1a79b639c8174
diff --git a/textproc/py-libxml2/patches/patch-aa b/textproc/py-libxml2/patches/patch-aa
new file mode 100644
index 00000000000..ff79943d85d
--- /dev/null
+++ b/textproc/py-libxml2/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/04 11:47:17 recht Exp $
+
+--- libxml.py.orig 2003-12-25 00:17:24.000000000 -0600
++++ libxml.py
+@@ -278,7 +278,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)