aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-03-01 20:32:43 +0800
committertg <tg@FreeBSD.org>2001-03-01 20:32:43 +0800
commitc40b31f16fe43369f9d35e1b0df7dca36568db06 (patch)
tree80afcf9ab83b3dc9559a7536c21b8d556915e652
parentbb80e3b3f49ea13b33c03636ea4fb3fe920e7f78 (diff)
downloadfreebsd-ports-graphics-c40b31f16fe43369f9d35e1b0df7dca36568db06.tar.gz
freebsd-ports-graphics-c40b31f16fe43369f9d35e1b0df7dca36568db06.tar.zst
freebsd-ports-graphics-c40b31f16fe43369f9d35e1b0df7dca36568db06.zip
New port py-expat, a Python interface to the Expat XML parser.
-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 ddb6f1904d5..bcaf37b35a5 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 00000000000..7ae69936b75
--- /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 00000000000..da238078d67
--- /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 00000000000..70e666742c8
--- /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 00000000000..ba64282e6f0
--- /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 00000000000..c08143d8be2
--- /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 00000000000..65676739c90
--- /dev/null
+++ b/textproc/py-expat/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/pyexpat.so