git: 80697b29aed2 - main - devel/libunistring: Update to 1.3

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 15 Jan 2025 19:42:32 UTC
The branch main has been updated by diizzy:

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

commit 80697b29aed2fb08eadfbf5742d5a0ed991e2185
Author:     takefu <takefu@airport.fm>
AuthorDate: 2025-01-15 19:24:40 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-01-15 19:42:17 +0000

    devel/libunistring: Update to 1.3
    
    Committers note:
    Add a few more sections in port Makefile to make it easier to follow and
    to follow Porters Handbook more closely
    
    Changelog: https://savannah.gnu.org/news/?id=10682
    
    PR:             283588
---
 devel/libunistring/Makefile                            |  7 ++++---
 devel/libunistring/distinfo                            |  6 +++---
 devel/libunistring/files/patch-lib_unistr_u8-strncpy.c | 16 ++++++++++++++++
 devel/libunistring/pkg-plist                           |  3 +--
 4 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/devel/libunistring/Makefile b/devel/libunistring/Makefile
index 6ca4ecb69a05..69af5d92434a 100644
--- a/devel/libunistring/Makefile
+++ b/devel/libunistring/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libunistring
-DISTVERSION=	1.2
+DISTVERSION=	1.3
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 
@@ -16,13 +16,14 @@ LICENSE_FILE_LGPL3+ =	${WRKSRC}/COPYING.LIB
 USES=		alias charsetfix cpe iconv libtool tar:xz
 CPE_VENDOR=	gnu
 USE_LDCONFIG=	yes
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-static
+
 INSTALL_TARGET=	install-strip
 TEST_TARGET=	check
 INFO=		${PORTNAME}
-OPTIONS_DEFINE=	DOCS
 
-TESTING_UNSAFE=	test-time.c:46: assertion 'tt3 >= tv2.tv_sec' failed
+OPTIONS_DEFINE=	DOCS
 
 .include <bsd.port.mk>
diff --git a/devel/libunistring/distinfo b/devel/libunistring/distinfo
index 9eb9474478de..2deeb2bf8f27 100644
--- a/devel/libunistring/distinfo
+++ b/devel/libunistring/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708981678
-SHA256 (libunistring-1.2.tar.xz) = 632bd65ed74a881ca8a0309a1001c428bd1cbd5cd7ddbf8cedcd2e65f4dcdc44
-SIZE (libunistring-1.2.tar.xz) = 2502196
+TIMESTAMP = 1735161593
+SHA256 (libunistring-1.3.tar.xz) = f245786c831d25150f3dfb4317cda1acc5e3f79a5da4ad073ddca58886569527
+SIZE (libunistring-1.3.tar.xz) = 2753448
diff --git a/devel/libunistring/files/patch-lib_unistr_u8-strncpy.c b/devel/libunistring/files/patch-lib_unistr_u8-strncpy.c
new file mode 100644
index 000000000000..5bde3fdec11d
--- /dev/null
+++ b/devel/libunistring/files/patch-lib_unistr_u8-strncpy.c
@@ -0,0 +1,16 @@
+--- lib/unistr/u8-strncpy.c.orig	2024-01-29 00:58:11 UTC
++++ lib/unistr/u8-strncpy.c
+@@ -28,10 +28,6 @@
+ /* Specification.  */
+ #include "unistr.h"
+ 
+-#include <string.h>
+-
+-uint8_t *
+-u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n)
+-{
+-  return (uint8_t *) strncpy ((char *) dest, (const char *) src, n);
+-}
++#define FUNC u8_strncpy
++#define UNIT uint8_t
++#include "u-strncpy.h"
diff --git a/devel/libunistring/pkg-plist b/devel/libunistring/pkg-plist
index 26e01030b82a..d2bbdaf47367 100644
--- a/devel/libunistring/pkg-plist
+++ b/devel/libunistring/pkg-plist
@@ -25,7 +25,6 @@
 %%PORTDOCS%%%%DOCSDIR%%/libunistring_fot.html
 %%PORTDOCS%%%%DOCSDIR%%/libunistring_toc.html
 include/unistring/inline.h
-include/unistring/stdbool.h
 include/unistring/stdint.h
 include/unistring/localcharset.h
 include/unistring/iconveh.h
@@ -47,4 +46,4 @@ include/unicase.h
 include/unigbrk.h
 lib/libunistring.so
 lib/libunistring.so.5
-lib/libunistring.so.5.1.0
+lib/libunistring.so.5.2.0