summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2025-04-14 11:19:19 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2025-04-14 22:40:40 +0200
commit00ac857cb0aa75e9ded6becdea5d3c1917a9e001 (patch)
tree566b09e66f41c8dd4212e3157b33c47af8e46eb0
parentsecurity/sops: Update version 3.9.4=>3.10.0 (diff)
textproc/lttoolbox: Update version 3.7.6=>3.8.0
Changelog: https://github.com/apertium/lttoolbox/releases/tag/v3.8.0
-rw-r--r--textproc/lttoolbox/Makefile12
-rw-r--r--textproc/lttoolbox/distinfo6
-rw-r--r--textproc/lttoolbox/files/patch-lttoolbox_lt__comp.cc23
-rw-r--r--textproc/lttoolbox/pkg-plist4
4 files changed, 32 insertions, 13 deletions
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 <bsd.port.mk>
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 <lttoolbox/lt_locale.h>
+ #include <lttoolbox/cli.h>
+ #include <lttoolbox/file_utils.h>
++#include <lttoolbox/xml_walk_util.h>
+
+ #include <iostream>
+
+@@ -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