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