diff --git a/textproc/lttoolbox/Makefile b/textproc/lttoolbox/Makefile index 927a1d29c40a..97b1df820a58 100644 --- a/textproc/lttoolbox/Makefile +++ b/textproc/lttoolbox/Makefile @@ -1,30 +1,24 @@ PORTNAME= lttoolbox -DISTVERSION= 3.7.6 -PORTREVISION= 2 +DISTVERSION= 3.8.0 CATEGORIES= textproc MASTER_SITES= https://github.com/apertium/${PORTNAME}/releases/download/v${DISTVERSION}/ MAINTAINER= bofh@FreeBSD.org COMMENT= Tool for lexical, morphological analysis and generation of words WWW= https://wiki.apertium.org/wiki/Lttoolbox LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= utf8cpp>=4.0.3:devel/utf8cpp LIB_DEPENDS= libicuio.so:devel/icu -USES= autoreconf compiler:c++14-lang gnome libtool pathfix pkgconfig \ +USES= cmake compiler:c++14-lang gnome libtool localbase pathfix pkgconfig \ tar:bz2 USE_GNOME= libxml2 USE_LDCONFIG= yes -GNU_CONFIGURE= yes -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share - -INSTALL_TARGET= install-strip - -CFLAGS+= -I${LOCALBASE}/include/utf8cpp +CFLAGS+= -I${LOCALBASE}/include/utf8cpp -D_XOPEN_SOURCE=600 LDFLAGS+= -lpthread .include diff --git a/textproc/lttoolbox/distinfo b/textproc/lttoolbox/distinfo index 3ad74a8556ed..6c210ce18999 100644 --- a/textproc/lttoolbox/distinfo +++ b/textproc/lttoolbox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1703739184 -SHA256 (lttoolbox-3.7.6.tar.bz2) = 5a862716be36444c10014fbe45ac4e17b8bc498135311d5c9ac948187f6630fd -SIZE (lttoolbox-3.7.6.tar.bz2) = 172685 +TIMESTAMP = 1744531039 +SHA256 (lttoolbox-3.8.0.tar.bz2) = 0bbe13c9798b937acad902c2ff39e38c13c061ad2247ba44cde289ddc95e1534 +SIZE (lttoolbox-3.8.0.tar.bz2) = 157338 diff --git a/textproc/lttoolbox/files/patch-lttoolbox_lt__comp.cc b/textproc/lttoolbox/files/patch-lttoolbox_lt__comp.cc new file mode 100644 index 000000000000..11e2fa496cd2 --- /dev/null +++ b/textproc/lttoolbox/files/patch-lttoolbox_lt__comp.cc @@ -0,0 +1,23 @@ +--- lttoolbox/lt_comp.cc.orig 2025-04-05 18:21:01 UTC ++++ lttoolbox/lt_comp.cc +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + #include + +@@ -119,7 +120,11 @@ int main(int argc, char *argv[]) + std::cerr << "Error: Cannot not open file '" << infile << "'." << std::endl << std::endl; + exit(EXIT_FAILURE); + } +- initGenericErrorDefaultFunc(NULL); ++#if LIBXML_VERSION < 21200 ++ initGenericErrorDefaultFunc(NULL); ++#else ++ xmlSetGenericErrorFunc(NULL, handler); // match new signature if needed ++#endif + + + if(opc == "lr") diff --git a/textproc/lttoolbox/pkg-plist b/textproc/lttoolbox/pkg-plist index 869587f08cca..ff4653b33414 100644 --- a/textproc/lttoolbox/pkg-plist +++ b/textproc/lttoolbox/pkg-plist @@ -1,70 +1,72 @@ bin/lsx-comp bin/lt-append bin/lt-apply-acx bin/lt-comp bin/lt-compose bin/lt-expand bin/lt-invert +bin/lt-merge bin/lt-paradigm bin/lt-print bin/lt-proc bin/lt-restrict bin/lt-tmxcomp bin/lt-tmxproc bin/lt-trim include/lttoolbox/acx.h include/lttoolbox/alphabet.h include/lttoolbox/att_compiler.h include/lttoolbox/buffer.h include/lttoolbox/cli.h include/lttoolbox/compiler.h include/lttoolbox/compression.h include/lttoolbox/deserialiser.h include/lttoolbox/entry_token.h include/lttoolbox/exception.h include/lttoolbox/expander.h include/lttoolbox/file_utils.h include/lttoolbox/fst_processor.h include/lttoolbox/input_file.h include/lttoolbox/lt_locale.h include/lttoolbox/match_exe.h include/lttoolbox/match_node.h include/lttoolbox/match_state.h include/lttoolbox/my_stdio.h include/lttoolbox/node.h include/lttoolbox/pattern_list.h include/lttoolbox/regexp_compiler.h include/lttoolbox/serialiser.h include/lttoolbox/sorted_vector.h include/lttoolbox/sorted_vector.hpp include/lttoolbox/state.h +include/lttoolbox/stream_reader.h include/lttoolbox/string_utils.h include/lttoolbox/symbol_iter.h include/lttoolbox/tmx_compiler.h include/lttoolbox/trans_exe.h include/lttoolbox/transducer.h include/lttoolbox/ustring.h include/lttoolbox/xml_parse_util.h include/lttoolbox/xml_walk_util.h -lib/liblttoolbox.a lib/liblttoolbox.so lib/liblttoolbox.so.3 lib/liblttoolbox.so.3.0.0 %%DATADIR%%/acx.rng %%DATADIR%%/acx.xsd %%DATADIR%%/dix.dtd %%DATADIR%%/dix.rnc %%DATADIR%%/dix.rng %%DATADIR%%/dix.xsd libdata/pkgconfig/lttoolbox.pc share/man/man1/lsx-comp.1.gz share/man/man1/lt-append.1.gz share/man/man1/lt-comp.1.gz share/man/man1/lt-compose.1.gz share/man/man1/lt-expand.1.gz +share/man/man1/lt-merge.1.gz share/man/man1/lt-paradigm.1.gz share/man/man1/lt-print.1.gz share/man/man1/lt-proc.1.gz share/man/man1/lt-tmxcomp.1.gz share/man/man1/lt-tmxproc.1.gz share/man/man1/lt-trim.1.gz