commit: 365b3a4addad49cc706b16692215b484f71160a2
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 7 22:50:34 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Feb 7 22:51:30 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365b3a4a
sci-geosciences/s2geometry: enable debug (-DBEGUG) conditionally
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
.../{s2geometry-0.13.1.ebuild => s2geometry-0.13.1-r1.ebuild} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sci-geosciences/s2geometry/s2geometry-0.13.1.ebuild
b/sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild
similarity index 88%
rename from sci-geosciences/s2geometry/s2geometry-0.13.1.ebuild
rename to sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild
index 331078e94c00..a50a7a8ef6c2 100644
--- a/sci-geosciences/s2geometry/s2geometry-0.13.1.ebuild
+++ b/sci-geosciences/s2geometry/s2geometry-0.13.1-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit cmake
+inherit cmake flag-o-matic
DESCRIPTION="Computational geometry and spatial indexing on the sphere"
HOMEPAGE="http://s2geometry.io/"
@@ -13,7 +13,7 @@
SRC_URI="https://github.com/google/${PN}/archive/refs/tags/v${PV}.tar.gz
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="test"
+IUSE="debug test"
RESTRICT="!test? ( test )"
RDEPEND="
@@ -25,6 +25,8 @@ DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${P}-test.patch )
src_configure() {
+ append-cxxflags $(usex debug '-DDEBUG' '-DNDEBUG')
+
local mycmakeargs=(
-DBUILD_TESTS=$(usex test)
-DGOOGLETEST_ROOT=/usr/include