From 3356bf5a2579ed777d158b87e82d9279cd01def7 Mon Sep 17 00:00:00 2001 From: ijliao Date: Thu, 14 Jun 2001 07:51:23 +0000 Subject: add txt2regex A Regular Expression "wizard" --- misc/Makefile | 1 + misc/txt2regex/Makefile | 30 ++++++++++++++++++++++++++++++ misc/txt2regex/distinfo | 1 + misc/txt2regex/pkg-comment | 1 + misc/txt2regex/pkg-descr | 7 +++++++ misc/txt2regex/pkg-plist | 1 + 6 files changed, 41 insertions(+) create mode 100644 misc/txt2regex/Makefile create mode 100644 misc/txt2regex/distinfo create mode 100644 misc/txt2regex/pkg-comment create mode 100644 misc/txt2regex/pkg-descr create mode 100644 misc/txt2regex/pkg-plist diff --git a/misc/Makefile b/misc/Makefile index 654e8468435..081399f476c 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -163,6 +163,7 @@ SUBDIR += tkrunit SUBDIR += ttyrec SUBDIR += tvguide + SUBDIR += txt2regex SUBDIR += uf-view SUBDIR += uk-phone SUBDIR += uk-postcodes diff --git a/misc/txt2regex/Makefile b/misc/txt2regex/Makefile new file mode 100644 index 00000000000..6ccacb664b1 --- /dev/null +++ b/misc/txt2regex/Makefile @@ -0,0 +1,30 @@ +# ex:ts=8 +# New ports collection makefile for: txt2regex +# Date created: Jun 14, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= txt2regex +PORTVERSION= 0.3 +CATEGORIES= misc +MASTER_SITES= http://txt2regex.sourceforge.net/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ijliao@FreeBSD.org + +RUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 \ + gseq:${PORTSDIR}/misc/sh-utils + +NO_BUILD= yes + +post-patch: + @${PERL} -pi -e "s,/bin/bash,${LOCALBASE}/bin/bash,g ; \ + s,\`seq,\`gseq,g" ${WRKSRC}/txt2regex-0.3.sh + @${PERL} -pi -e "s,/usr,${LOCALBASE},g" ${WRKSRC}/Makefile + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/txt2regex-0.3.sh ${PREFIX}/bin/txt2regex + +.include diff --git a/misc/txt2regex/distinfo b/misc/txt2regex/distinfo new file mode 100644 index 00000000000..fff984d45fc --- /dev/null +++ b/misc/txt2regex/distinfo @@ -0,0 +1 @@ +MD5 (txt2regex-0.3.tgz) = bcf6c5e1b27edd3d80c63d269aa96fa0 diff --git a/misc/txt2regex/pkg-comment b/misc/txt2regex/pkg-comment new file mode 100644 index 00000000000..fcbe480fbca --- /dev/null +++ b/misc/txt2regex/pkg-comment @@ -0,0 +1 @@ +A Regular Expression "wizard" diff --git a/misc/txt2regex/pkg-descr b/misc/txt2regex/pkg-descr new file mode 100644 index 00000000000..505417e9eee --- /dev/null +++ b/misc/txt2regex/pkg-descr @@ -0,0 +1,7 @@ +^txt2regex$ is a Regular Expression "wizard", all written with bash2 builtins, +that converts human sentences to RegExs. with a simple interface, you just +answer to questions and build your own RegEx for a large variety of programs, +like awk, ed, emacs, grep, perl, php, python, sed, tcl and vim. there are 18 +supported programs now. + +WWW: http://txt2regex.sourceforge.net/ diff --git a/misc/txt2regex/pkg-plist b/misc/txt2regex/pkg-plist new file mode 100644 index 00000000000..d98f60cfe8f --- /dev/null +++ b/misc/txt2regex/pkg-plist @@ -0,0 +1 @@ +bin/txt2regex -- cgit