aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-plex
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2002-07-02 02:41:10 +0800
committerperky <perky@FreeBSD.org>2002-07-02 02:41:10 +0800
commitc62c5ef97a228ca1bd4ebfb185067975f319e1f4 (patch)
treef3e303cb7386055b6e5d1914f009a2e2af5c14b5 /devel/py-plex
parent945159f7a1cda94c3fc219792a0c6b78a926e976 (diff)
downloadfreebsd-ports-gnome-c62c5ef97a228ca1bd4ebfb185067975f319e1f4.tar.gz
freebsd-ports-gnome-c62c5ef97a228ca1bd4ebfb185067975f319e1f4.tar.zst
freebsd-ports-gnome-c62c5ef97a228ca1bd4ebfb185067975f319e1f4.zip
Add py-plex 1.1.2, lexical Analysis Module for Python.
PR: 36994 Submitted by: me
Diffstat (limited to 'devel/py-plex')
-rw-r--r--devel/py-plex/Makefile36
-rw-r--r--devel/py-plex/distinfo1
-rw-r--r--devel/py-plex/files/setup.py7
-rw-r--r--devel/py-plex/pkg-comment1
-rw-r--r--devel/py-plex/pkg-descr8
-rw-r--r--devel/py-plex/pkg-plist60
6 files changed, 113 insertions, 0 deletions
diff --git a/devel/py-plex/Makefile b/devel/py-plex/Makefile
new file mode 100644
index 000000000000..58b2a67e5a73
--- /dev/null
+++ b/devel/py-plex/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: py-plex
+# Date created: 11 April 2002
+# Whom: Hye-Shik Chang
+#
+# $FreeBSD$
+#
+
+PORTNAME= plex
+PORTVERSION= 1.1.2
+CATEGORIES= devel python
+MASTER_SITES= http://www.cosc.canterbury.ac.nz/~greg/python/Plex/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= Plex${PORTVERSION}
+
+MAINTAINER= perky@FreeBSD.org
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+WRKSRC= ${WRKDIR}
+DOCDIR= share/doc/py-plex
+EXAMPLESDIR= share/examples/py-plex
+
+post-extract:
+ ${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${FILESDIR}/setup.py \
+ > ${WRKSRC}/setup.py
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/${DOCDIR}
+ cd ${WRKSRC}/doc && ${INSTALL_DATA} ./* ${PREFIX}/${DOCDIR}
+ ${MKDIR} ${PREFIX}/${EXAMPLESDIR}
+ cd ${WRKSRC}/examples && ${INSTALL_DATA} ./* ${PREFIX}/${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/py-plex/distinfo b/devel/py-plex/distinfo
new file mode 100644
index 000000000000..2d8ff4e062df
--- /dev/null
+++ b/devel/py-plex/distinfo
@@ -0,0 +1 @@
+MD5 (Plex1.1.2.tar.gz) = eabd989a1b72b129744f52434d99db3f
diff --git a/devel/py-plex/files/setup.py b/devel/py-plex/files/setup.py
new file mode 100644
index 000000000000..8dd6df636fa7
--- /dev/null
+++ b/devel/py-plex/files/setup.py
@@ -0,0 +1,7 @@
+from distutils.core import setup
+
+setup(
+ name = 'plex',
+ version = "%%PORTVERSION%%",
+ packages = ['Plex'],
+ )
diff --git a/devel/py-plex/pkg-comment b/devel/py-plex/pkg-comment
new file mode 100644
index 000000000000..e545f6942b99
--- /dev/null
+++ b/devel/py-plex/pkg-comment
@@ -0,0 +1 @@
+Lexical Analysis Module for Python
diff --git a/devel/py-plex/pkg-descr b/devel/py-plex/pkg-descr
new file mode 100644
index 000000000000..0d3e4411ee3c
--- /dev/null
+++ b/devel/py-plex/pkg-descr
@@ -0,0 +1,8 @@
+Plex is a Python module for constructing lexical analysers,
+or scanners. Plex scanners have almost all the capabilities of
+the scanners generated by GNU Flex, and are specified in a very
+similar way. Tokens are defined by regular expressions, and each
+token has an associated action, which may be to return a literal
+value, or to call an arbitrary function.
+
+WWW: http://www.cosc.canterbury.ac.nz/~greg/python/Plex/
diff --git a/devel/py-plex/pkg-plist b/devel/py-plex/pkg-plist
new file mode 100644
index 000000000000..111f6eeb11a9
--- /dev/null
+++ b/devel/py-plex/pkg-plist
@@ -0,0 +1,60 @@
+%%PYTHON_SITELIBDIR%%/Plex/Actions.py
+%%PYTHON_SITELIBDIR%%/Plex/Actions.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Actions.pyo
+%%PYTHON_SITELIBDIR%%/Plex/DFA.py
+%%PYTHON_SITELIBDIR%%/Plex/DFA.pyc
+%%PYTHON_SITELIBDIR%%/Plex/DFA.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Errors.py
+%%PYTHON_SITELIBDIR%%/Plex/Errors.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Errors.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Lexicons.py
+%%PYTHON_SITELIBDIR%%/Plex/Lexicons.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Lexicons.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Machines.py
+%%PYTHON_SITELIBDIR%%/Plex/Machines.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Machines.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Regexps.py
+%%PYTHON_SITELIBDIR%%/Plex/Regexps.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Regexps.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Scanners.py
+%%PYTHON_SITELIBDIR%%/Plex/Scanners.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Scanners.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Timing.py
+%%PYTHON_SITELIBDIR%%/Plex/Timing.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Timing.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Traditional.py
+%%PYTHON_SITELIBDIR%%/Plex/Traditional.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Traditional.pyo
+%%PYTHON_SITELIBDIR%%/Plex/Transitions.py
+%%PYTHON_SITELIBDIR%%/Plex/Transitions.pyc
+%%PYTHON_SITELIBDIR%%/Plex/Transitions.pyo
+%%PYTHON_SITELIBDIR%%/Plex/__init__.py
+%%PYTHON_SITELIBDIR%%/Plex/__init__.pyc
+%%PYTHON_SITELIBDIR%%/Plex/__init__.pyo
+%%PYTHON_SITELIBDIR%%/Plex/test_tm.py
+%%PYTHON_SITELIBDIR%%/Plex/test_tm.pyc
+%%PYTHON_SITELIBDIR%%/Plex/test_tm.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/Plex
+%%PORTDOCS%%share/doc/py-plex/Reference.html
+%%PORTDOCS%%share/doc/py-plex/Tutorial.html
+%%PORTDOCS%%share/doc/py-plex/index.html
+%%PORTDOCS%%share/examples/py-plex/example1and2.in
+%%PORTDOCS%%share/examples/py-plex/example1and2.py
+%%PORTDOCS%%share/examples/py-plex/example3.in
+%%PORTDOCS%%share/examples/py-plex/example3.py
+%%PORTDOCS%%share/examples/py-plex/example4.in
+%%PORTDOCS%%share/examples/py-plex/example4.py
+%%PORTDOCS%%share/examples/py-plex/example5.in
+%%PORTDOCS%%share/examples/py-plex/example5.py
+%%PORTDOCS%%share/examples/py-plex/example6.in
+%%PORTDOCS%%share/examples/py-plex/example6.py
+%%PORTDOCS%%share/examples/py-plex/example7.in
+%%PORTDOCS%%share/examples/py-plex/example7.py
+%%PORTDOCS%%share/examples/py-plex/pascal.in
+%%PORTDOCS%%share/examples/py-plex/pascal.py
+%%PORTDOCS%%share/examples/py-plex/python.in
+%%PORTDOCS%%share/examples/py-plex/python.py
+%%PORTDOCS%%share/examples/py-plex/speedtest.in
+%%PORTDOCS%%share/examples/py-plex/speedtest.py
+%%PORTDOCS%%@dirrm share/examples/py-plex
+%%PORTDOCS%%@dirrm share/doc/py-plex