git: ddace0628b1b - main - textproc/utf8proc: Update to 2.11.1

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 15 Nov 2025 13:23:45 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ddace0628b1b66f54de8251e4f2bbc16511f0e35

commit ddace0628b1b66f54de8251e4f2bbc16511f0e35
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-11-15 10:49:10 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-11-15 11:52:43 +0000

    textproc/utf8proc: Update to 2.11.1
    
    * Add "make test"
    
    Changelog: https://github.com/JuliaStrings/utf8proc/releases/tag/v2.11.1
---
 textproc/utf8proc/Makefile                   | 28 ++++++++++++++++++----------
 textproc/utf8proc/distinfo                   | 10 +++++++---
 textproc/utf8proc/files/patch-CMakeLists.txt | 22 ++++++++++++----------
 textproc/utf8proc/pkg-plist                  |  9 +++++++++
 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