I've had this in my tree for a while and forgot about it. Tests pass 100% on amd64 and the handful of consumers I tried did not regress.
Feedback? OK? Index: Makefile =================================================================== RCS file: /cvs/ports/devel/gtest/Makefile,v diff -u -p -r1.33 Makefile --- Makefile 6 May 2024 12:22:39 -0000 1.33 +++ Makefile 13 Sep 2024 07:03:36 -0000 @@ -1,16 +1,13 @@ COMMENT = C++ unit test framework -V= 1.14.0 -GH_ACCOUNT= google -GH_PROJECT= googletest -GH_TAGNAME= v${V} -DISTNAME= gtest-${V} -REVISION= 1 +V= 1.15.2 +DIST_TUPLE= github google googletest v${V} . +PKGNAME= gtest-${V} -SHARED_LIBS += gmock 2.0 # .0.0 -SHARED_LIBS += gmock_main 1.0 # .0.0 -SHARED_LIBS += gtest 3.0 # .0.0 -SHARED_LIBS += gtest_main 2.0 # .0.0 +SHARED_LIBS += gmock 2.0 +SHARED_LIBS += gmock_main 1.0 +SHARED_LIBS += gtest 4.0 +SHARED_LIBS += gtest_main 2.0 CATEGORIES = devel Index: distinfo =================================================================== RCS file: /cvs/ports/devel/gtest/distinfo,v diff -u -p -r1.7 distinfo --- distinfo 20 Aug 2023 05:41:57 -0000 1.7 +++ distinfo 13 Sep 2024 07:02:39 -0000 @@ -1,2 +1,2 @@ -SHA256 (gtest-1.14.0.tar.gz) = itWYxzrXluDYKAsILOvYKmMNc+c808cAV5OKZQG7pdc= -SIZE (gtest-1.14.0.tar.gz) = 867764 +SHA256 (google-googletest-v1.15.2.tar.gz) = e0K01u1IgQxTYsJloX+uvpDcI3PIheUhZDnTeSfwKSY= +SIZE (google-googletest-v1.15.2.tar.gz) = 872667 Index: patches/patch-googletest_src_gtest_cc =================================================================== RCS file: patches/patch-googletest_src_gtest_cc diff -N patches/patch-googletest_src_gtest_cc --- patches/patch-googletest_src_gtest_cc 25 Oct 2023 05:29:07 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -Missing include needed for ports-gcc to have raise in scope - -https://github.com/google/googletest/pull/4397 - -Index: googletest/src/gtest.cc ---- googletest/src/gtest.cc.orig -+++ googletest/src/gtest.cc -@@ -44,6 +44,7 @@ - #include <chrono> // NOLINT - #include <cmath> - #include <cstdint> -+#include <csignal> - #include <cstdlib> - #include <cstring> - #include <initializer_list>