summaryrefslogtreecommitdiff
path: root/textproc/py-expat/Makefile
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>2002-10-16 16:45:56 +0000
committertsarna <tsarna@pkgsrc.org>2002-10-16 16:45:56 +0000
commitea5ac8f4a3d69a6f4e83a305ade9c12cef08abda (patch)
treef6149c261164ed367e418a18f17dd0a5a40ae2fa /textproc/py-expat/Makefile
parenta04d56660d19f4c2bf4882e6046a0c4f2795e0a9 (diff)
downloadpkgsrc-ea5ac8f4a3d69a6f4e83a305ade9c12cef08abda.tar.gz
py-expat -- enables python's xml framework to use the expat parser.
Diffstat (limited to 'textproc/py-expat/Makefile')
-rw-r--r--textproc/py-expat/Makefile33
1 files changed, 33 insertions, 0 deletions
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"