summaryrefslogtreecommitdiff
path: root/sci-physics
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-21 19:00:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-21 19:00:45 +0000
commit42d100735379ec54a77539383203e971a7ab8440 (patch)
treeee1d9d9ca8766e1b2d10e8ae02838bb8170c49c4 /sci-physics
parentfc2ac03133775e16cea65c56db9b246440e8d824 (diff)
gentoo auto-resync : 21:03:2024 - 19:00:45
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/Manifest.gzbin4374 -> 4373 bytes
-rw-r--r--sci-physics/geant4_vmc/Manifest3
-rw-r--r--sci-physics/geant4_vmc/files/geant4_vmc-6.6-fix-preinstall-tests.patch20
-rw-r--r--sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild84
4 files changed, 107 insertions, 0 deletions
diff --git a/sci-physics/Manifest.gz b/sci-physics/Manifest.gz
index ed66b88e57df..b72f53994eb0 100644
--- a/sci-physics/Manifest.gz
+++ b/sci-physics/Manifest.gz
Binary files differ
diff --git a/sci-physics/geant4_vmc/Manifest b/sci-physics/geant4_vmc/Manifest
index 3a906a835907..ff1e9df7deb6 100644
--- a/sci-physics/geant4_vmc/Manifest
+++ b/sci-physics/geant4_vmc/Manifest
@@ -1,6 +1,9 @@
+AUX geant4_vmc-6.6-fix-preinstall-tests.patch 881 BLAKE2B 51685a16bab32be8b1ee6f7d14ee544f4ee303d01f3dc3ef53a2f4eb1bef98914604d49c5f7eff7e576e099f3570a7c7e74b7542983d5e34040d0769bf729050 SHA512 fc1e28e736e26db792e2b5167bf1dcb96aac50e807ebedb6161bc3af1142554703d57c0dd9c0d0d9917cb540e7a937960e1e75babbb60089725aa6bc02b71605
DIST geant4_vmc-6.3_p2.tar.gz 5737615 BLAKE2B db6b27e2ff81d37f61c75f39b4bdc775fa2eeded4916b82de7a6e717b206f9648eb295058547d0eaf8bc30bb8f28dddd1b00dea334aeccf6c2cb53da25cee90a SHA512 d9994a291fd195737b94101cafeadbb18aa14a71046cf8c637ea42c8560f290edd7fa524056c472b164fbff8f07afe01b4f5c6b86eeecfa1cfd564e55839052f
DIST geant4_vmc-6.5.tar.gz 5933744 BLAKE2B 8d797eb770a0627f11860c0c6f7544b2bbfd93de1d6cb1b7ad8ca0888e81ec01a8f07067f810d45a86546f08c08136221c425e4b82039b8e74d24ea01da558a7 SHA512 d81b38eab84fa8d6bcf66b9a755970e4aa79b8c212e528a1e91f4d8692a89180f9f16cefcd049ffc63894a29b258d04dfcd217f0b82cfbe7e5e911ce16b2184f
+DIST geant4_vmc-6.6_p1.tar.gz 5936947 BLAKE2B 7a44077314951bd33cc19615247b48a88df13f911603e631d818e97029a8de272cecd2ad6efe8aef2b622bd000385f25940e5cb744356b1e72f5312c6af616cd SHA512 244287a0412d00219a2838ae30f325a5f4b90b594973b4f61c5189e8e78a3585c8b4898c9bae574de871a8e0aaf4b7f25163a830489898279d7c4498422df29e
EBUILD geant4_vmc-6.3_p2-r1.ebuild 1843 BLAKE2B e185060312327554583bd9f5fe366f0c98a5e07d63502e99eb7ccc9c152c1488ee5e2e6cbcffc8c9ba88b31446d817f829abc15ade6845dd379d64d03beaac36 SHA512 75ecd381ab47ebb17d3fc5a1acb252d1d34fab6cc3a90aae3a59635b623794246a24594c2aa3deb006979e6ca7ae995e59c469eae18d2744abf88cd7dee2e0be
EBUILD geant4_vmc-6.5.ebuild 1843 BLAKE2B e185060312327554583bd9f5fe366f0c98a5e07d63502e99eb7ccc9c152c1488ee5e2e6cbcffc8c9ba88b31446d817f829abc15ade6845dd379d64d03beaac36 SHA512 75ecd381ab47ebb17d3fc5a1acb252d1d34fab6cc3a90aae3a59635b623794246a24594c2aa3deb006979e6ca7ae995e59c469eae18d2744abf88cd7dee2e0be
+EBUILD geant4_vmc-6.6_p1.ebuild 1909 BLAKE2B 8828031b2ff0627560ef8886a4fcafcb3abe572d97b7d20d2ba60c0f0524889aa379dbacc1021d5805b181e29b28262b8f7c1df986590bbb9697475a8122eaad SHA512 7b6b9a758a02a549ad7762603397a09771630c74442aa9668008217714af428a87955283a237d4d3afe5f6c5111952c75ef033e689964dd343379877bf222f48
EBUILD geant4_vmc-9999.ebuild 1813 BLAKE2B 4ccae04cce7be7e3f1a10ad3a4e06aa745861186b12bcf3ad83e425f7f640e1d5cfdddbf24847adbf2ae2558f83cf1a28b0313e46362c6ba950800409efad4d8 SHA512 195161d4566937130fdc4a107b266e35876a451a1512d3e66acf17c5bf5c973ab33ff8ed16a0a42b24512695f0d066688771d23bda28f037637eb6b37af80caf
MISC metadata.xml 898 BLAKE2B d938774267f72be00ef3ce6e483d5c1c2f84b20cc3ee46129cefc8677cbd7725760d7289863a5cb2ebb44a43e375831fa581597f75c2c4a1218acbd97872d181 SHA512 f2c0b0b9e6440975f0a322f57943c9eb40b244081927971377f355f4913d2db678cc6e65e49be6b7a67457440974c101fbe3a4ae3dbfb49c27f16175cd16dd6c
diff --git a/sci-physics/geant4_vmc/files/geant4_vmc-6.6-fix-preinstall-tests.patch b/sci-physics/geant4_vmc/files/geant4_vmc-6.6-fix-preinstall-tests.patch
new file mode 100644
index 000000000000..b9f7b7708c81
--- /dev/null
+++ b/sci-physics/geant4_vmc/files/geant4_vmc-6.6-fix-preinstall-tests.patch
@@ -0,0 +1,20 @@
+test-suite: set ROOT_INCLUDE_PATH if builddir is passed
+
+Bug: https://github.com/vmc-project/geant4_vmc/pull/60
+
+--- a/examples/test_suite.sh
++++ b/examples/test_suite.sh
+@@ -193,8 +193,12 @@ fi
+
+ # Set path to shared libraries if --builddir is provided via the option
+ if [ "x${BUILDDIR}" != "x" ]; then
+- LIBS_FROM_BUILDDIR=$(find ${BUILDDIR} -iname "*.so" -exec dirname {} \; | tr '\r\n' ':')
++ LIBS_FROM_BUILDDIR=$(find ${BUILDDIR} -iname "*.so" -exec dirname {} \; | uniq | tr '\r\n' ':')
+ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LIBS_FROM_BUILDDIR}
++ # In that case, also use headers from matching source dirs.
++ SOURCEDIR=$(readlink -f ../source/)
++ HEADERS_FROM_SOURCEDIR=$(find ${SOURCEDIR} -iname "*.h" -exec dirname {} \; | uniq | tr '\r\n' ':')
++ export ROOT_INCLUDE_PATH=${ROOT_INCLUDE_PATH}:${HEADERS_FROM_SOURCEDIR}
+ fi
+
+ # Create tmp dir from scratch
diff --git a/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild b/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild
new file mode 100644
index 000000000000..bd0afea138b9
--- /dev/null
+++ b/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake virtualx
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/vmc-project/${PN}.git"
+else
+ MY_PV=$(ver_rs 1-2 -)
+ SRC_URI="https://github.com/vmc-project/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${MY_PV}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Virtual Monte Carlo Geant4 implementation"
+HOMEPAGE="https://github.com/vmc-project/geant4_vmc"
+
+LICENSE="GPL-3"
+SLOT="4"
+IUSE="doc examples geant3 +g4root vgm test"
+
+RDEPEND="
+ sci-physics/clhep:=
+ >=sci-physics/geant-4.11.1:=[opengl,geant3?]
+ sci-physics/root:=
+ >=sci-physics/vmc-2.0:=
+ vgm? ( >=sci-physics/vgm-5.1:= )"
+DEPEND="${RDEPEND}
+ test? ( >=sci-physics/geant-4.11.1:=[gdml] )"
+BDEPEND="doc? ( app-text/doxygen[dot] )"
+RESTRICT="
+ !examples? ( test )
+ !geant3? ( test )
+ !g4root? ( test )
+ !test? ( test )
+ !vgm? ( test )"
+
+DOCS=(history README.md)
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.6-fix-preinstall-tests.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DGeant4VMC_USE_VGM="$(usex vgm)"
+ -DGeant4VMC_USE_GEANT4_G3TOG4="$(usex geant3)"
+ -DGeant4VMC_USE_G4Root="$(usex g4root)"
+ -DGeant4VMC_BUILD_EXAMPLES="$(usex test)"
+ -DGeant4VMC_INSTALL_EXAMPLES="$(usex examples)"
+ -DGeant4VMC_BUILD_G4Root_TEST="$(usex test)"
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use doc ; then
+ local dirs=(
+ source
+ $(usev g4root)
+ $(usev examples)
+ )
+ local d
+ for d in "${dirs[@]}"; do
+ doxygen "${d}"/Doxyfile || die
+ done
+ fi
+}
+
+src_test() {
+ cd examples || die
+ virtx ./test_suite.sh --debug --g3=off --garfield=off --builddir="${BUILD_DIR}" || die
+ virtx ./test_suite_exe.sh --g3=off --garfield=off --garfield=off --builddir="${BUILD_DIR}" || die
+}
+
+src_install() {
+ cmake_src_install
+ use doc && local HTML_DOCS=(doc/.)
+ einstalldocs
+}