pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/py-libxslt initial import of py--libxslt-1.1.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/22cc2e0b3f91
branches:  trunk
changeset: 465652:22cc2e0b3f91
user:      recht <recht%pkgsrc.org@localhost>
date:      Sun Jan 04 11:48:30 2004 +0000

description:
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.

diffstat:

 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(+), 0 deletions(-)

diffs (121 lines):

diff -r 3786c62ecd35 -r 22cc2e0b3f91 textproc/py-libxslt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-libxslt/DESCR Sun Jan 04 11:48:30 2004 +0000
@@ -0,0 +1,2 @@
+This is the libxslt python module, providing access to the libxslt
+library.
diff -r 3786c62ecd35 -r 22cc2e0b3f91 textproc/py-libxslt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-libxslt/Makefile      Sun Jan 04 11:48:30 2004 +0000
@@ -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@localhost
+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 -r 3786c62ecd35 -r 22cc2e0b3f91 textproc/py-libxslt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-libxslt/PLIST Sun Jan 04 11:48:30 2004 +0000
@@ -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 -r 3786c62ecd35 -r 22cc2e0b3f91 textproc/py-libxslt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-libxslt/distinfo      Sun Jan 04 11:48:30 2004 +0000
@@ -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 -r 3786c62ecd35 -r 22cc2e0b3f91 textproc/py-libxslt/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-libxslt/patches/patch-aa      Sun Jan 04 11:48:30 2004 +0000
@@ -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@localhost",



Home | Main Index | Thread Index | Old Index