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,27 +1,29 @@ PORTNAME= cpp-peglib DISTVERSIONPREFIX= v -DISTVERSION= 1.9.1 +DISTVERSION= 1.10.1 CATEGORIES= textproc devel MAINTAINER= yuri@FreeBSD.org COMMENT= C++ header-only PEG (Parsing Expression Grammars) library WWW= https://github.com/yhirose/cpp-peglib LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= googletest>0:devel/googletest USES= cmake:testing compiler:c++17-lang localbase:ldflags 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 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)