From a6fc8bcee2ae2cbee183acf325deb59b6f273e47 Mon Sep 17 00:00:00 2001 From: recht Date: Sun, 4 Jan 2004 11:48:30 +0000 Subject: initial import of py--libxslt-1.1.2 provided by Min Sik Kim via pkgsrc-wip This is the libxslt python module, providing access to the libxslt library. --- textproc/py-libxslt/DESCR | 2 ++ textproc/py-libxslt/Makefile | 34 ++++++++++++++++++++++ textproc/py-libxslt/PLIST | 5 ++++ textproc/py-libxslt/distinfo | 5 ++++ textproc/py-libxslt/patches/patch-aa | 55 ++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 textproc/py-libxslt/DESCR create mode 100644 textproc/py-libxslt/Makefile create mode 100644 textproc/py-libxslt/PLIST create mode 100644 textproc/py-libxslt/distinfo create mode 100644 textproc/py-libxslt/patches/patch-aa (limited to 'textproc/py-libxslt') diff --git a/textproc/py-libxslt/DESCR b/textproc/py-libxslt/DESCR new file mode 100644 index 00000000000..78b5e22d3b5 --- /dev/null +++ b/textproc/py-libxslt/DESCR @@ -0,0 +1,2 @@ +This is the libxslt python module, providing access to the libxslt +library. diff --git a/textproc/py-libxslt/Makefile b/textproc/py-libxslt/Makefile new file mode 100644 index 00000000000..5439438c6d3 --- /dev/null +++ b/textproc/py-libxslt/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/01/04 11:48:30 recht Exp $ + +DISTNAME= libxml2-python-${LIBXML_VERSION} +PKGNAME= ${PYPKGPREFIX}-libxslt-1.1.2 +CATEGORIES= textproc +MASTER_SITES= ftp://xmlsoft.org/python/ + +MAINTAINER= minskim@bawi.org +HOMEPAGE= http://xmlsoft.org/XSLT/ +COMMENT= Python wrapper for libxslt + +DEPENDS+= ${PYPKGPREFIX}-libxml2>=${LIBXML_VERSION}:../../wip/py-libxml2 + +PYDISTUTILSPKG= YES +USE_BUILDLINK2= YES +NO_CONFIGURE= YES + +LIBXML_VERSION= 2.6.4 + +MAKE_ENV+= PYLIBXSLTVERSION=${PKGVERSION} + +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.libxslt}',g" + +BUILDLINK_DEPENDS.libxslt= libxslt>=${PKGVERSION} +.include "../../textproc/libxslt/buildlink2.mk" + +.include "../../lang/python/extension.mk" +.include "../../converters/libiconv/buildlink2.mk" +.include "../../textproc/libxml2/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-libxslt/PLIST b/textproc/py-libxslt/PLIST new file mode 100644 index 00000000000..1d88fc8f5cf --- /dev/null +++ b/textproc/py-libxslt/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/04 11:48:30 recht Exp $ +${PYSITELIB}/libxslt.py +${PYSITELIB}/libxslt.pyc +${PYSITELIB}/libxslt.pyo +${PYSITELIB}/libxsltmod.so diff --git a/textproc/py-libxslt/distinfo b/textproc/py-libxslt/distinfo new file mode 100644 index 00000000000..a96a5e4d562 --- /dev/null +++ b/textproc/py-libxslt/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/01/04 11:48:30 recht Exp $ + +SHA1 (libxml2-python-2.6.4.tar.gz) = 320f50a6dde61d157eef7c804dce2ba5bfee1470 +Size (libxml2-python-2.6.4.tar.gz) = 197009 bytes +SHA1 (patch-aa) = b13a62a16d65bc2ed768a576a898b2fe3d03d45f diff --git a/textproc/py-libxslt/patches/patch-aa b/textproc/py-libxslt/patches/patch-aa new file mode 100644 index 00000000000..c886a555303 --- /dev/null +++ b/textproc/py-libxslt/patches/patch-aa @@ -0,0 +1,55 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/01/04 11:48:31 recht Exp $ + +--- setup.py.orig 2003-12-10 11:00:03.000000000 -0600 ++++ setup.py +@@ -162,17 +162,15 @@ if with_xslt == 1: + + + descr = "libxml2 package" +-modules = [ 'libxml2', 'drv_libxml2' ] +-if WITHDLLS: +- modules.append('libxmlmods.__init__') ++modules = [] + c_files = ['libxml2-py.c', 'libxml.c', 'types.c' ] + includes= [xml_includes, iconv_includes] +-libs = [libraryPrefix + "xml2"] + platformLibs ++libs = [] + platformLibs + macros = [] + if with_threads: + macros.append(('_REENTRANT','1')) + if with_xslt == 1: +- descr = "libxml2 and libxslt package" ++ descr = "libxslt package" + if not sys.platform.startswith('win'): + # + # We are gonna build 2 identical shared libs with merge initializing +@@ -193,9 +191,7 @@ if with_xslt == 1: + modules.append('libxslt') + + +-extens=[Extension('libxml2mod', c_files, include_dirs=includes, +- library_dirs=libdirs, +- libraries=libs, define_macros=macros)] ++extens=[] + if with_xslt == 1: + extens.append(Extension('libxsltmod', xslt_c_files, include_dirs=includes, + library_dirs=libdirs, +@@ -218,15 +214,15 @@ if WITHDLLS: + base = "lib/site-packages/" + else: + base = "" +- data_files = [(base+"libxmlmods",dlls)] ++ data_files = [] + else: + ext_package = None + data_files = [] + +-setup (name = "libxml2-python", ++setup (name = "libxslt-python", + # On *nix, the version number is created from setup.py.in + # On windows, it is set by configure.js +- version = "2.6.4", ++ version = os.environ['PYLIBXSLTVERSION'], + description = descr, + author = "Daniel Veillard", + author_email = "veillard@redhat.com", -- cgit v1.2.3