commit:     298b752d21d0bf7cfe2a67a12b033459c18d370f
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  9 21:21:14 2026 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Feb  9 21:21:51 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=298b752d

sci-geosciences/s2geometry: fix build without gtest

Closes: https://bugs.gentoo.org/969784
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../{s2geometry-0.13.1-r1.ebuild => s2geometry-0.13.1-r2.ebuild}      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild 
b/sci-geosciences/s2geometry/s2geometry-0.13.1-r2.ebuild
similarity index 91%
rename from sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild
rename to sci-geosciences/s2geometry/s2geometry-0.13.1-r2.ebuild
index a50a7a8ef6c2..9f2ba0c0f2c4 100644
--- a/sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild
+++ b/sci-geosciences/s2geometry/s2geometry-0.13.1-r2.ebuild
@@ -29,8 +29,10 @@ src_configure() {
 
        local mycmakeargs=(
                -DBUILD_TESTS=$(usex test)
-               -DGOOGLETEST_ROOT=/usr/include
        )
+       if use test; then
+               mycmakeargs += -DGOOGLETEST_ROOT=/usr/include
+       fi
        cmake_src_configure
 }
 

Reply via email to