commit: 76369a31cf2521df929f20cff8328144e5b0679a
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 15 20:44:54 2025 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 17:00:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76369a31
sci-physics/geant4_vmc: update live ebuild
Fixes examples requiring g4root flag (via REQUIRED_USE)
and toggles BUILD_G4Root with USE_G4Root.
Also couples building of examples to examples USE flag.
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
sci-physics/geant4_vmc/geant4_vmc-9999.ebuild | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
b/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
index a89d55af53cd..884c3a773475 100644
--- a/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
+++ b/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -31,12 +31,10 @@ RDEPEND="
DEPEND="${RDEPEND}
test? ( sci-physics/geant:=[gdml] )"
BDEPEND="doc? ( app-text/doxygen[dot] )"
-RESTRICT="
- !examples? ( test )
- !geant3? ( test )
- !g4root? ( test )
- !test? ( test )
- !vgm? ( test )"
+REQUIRED_USE="
+ test? ( examples geant3 g4root vgm )
+ examples? ( g4root )"
+RESTRICT="!test? ( test )"
DOCS=(history README.md)
@@ -44,8 +42,9 @@ src_configure() {
local mycmakeargs=(
-DGeant4VMC_USE_VGM="$(usex vgm)"
-DGeant4VMC_USE_GEANT4_G3TOG4="$(usex geant3)"
+ -DGeant4VMC_BUILD_G4Root="$(usex g4root)"
-DGeant4VMC_USE_G4Root="$(usex g4root)"
- -DGeant4VMC_BUILD_EXAMPLES="$(usex test)"
+ -DGeant4VMC_BUILD_EXAMPLES="$(usex examples)"
-DGeant4VMC_INSTALL_EXAMPLES="$(usex examples)"
-DGeant4VMC_BUILD_G4Root_TEST="$(usex test)"
)