From 76617ec7981b5e85f129f60fef47aa1b7afb364e Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 16 Mar 2001 16:24:07 +0000 Subject: [PATCH] add py-trex Python implementation of Tree Regular Expressions for XML (TREX) --- textproc/Makefile | 1 + textproc/py-trex/Makefile | 32 ++++++++++++++++++++++++++ textproc/py-trex/distinfo | 1 + textproc/py-trex/files/patch-pytrex.py | 7 ++++++ textproc/py-trex/pkg-comment | 1 + textproc/py-trex/pkg-descr | 4 ++++ textproc/py-trex/pkg-plist | 1 + 7 files changed, 47 insertions(+) create mode 100644 textproc/py-trex/Makefile create mode 100644 textproc/py-trex/distinfo create mode 100644 textproc/py-trex/files/patch-pytrex.py create mode 100644 textproc/py-trex/pkg-comment create mode 100644 textproc/py-trex/pkg-descr create mode 100644 textproc/py-trex/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 9a4143579a94..01cfb3a9aa8f 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -125,6 +125,7 @@ SUBDIR += py-expat SUBDIR += py-martel SUBDIR += py-mxTextTools + SUBDIR += py-trex SUBDIR += py-xml SUBDIR += rand SUBDIR += rman diff --git a/textproc/py-trex/Makefile b/textproc/py-trex/Makefile new file mode 100644 index 000000000000..94a0af0df707 --- /dev/null +++ b/textproc/py-trex/Makefile @@ -0,0 +1,32 @@ +# ex:ts=8 +# New ports collection Makefile for: PyTREX +# Date created: Mar 16, 2001 +# Whom: Ying-Chieh Liao +# +# $FreeBSD$ +# + +PORTNAME= trex +PORTVERSION= 0.5.0 +CATEGORIES= textproc python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pytrex +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pytrex-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= ijliao@FreeBSD.org + +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyexpat.so:${PORTSDIR}/textproc/py-expat + +USE_PYTHON= yes + +NO_BUILD= yes + +post-patch: + @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/pytrex.py + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/pytrex.py ${PREFIX}/bin/pytrex + +.include diff --git a/textproc/py-trex/distinfo b/textproc/py-trex/distinfo new file mode 100644 index 000000000000..f6bf071d7f11 --- /dev/null +++ b/textproc/py-trex/distinfo @@ -0,0 +1 @@ +MD5 (pytrex-0.5.0.tgz) = 220d34d6b686c06b1ec41e6dd8f5a454 diff --git a/textproc/py-trex/files/patch-pytrex.py b/textproc/py-trex/files/patch-pytrex.py new file mode 100644 index 000000000000..ecbca98e04f3 --- /dev/null +++ b/textproc/py-trex/files/patch-pytrex.py @@ -0,0 +1,7 @@ +--- pytrex.py.orig Sat Mar 17 00:00:31 2001 ++++ pytrex.py Sat Mar 17 00:02:26 2001 +@@ -1,3 +1,4 @@ ++#!%%LOCALBASE%%/bin/python + # PyTREX: A clean-room implementation of TREX in Python + # by James Tauber + # diff --git a/textproc/py-trex/pkg-comment b/textproc/py-trex/pkg-comment new file mode 100644 index 000000000000..0819ad6a99b3 --- /dev/null +++ b/textproc/py-trex/pkg-comment @@ -0,0 +1 @@ +Python implementation of Tree Regular Expressions for XML (TREX) diff --git a/textproc/py-trex/pkg-descr b/textproc/py-trex/pkg-descr new file mode 100644 index 000000000000..71f1ddb4ce45 --- /dev/null +++ b/textproc/py-trex/pkg-descr @@ -0,0 +1,4 @@ +PyTREX is a Python implementation of TREX, an XML schema language. + +WWW: http://pytrex.sourceforge.net/ +TREX WWW: http://thaiopensource.com/trex/ diff --git a/textproc/py-trex/pkg-plist b/textproc/py-trex/pkg-plist new file mode 100644 index 000000000000..bac6191feff2 --- /dev/null +++ b/textproc/py-trex/pkg-plist @@ -0,0 +1 @@ +bin/pytrex