Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
This is the libxml2 python module, providing access to the libxml2
library.

View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.46 2013/05/26 09:33:16 adam Exp $
DISTNAME= libxml2-2.9.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ftp://xmlsoft.org/libxml2/
#MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml2/2.9/}
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://xmlsoft.org/
COMMENT= Python wrapper for libxml2
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/${DISTNAME}/python
NO_CONFIGURE= YES
SUBST_CLASSES+= setup
SUBST_MESSAGE.setup= Fixing hardcoded paths.
SUBST_STAGE.setup= pre-build
SUBST_FILES.setup= 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"
EGG_NAME= ${DISTNAME:S/-/_python-/}
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat
BUILDLINK_API_DEPENDS.libxml2+= libxml2>=${PKGVERSION}
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../lang/python/distutils.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.3 2012/04/08 20:21:58 wiz Exp $
${PYSITELIB}/drv_libxml2.py
${PYSITELIB}/drv_libxml2.pyc
${PYSITELIB}/drv_libxml2.pyo
${PYSITELIB}/libxml2.py
${PYSITELIB}/libxml2.pyc
${PYSITELIB}/libxml2.pyo
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/libxml2mod.so

View File

@@ -0,0 +1,14 @@
# $NetBSD: buildlink3.mk,v 1.3 2009/03/20 19:25:32 joerg Exp $
BUILDLINK_TREE+= py-libxml2
.if !defined(PY_LIBXML2_BUILDLINK3_MK)
PY_LIBXML2_BUILDLINK3_MK:=
.include "../../lang/python/pyversion.mk"
BUILDLINK_API_DEPENDS.py-libxml2+= ${PYPKGPREFIX}-libxml2>=2.6.27
BUILDLINK_PKGSRCDIR.py-libxml2?= ../../textproc/py-libxml2
.endif # PY_LIBXML2_BUILDLINK3_MK
BUILDLINK_TREE+= -py-libxml2

View File

@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.29 2013/05/28 22:26:13 drochner Exp $
SHA1 (libxml2-2.9.1.tar.gz) = eb3e2146c6d68aea5c2a4422ed76fe196f933c21
RMD160 (libxml2-2.9.1.tar.gz) = 257285d9ac070ed9f58666b7bd7c4653651c871b
Size (libxml2-2.9.1.tar.gz) = 5172503 bytes
SHA1 (patch-aa) = 54ce6f91dd29144f22247d15093d6d273f5f433b
SHA1 (patch-ab) = 1ae347ac9e8ad8fd6f4f2cfb1017488d8a52ed1f
SHA1 (patch-ac) = b2e8fac8221ae9fb00b3de33441dd83cd7422204

View File

@@ -0,0 +1,13 @@
$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)

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ab,v 1.1 2007/07/16 13:24:32 jmmv Exp $
--- setup.py.orig 2007-06-12 18:20:40.000000000 +0200
+++ setup.py
@@ -56,10 +56,10 @@ else:
# - iconv.h
# - libxslt/xsltconfig.h
includes_dir = [
+os.path.join(ROOT,'include'),
"/usr/include",
"/usr/local/include",
"/opt/include",
-os.path.join(ROOT,'include'),
HOME
];

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ac,v 1.1 2013/05/28 22:26:13 drochner Exp $
fix for Python-2.6
--- libxml_wrap.h.orig 2013-04-02 02:25:28.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_GetPointer(o, n) PyCObject_GetDesc((o))
#endif
-#endif
/**
* ATTRIBUTE_UNUSED: