git: 410afcbf2254 - main - textproc/cpp-peglib: update 1.9.1 → 1.10.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 15 Mar 2026 01:18:27 UTC
The branch main has been updated by yuri:

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

commit 410afcbf2254204e5b0ab27698ee745d8618fe7e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-14 22:33:14 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-15 01:18:24 +0000

    textproc/cpp-peglib: update 1.9.1 → 1.10.1
    
    Reported by:    portscout
---
 textproc/cpp-peglib/Makefile                       |  6 +++--
 textproc/cpp-peglib/distinfo                       |  6 ++---
 .../cpp-peglib/files/patch-test_CMakeLists.txt     | 26 ++++++++++++++++++++++
 3 files changed, 33 insertions(+), 5 deletions(-)

diff --git a/textproc/cpp-peglib/Makefile b/textproc/cpp-peglib/Makefile
index 075f34e87312..56b8fe094e31 100644
--- a/textproc/cpp-peglib/Makefile
+++ b/textproc/cpp-peglib/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	cpp-peglib
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.9.1
+DISTVERSION=	1.10.1
 CATEGORIES=	textproc devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -18,10 +18,12 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	yhirose
 
 CMAKE_OFF=	BUILD_TESTS
-CMAKE_TESTING_ON=	BUILD_TESTS # tests fail to link, see https://github.com/yhirose/cpp-peglib/issues/281#issuecomment-1869064489
+CMAKE_TESTING_ON=	BUILD_TESTS
 
 NO_ARCH=	yes
 
 PLIST_FILES=	include/peglib.h
 
+# tests as of 1.10.1: 100% tests passed, 0 tests failed out of 382
+
 .include <bsd.port.mk>
diff --git a/textproc/cpp-peglib/distinfo b/textproc/cpp-peglib/distinfo
index a0fc765a8562..e4ed1ba98795 100644
--- a/textproc/cpp-peglib/distinfo
+++ b/textproc/cpp-peglib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1731821889
-SHA256 (yhirose-cpp-peglib-v1.9.1_GH0.tar.gz) = f57aa0f14372cbb772af29e3a4549a8033ea07eb25c39949cba6178e0e2ba9cc
-SIZE (yhirose-cpp-peglib-v1.9.1_GH0.tar.gz) = 228336
+TIMESTAMP = 1773526150
+SHA256 (yhirose-cpp-peglib-v1.10.1_GH0.tar.gz) = 3ba50bdc1be5521affc507e9fa589526372f6d7396ec490f706255a2b30d9635
+SIZE (yhirose-cpp-peglib-v1.10.1_GH0.tar.gz) = 476239
diff --git a/textproc/cpp-peglib/files/patch-test_CMakeLists.txt b/textproc/cpp-peglib/files/patch-test_CMakeLists.txt
new file mode 100644
index 000000000000..8104f0402ce9
--- /dev/null
+++ b/textproc/cpp-peglib/files/patch-test_CMakeLists.txt
@@ -0,0 +1,26 @@
+--- test/CMakeLists.txt.orig	2026-03-14 22:29:05 UTC
++++ test/CMakeLists.txt
+@@ -1,14 +1,7 @@ project(test)
+ cmake_minimum_required(VERSION 3.14)
+ project(test)
+ 
+-include(FetchContent)
+-FetchContent_Declare(
+-  googletest
+-  URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
+-)
+-# For Windows: Prevent overriding the parent project's compiler/linker settings
+-set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+-FetchContent_MakeAvailable(googletest)
++find_package(GTest REQUIRED)
+ 
+ enable_testing()
+ 
+@@ -31,6 +24,7 @@ target_include_directories(peglib-test-main PRIVATE ..
+ )
+ 
+ target_include_directories(peglib-test-main PRIVATE ..)
++target_link_libraries(peglib-test-main PRIVATE gtest)
+ 
+ include(GoogleTest)
+ gtest_discover_tests(peglib-test-main)