diff options
author | tsarna <tsarna@pkgsrc.org> | 2002-10-16 16:45:56 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 2002-10-16 16:45:56 +0000 |
commit | ea5ac8f4a3d69a6f4e83a305ade9c12cef08abda (patch) | |
tree | f6149c261164ed367e418a18f17dd0a5a40ae2fa /textproc/py-expat | |
parent | a04d56660d19f4c2bf4882e6046a0c4f2795e0a9 (diff) | |
download | pkgsrc-ea5ac8f4a3d69a6f4e83a305ade9c12cef08abda.tar.gz |
py-expat -- enables python's xml framework to use the expat parser.
Diffstat (limited to 'textproc/py-expat')
-rw-r--r-- | textproc/py-expat/DESCR | 2 | ||||
-rw-r--r-- | textproc/py-expat/Makefile | 33 | ||||
-rw-r--r-- | textproc/py-expat/PLIST | 2 | ||||
-rw-r--r-- | textproc/py-expat/files/setup.py | 24 |
4 files changed, 61 insertions, 0 deletions
diff --git a/textproc/py-expat/DESCR b/textproc/py-expat/DESCR new file mode 100644 index 00000000000..1f84e53940f --- /dev/null +++ b/textproc/py-expat/DESCR @@ -0,0 +1,2 @@ +A Python interface to the Expat XML parser. Integrates with the Python +xml framework. diff --git a/textproc/py-expat/Makefile b/textproc/py-expat/Makefile new file mode 100644 index 00000000000..bcd11707f4b --- /dev/null +++ b/textproc/py-expat/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/16 16:45:56 tsarna Exp $ +# + +PKGNAME= ${PYPKGPREFIX}-expat-0 +CATEGORIES= textproc + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://www.python.org/ +COMMENT= Python interface to expat + +EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/pyexpat.c + +PYDISTUTILSPKG= yes +PYBINMODULE= yes +PY_PATCHPLIST= yes +PY_SETUP_SUBST+= EXPATPREFIX=${BUILDLINK_DIR} +PY_SETUP_SUBST+= EXPATRTPREFIX=${BUILDLINK_PREFIX.expat} + +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} + +USE_BUILDLINK2= yes + +# ignore errors due to missing files (EXTRACT_ELEMENTS!) +do-patch: + (cd ${WRKSRC}; \ + for f in ${PATCHDIR}/patch-*;do \ + ${PATCH} --batch <$$f || true; \ + done) + +.include "../../textproc/expat/buildlink2.mk" +.include "../../lang/python/srcdist.mk" +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/py-expat/PLIST b/textproc/py-expat/PLIST new file mode 100644 index 00000000000..33863bfb110 --- /dev/null +++ b/textproc/py-expat/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/16 16:45:56 tsarna Exp $ +lib/python2.2/site-packages/pyexpat.so diff --git a/textproc/py-expat/files/setup.py b/textproc/py-expat/files/setup.py new file mode 100644 index 00000000000..5fd06093b22 --- /dev/null +++ b/textproc/py-expat/files/setup.py @@ -0,0 +1,24 @@ +# $NetBSD: setup.py,v 1.1.1.1 2002/10/16 16:45:56 tsarna Exp $ + +import distutils +from distutils.core import setup, Extension + +expatprefix = '@EXPATPREFIX@' +expatincl = expatprefix + '/include' +expatlib = expatprefix + '/lib' +expatrtprefix = '@EXPATPREFIX@' +expatrtlib = expatrtprefix + '/lib' + +setup( + ext_modules = [ + Extension( + 'pyexpat', + ['Modules/pyexpat.c'], + define_macros=[('HAVE_EXPAT_H', None)], + include_dirs=[expatincl], + library_dirs=[expatlib], + runtime_library_dirs=[expatrtlib], + libraries=['expat'] + ) + ] +) |