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
This commit is contained in:
Renato Botelho 2018-04-20 11:53:21 +00:00
parent e1538d5247
commit 5d2f0b41ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467820
4 changed files with 41 additions and 0 deletions

View file

@ -1446,6 +1446,7 @@
SUBDIR += redland-bindings
SUBDIR += refdb
SUBDIR += reflex
SUBDIR += regex2dfa
SUBDIR += replaceit
SUBDIR += resume
SUBDIR += resume-extensions

View file

@ -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>

View file

@ -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

View file

@ -0,0 +1,3 @@
python/JS/C++/CLI interface for converting regexes to AT&T FSTs
WWW: https://github.com/kpdyer/regex2dfa