aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2005-04-22 10:32:59 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2005-04-22 10:32:59 +0000
commit4cb05a3959e823eeba0292799b8540f6812d1dc8 (patch)
tree1478ac694c21305d1bf6a011c3f3e6d51d072676
parentdbdb9f3e5c4744402f062831e2f617a6648d9851 (diff)
downloadports-4cb05a3959e823eeba0292799b8540f6812d1dc8.tar.gz
ports-4cb05a3959e823eeba0292799b8540f6812d1dc8.zip
add re_graph 0.2
Regular Expression Graphing Program
Notes
Notes: svn path=/head/; revision=133928
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/re_graph/Makefile43
-rw-r--r--textproc/re_graph/distinfo2
-rw-r--r--textproc/re_graph/pkg-descr17
4 files changed, 63 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b8658b712d01..74e71e817fec 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -554,6 +554,7 @@
SUBDIR += queequeg
SUBDIR += rand
SUBDIR += raptor
+ SUBDIR += re_graph
SUBDIR += redland
SUBDIR += redland-bindings
SUBDIR += replaceit
diff --git a/textproc/re_graph/Makefile b/textproc/re_graph/Makefile
new file mode 100644
index 000000000000..2a43249aabe0
--- /dev/null
+++ b/textproc/re_graph/Makefile
@@ -0,0 +1,43 @@
+# ex:ts=8
+# Ports collection makefile for: re_graph
+# Date created: Apr 22, 2005
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= re_graph
+PORTVERSION= 0.2
+CATEGORIES= textproc
+MASTER_SITES= http://www.oualline.com/sw/re/
+DISTNAME= ${PORTNAME:S/_/-/}_${PORTVERSION:S/.//}
+EXTRACT_SUFX= .tar
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Regular Expression Graphing Program
+
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
+ ${SITE_PERL}/GD/Arrow.pm:${PORTSDIR}/graphics/p5-GD-Arrow
+
+NO_WRKSUBDIR= yes
+EXTRACT_CMD= ${TAR}
+EXTRACT_BEFORE_ARGS= -xf
+EXTRACT_AFTER_ARGS= # empty
+NO_BUILD= yes
+USE_PERL5_RUN= yes
+
+PLIST_FILES= bin/re_graph
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/re_graph.pl ${PREFIX}/bin/re_graph
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/re_graph.html ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/tut* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/re_graph/distinfo b/textproc/re_graph/distinfo
new file mode 100644
index 000000000000..79ada4c26fff
--- /dev/null
+++ b/textproc/re_graph/distinfo
@@ -0,0 +1,2 @@
+MD5 (re-graph_02.tar) = e78e3d2237f0fac5726ad0d6ad6a31f1
+SIZE (re-graph_02.tar) = 4536320
diff --git a/textproc/re_graph/pkg-descr b/textproc/re_graph/pkg-descr
new file mode 100644
index 000000000000..9b9901414afd
--- /dev/null
+++ b/textproc/re_graph/pkg-descr
@@ -0,0 +1,17 @@
+The re_graph.pl program graphs regular expressions. The guts of the regular
+expression engine is a simple state machine. The various states and operations
+in the regular expression parser can be displayed using a surprisingly simple
+diagram.
+
+A few notes on what you are looking at:
+ * The nodes Start and Stop denote the beginning and end of the regular
+ expression.
+ * The solid squares denote atoms. Lines indicate the next state. When a
+ line splits, the state machine will take the top line first. If it's
+ path is blocked it will backup and take the next lower line. This is
+ repeated until it finds a path to the end or all paths are exhausted.
+ * Brown boxes indicate a grouping operation, i.e. ().
+ * Green boxes indicate a zero with test. The state machine will perform the
+ test inside the box before moving ahead.
+
+WWW: http://www.oualline.com/sw/