summaryrefslogtreecommitdiff
path: root/textproc/utf8proc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/utf8proc')
-rw-r--r--textproc/utf8proc/Makefile28
-rw-r--r--textproc/utf8proc/distinfo10
-rw-r--r--textproc/utf8proc/files/patch-CMakeLists.txt22
-rw-r--r--textproc/utf8proc/pkg-plist9
4 files changed, 46 insertions, 23 deletions
diff --git a/textproc/utf8proc/Makefile b/textproc/utf8proc/Makefile
index 977b80564548..2c7f4ffa987a 100644
--- a/textproc/utf8proc/Makefile
+++ b/textproc/utf8proc/Makefile
@@ -1,7 +1,14 @@
PORTNAME= utf8proc
-DISTVERSION= 2.10.0
+DISTVERSION= 2.11.1
CATEGORIES= textproc devel
-MASTER_SITES= https://github.com/JuliaStrings/${PORTNAME}/releases/download/v${DISTVERSION}/
+MASTER_SITES= https://github.com/JuliaStrings/${PORTNAME}/releases/download/v${DISTVERSION}/ \
+ https://www.unicode.org/Public/17.0.0/ucd/:testfiles1 \
+ https://www.unicode.org/Public/17.0.0/ucd/auxiliary/:testfiles2
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ NormalizationTest.txt:testfiles1 \
+ GraphemeBreakTest.txt:testfiles2
+DIST_SUBDIR= ${PORTNAME}/${DISTVERSION}
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= diizzy@FreeBSD.org
COMMENT= UTF-8 processing library
@@ -10,18 +17,15 @@ WWW= https://juliastrings.github.io/utf8proc/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-USES= cmake
+USES= cmake:testing pathfix
USE_LDCONFIG= yes
-CMAKE_ON= BUILD_SHARED_LIBS
-
-PLIST_FILES= include/utf8proc.h \
- lib/libutf8proc.so \
- lib/libutf8proc.so.3 \
- lib/libutf8proc.so.3.1.0 \
- libdata/pkgconfig/libutf8proc.pc
PORTDOCS= NEWS.md README.md
+CMAKE_TESTING_ON= UTF8PROC_ENABLE_TESTING
+
+CMAKE_ON= BUILD_SHARED_LIBS
+
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@@ -29,4 +33,8 @@ post-install-DOCS-on:
cd ${WRKSRC} && \
${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+pre-test:
+ ${MKDIR} ${BUILD_WRKSRC}/data
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/*.txt ${BUILD_WRKSRC}/data
+
.include <bsd.port.mk>
diff --git a/textproc/utf8proc/distinfo b/textproc/utf8proc/distinfo
index 756b5eac767d..05162b2b024b 100644
--- a/textproc/utf8proc/distinfo
+++ b/textproc/utf8proc/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1742505280
-SHA256 (utf8proc-2.10.0.tar.gz) = 276a37dc4d1dd24d7896826a579f4439d1e5fe33603add786bb083cab802e23e
-SIZE (utf8proc-2.10.0.tar.gz) = 195848
+TIMESTAMP = 1763200320
+SHA256 (utf8proc/2.11.1/utf8proc-2.11.1.tar.gz) = 0aa41260917df1ef4724f34f314babbd48ba18963e4d5a14a1752f14ee765010
+SIZE (utf8proc/2.11.1/utf8proc-2.11.1.tar.gz) = 198822
+SHA256 (utf8proc/2.11.1/NormalizationTest.txt) = 5019ffd530751a741900c849c0e010332f142a3612234639bd200b82138a87db
+SIZE (utf8proc/2.11.1/NormalizationTest.txt) = 2827429
+SHA256 (utf8proc/2.11.1/GraphemeBreakTest.txt) = e2d134d2c52919bace503ebb6a551c1855fe1a1faec18478c78fff254a1793ec
+SIZE (utf8proc/2.11.1/GraphemeBreakTest.txt) = 126570
diff --git a/textproc/utf8proc/files/patch-CMakeLists.txt b/textproc/utf8proc/files/patch-CMakeLists.txt
index 17c0d46124c4..821d8539fc00 100644
--- a/textproc/utf8proc/files/patch-CMakeLists.txt
+++ b/textproc/utf8proc/files/patch-CMakeLists.txt
@@ -1,11 +1,13 @@
---- CMakeLists.txt.orig 2021-12-17 21:31:08 UTC
+--- CMakeLists.txt.orig 2025-11-15 10:14:38 UTC
+++ CMakeLists.txt
-@@ -62,7 +62,7 @@ if (UTF8PROC_INSTALL)
- RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}"
- )
- configure_file(libutf8proc.pc.cmakein libutf8proc.pc @ONLY)
-- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
-+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}data/pkgconfig")
- endif()
-
- if(UTF8PROC_ENABLE_TESTING)
+@@ -86,8 +86,8 @@ if(UTF8PROC_ENABLE_TESTING)
+ enable_testing()
+ file(MAKE_DIRECTORY data)
+ set(UNICODE_VERSION 17.0.0)
+- file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)
+- file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)
++# file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/NormalizationTest.txt ${CMAKE_BINARY_DIR}/data/NormalizationTest.txt SHOW_PROGRESS)
++# file(DOWNLOAD https://www.unicode.org/Public/${UNICODE_VERSION}/ucd/auxiliary/GraphemeBreakTest.txt ${CMAKE_BINARY_DIR}/data/GraphemeBreakTest.txt SHOW_PROGRESS)
+ add_executable(case test/tests.h test/tests.c utf8proc.h test/case.c)
+ target_link_libraries(case utf8proc)
+ add_executable(custom test/tests.h test/tests.c utf8proc.h test/custom.c)
diff --git a/textproc/utf8proc/pkg-plist b/textproc/utf8proc/pkg-plist
new file mode 100644
index 000000000000..9c3a5549dc44
--- /dev/null
+++ b/textproc/utf8proc/pkg-plist
@@ -0,0 +1,9 @@
+include/utf8proc.h
+lib/cmake/utf8proc/utf8proc-config-version.cmake
+lib/cmake/utf8proc/utf8proc-config.cmake
+lib/cmake/utf8proc/utf8proc-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/utf8proc/utf8proc-targets.cmake
+lib/libutf8proc.so
+lib/libutf8proc.so.3
+lib/libutf8proc.so.3.2.1
+libdata/pkgconfig/libutf8proc.pc