From 5d2f0b41ef54d731f5b5082b27b3a0e83fa64d5b Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 20 Apr 2018 11:53:21 +0000 Subject: [PATCH] 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 --- textproc/Makefile | 1 + textproc/regex2dfa/Makefile | 34 ++++++++++++++++++++++++++++++++++ textproc/regex2dfa/distinfo | 3 +++ textproc/regex2dfa/pkg-descr | 3 +++ 4 files changed, 41 insertions(+) create mode 100644 textproc/regex2dfa/Makefile create mode 100644 textproc/regex2dfa/distinfo create mode 100644 textproc/regex2dfa/pkg-descr 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 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