aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2018-04-20 19:53:21 +0800
committergarga <garga@FreeBSD.org>2018-04-20 19:53:21 +0800
commite74793f9008583a1751e0064254d8940608d860e (patch)
tree8f08b0c8e262a01fc741bd38bf9047d87b46f9e3 /textproc
parentea4e5f9feccb9f15a8c32eb1b12d1ee728c61720 (diff)
downloadfreebsd-ports-gnome-e74793f9008583a1751e0064254d8940608d860e.tar.gz
freebsd-ports-gnome-e74793f9008583a1751e0064254d8940608d860e.tar.zst
freebsd-ports-gnome-e74793f9008583a1751e0064254d8940608d860e.zip
Add regex2dfa 0.1.6, command-line utility that converts regular
expressions to DFA. PR: 227419 Submitted by: egypcio@googlemail.com Differential Revision: https://reviews.freebsd.org/D15027
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/regex2dfa/Makefile34
-rw-r--r--textproc/regex2dfa/distinfo3
-rw-r--r--textproc/regex2dfa/pkg-descr3
4 files changed, 41 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 95c7cef85414..33c841474465 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1446,6 +1446,7 @@
SUBDIR += redland-bindings
SUBDIR += refdb
SUBDIR += reflex
+ SUBDIR += regex2dfa
SUBDIR += replaceit
SUBDIR += resume
SUBDIR += resume-extensions
diff --git a/textproc/regex2dfa/Makefile b/textproc/regex2dfa/Makefile
new file mode 100644
index 000000000000..f1619e72c893
--- /dev/null
+++ b/textproc/regex2dfa/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME= regex2dfa
+DISTVERSION= 0.1.6
+CATEGORIES= textproc
+
+MAINTAINER= egypcio@googlemail.com
+COMMENT= Command-line utility that converts regular expressions to DFA
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= gmake libtool
+USE_GITHUB= yes
+GH_ACCOUNT= kpdyer
+
+GNU_CONFIGURE= yes
+PLIST_FILES= bin/${PORTNAME} include/${PORTNAME}.h lib/lib${PORTNAME}.a
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|-ldl||g' \
+ ${WRKSRC}/Makefile.in \
+ ${WRKSRC}/third_party/openfst/src/bin/Makefile.in \
+ ${WRKSRC}/third_party/openfst/src/extensions/far/Makefile.in \
+ ${WRKSRC}/third_party/openfst/src/extensions/linear/Makefile.in \
+ ${WRKSRC}/third_party/openfst/src/extensions/pdt/Makefile.in \
+ ${WRKSRC}/third_party/openfst/src/test/Makefile.in
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/.libs/lib${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/textproc/regex2dfa/distinfo b/textproc/regex2dfa/distinfo
new file mode 100644
index 000000000000..035f07ddaabe
--- /dev/null
+++ b/textproc/regex2dfa/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521110724
+SHA256 (kpdyer-regex2dfa-0.1.6_GH0.tar.gz) = 0df50423ff29e5ff25d14b336779bec6a0defc38ed4a2a558fd93fdb54dcde54
+SIZE (kpdyer-regex2dfa-0.1.6_GH0.tar.gz) = 2405175
diff --git a/textproc/regex2dfa/pkg-descr b/textproc/regex2dfa/pkg-descr
new file mode 100644
index 000000000000..53d97aae242e
--- /dev/null
+++ b/textproc/regex2dfa/pkg-descr
@@ -0,0 +1,3 @@
+python/JS/C++/CLI interface for converting regexes to AT&T FSTs
+
+WWW: https://github.com/kpdyer/regex2dfa