diff --git a/textproc/lttoolbox/Makefile b/textproc/lttoolbox/Makefile index 927a1d29c40a..97b1df820a58 100644 --- a/textproc/lttoolbox/Makefile +++ b/textproc/lttoolbox/Makefile @@ -1,6 +1,5 @@ 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}/ @@ -14,17 +13,12 @@ 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 @@ -5,6 +5,7 @@ bin/lt-comp bin/lt-compose bin/lt-expand bin/lt-invert +bin/lt-merge bin/lt-paradigm bin/lt-print bin/lt-proc @@ -38,6 +39,7 @@ 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 @@ -46,7 +48,6 @@ 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 @@ -62,6 +63,7 @@ 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