summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-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
7 files changed, 70 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index ddb6f19..bcaf37b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -116,6 +116,7 @@
SUBDIR += pspell
SUBDIR += pspell-ispell
SUBDIR += py-HyperText
+ SUBDIR += py-expat
SUBDIR += py-martel
SUBDIR += py-mxTextTools
SUBDIR += py-xml
diff --git a/textproc/py-expat/Makefile b/textproc/py-expat/Makefile
new file mode 100644
index 0000000..7ae6993
--- /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 0000000..da23807
--- /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 0000000..70e6667
--- /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 0000000..ba64282
--- /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 0000000..c08143d
--- /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 0000000..6567673
--- /dev/null
+++ b/textproc/py-expat/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/pyexpat.so
OpenPOWER on IntegriCloud