summaryrefslogtreecommitdiff
path: root/textproc/py-expat
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2001-03-01 12:32:43 +0000
committerThomas Gellekum <tg@FreeBSD.org>2001-03-01 12:32:43 +0000
commitd8cb00b627e29caa8aa8e9d90be28e9c51f775ac (patch)
tree9c0e27d53279583e3edac4794721c48f984ba4f3 /textproc/py-expat
parentMake backspace generate ^H, not ^?. (diff)
New port py-expat, a Python interface to the Expat XML parser.
Notes
Notes: svn path=/head/; revision=38932
Diffstat (limited to 'textproc/py-expat')
-rw-r--r--textproc/py-expat/Makefile34
-rw-r--r--textproc/py-expat/distinfo3
-rw-r--r--textproc/py-expat/files/setup.py29
-rw-r--r--textproc/py-expat/pkg-comment1
-rw-r--r--textproc/py-expat/pkg-descr1
-rw-r--r--textproc/py-expat/pkg-plist1
6 files changed, 69 insertions, 0 deletions
diff --git a/textproc/py-expat/Makefile b/textproc/py-expat/Makefile
new file mode 100644
index 000000000000..7ae69936b754
--- /dev/null
+++ b/textproc/py-expat/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: py-expat
+# Date created: 28 February 2001
+# Whom: Thomas Gellekum <tg@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= expat
+PORTVERSION= ${PYTHON_PORTVERSION}
+CATEGORIES= textproc python
+MASTER_SITES= ftp://www.python.org/pub/python/src/ \
+ ftp://ftp.cwi.nl/pub/python/src/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${PYTHON_DISTFILE}
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= ${PYDISTUTILS}
+LIB_DEPENDS= expat.2:${PORTSDIR}/textproc/expat2
+
+DIST_SUBDIR= python
+USE_PYTHON= yes
+WRKSRC= ${PYTHON_WRKSRC}/Modules
+
+post-extract:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}
+
+do-build:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build)
+
+do-install:
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install)
+
+.include <bsd.port.mk>
diff --git a/textproc/py-expat/distinfo b/textproc/py-expat/distinfo
new file mode 100644
index 000000000000..da238078d673
--- /dev/null
+++ b/textproc/py-expat/distinfo
@@ -0,0 +1,3 @@
+MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
+MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
+MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
diff --git a/textproc/py-expat/files/setup.py b/textproc/py-expat/files/setup.py
new file mode 100644
index 000000000000..70e666742c84
--- /dev/null
+++ b/textproc/py-expat/files/setup.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# To use:
+# python setup.py install
+#
+
+__version__ = "$FreeBSD$"
+
+try:
+ import distutils
+ from distutils import sysconfig
+ from distutils.command.install import install
+ from distutils.core import setup, Extension
+except:
+ raise SystemExit, "Distutils problem"
+
+prefix = sysconfig.PREFIX
+inc_dirs = [prefix + "/include"]
+lib_dirs = [prefix + "/lib"]
+libs = ["expat"]
+
+setup(name = "pyexpat",
+ description = "Interface to the Expat XML parser",
+
+ ext_modules = [Extension("pyexpat", ["pyexpat.c"],
+ include_dirs = inc_dirs,
+ define_macros = [("HAVE_EXPAT_H", 1)],
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
diff --git a/textproc/py-expat/pkg-comment b/textproc/py-expat/pkg-comment
new file mode 100644
index 000000000000..ba64282e6f0b
--- /dev/null
+++ b/textproc/py-expat/pkg-comment
@@ -0,0 +1 @@
+Python interface to the Expat XML parser
diff --git a/textproc/py-expat/pkg-descr b/textproc/py-expat/pkg-descr
new file mode 100644
index 000000000000..c08143d8be2c
--- /dev/null
+++ b/textproc/py-expat/pkg-descr
@@ -0,0 +1 @@
+Python interface to the Expat XML parser.
diff --git a/textproc/py-expat/pkg-plist b/textproc/py-expat/pkg-plist
new file mode 100644
index 000000000000..65676739c900
--- /dev/null
+++ b/textproc/py-expat/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/pyexpat.so