Files
ports/textproc/regex2dfa/Makefile
T
Robert Clausecker afafb6c573 textproc/regex2dfa: broken everywhere, very much out of date
/bin/sh ../../libtool --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H   -I./../include    -O2 -pipe -fstack-protector-strong -fno-strict-aliasing    -std=c++0x -MT fst.lo -MD -MP -MF .deps/fst.Tpo -c -o fst.lo fst.cc
libtool: compile:  c++ -DHAVE_CONFIG_H -I./../include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++0x -MT fst.lo -MD -MP -MF .deps/fst.Tpo -c fst.cc -o fst.o
In file included from fst.cc:26:
In file included from ./../include/fst/matcher-fst.h:26:
In file included from ./../include/fst/lookahead-matcher.h:28:
In file included from ./../include/fst/label-reachable.h:32:
In file included from ./../include/fst/accumulator.h:36:
In file included from ./../include/fst/replace.h:40:
In file included from ./../include/fst/state-table.h:31:
./../include/fst/bi-table.h:356:31: error: no member named 's_' in 'VectorHashBiTable<I, T, S, FP, H, HS>'
  356 |       : selector_(new S(table.s_)),
      |                         ~~~~~ ^
1 error generated.

Upstream has since rewritten the whole thing in Python.
Perhaps an update is in order.

Approved by:	portmgr (build fix blanket)
2026-02-24 01:43:28 +01:00

38 lines
1.2 KiB
Makefile

PORTNAME= regex2dfa
DISTVERSION= 0.1.6
PORTREVISION= 3
CATEGORIES= textproc
MAINTAINER= egypcio@FreeBSD.org
COMMENT= Command-line utility that converts regular expressions to DFA
WWW= https://github.com/kpdyer/regex2dfa
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= ./../include/fst/bi-table.h:356:31: error: no member named 's_' in 'VectorHashBiTable<I, T, S, FP, H, HS>'
USES= compiler:c++11-lang 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>