* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2016-01-13 17:41 Guilherme Amadio
0 siblings, 0 replies; 6+ messages in thread
From: Guilherme Amadio @ 2016-01-13 17:41 UTC (permalink / raw
To: gentoo-commits
commit: c91eed68bc313c17f51477bcc428bceaa18717b9
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 13 17:07:20 2016 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Wed Jan 13 17:40:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c91eed68
sci-physics/geant: update no-examples patch (bug #571754)
Package-Manager: portage-2.2.26
sci-physics/geant/files/geant-4.10.2-no-examples.patch | 18 ++++++++++++++++++
sci-physics/geant/geant-4.10.02.ebuild | 2 +-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/sci-physics/geant/files/geant-4.10.2-no-examples.patch b/sci-physics/geant/files/geant-4.10.2-no-examples.patch
new file mode 100644
index 0000000..7675478
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.10.2-no-examples.patch
@@ -0,0 +1,18 @@
+diff -ur geant4.10.02.orig/CMakeLists.txt geant4.10.02/CMakeLists.txt
+--- geant4.10.02.orig/CMakeLists.txt 2016-01-13 15:00:07.009259839 -0200
++++ geant4.10.02/CMakeLists.txt 2016-01-13 15:01:00.369257669 -0200
+@@ -134,14 +134,6 @@
+ add_subdirectory(examples)
+ endif()
+
+-# - Install example code to datarootdir
+-install(DIRECTORY examples
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
+- COMPONENT Examples
+- PATTERN "CVS" EXCLUDE
+- PATTERN ".svn" EXCLUDE
+- )
+-
+ #-----------------------------------------------------------------------
+ # - CPack-aging
+ include(Geant4CPackBase)
diff --git a/sci-physics/geant/geant-4.10.02.ebuild b/sci-physics/geant/geant-4.10.02.ebuild
index 58e0a76..5dd41ee 100644
--- a/sci-physics/geant/geant-4.10.02.ebuild
+++ b/sci-physics/geant/geant-4.10.02.ebuild
@@ -41,7 +41,7 @@ PDEPEND="
S="${WORKDIR}/${MYP}"
src_prepare() {
- use examples || epatch "${FILESDIR}"/${PN}-4.10.0-no-examples.patch
+ use examples || epatch "${FILESDIR}"/${PN}-${PV1}.${PV2}.${SPV3}-no-examples.patch
}
src_configure() {
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2016-05-05 21:11 David Seifert
0 siblings, 0 replies; 6+ messages in thread
From: David Seifert @ 2016-05-05 21:11 UTC (permalink / raw
To: gentoo-commits
commit: 43524c9b7983800ae991b5d295d2588e3db50c2e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu May 5 20:38:39 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu May 5 21:11:03 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43524c9b
sci-physics/geant: Add std:: qualifier to isnan for C++11
Gentoo-Bug: 581322
Package-Manager: portage-2.2.28
sci-physics/geant/files/geant-4.10.02-std-isnan.patch | 17 +++++++++++++++++
sci-physics/geant/geant-4.10.02.ebuild | 1 +
2 files changed, 18 insertions(+)
diff --git a/sci-physics/geant/files/geant-4.10.02-std-isnan.patch b/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
new file mode 100644
index 0000000..6d26a6c
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
@@ -0,0 +1,17 @@
+Fully qualify isnan:
+* /var/tmp/portage/sci-physics/geant-4.10.02/work/geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc:61:22: error: ‘isnan’ was not declared in this scope
+* return( isnan( d ) );
+See also:
+https://bugs.gentoo.org/show_bug.cgi?id=581322
+
+--- geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
++++ geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
+@@ -58,7 +58,7 @@
+ */
+ int nfu_isNAN( double d ) {
+
+- return( isnan( d ) );
++ return( std::isnan( d ) );
+ }
+ /*
+ ************************************************************
diff --git a/sci-physics/geant/geant-4.10.02.ebuild b/sci-physics/geant/geant-4.10.02.ebuild
index 5dd41ee..89b1e12 100644
--- a/sci-physics/geant/geant-4.10.02.ebuild
+++ b/sci-physics/geant/geant-4.10.02.ebuild
@@ -41,6 +41,7 @@ PDEPEND="
S="${WORKDIR}/${MYP}"
src_prepare() {
+ epatch -p1 "${FILESDIR}/${P}-std-isnan.patch"
use examples || epatch "${FILESDIR}"/${PN}-${PV1}.${PV2}.${SPV3}-no-examples.patch
}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2018-01-19 18:40 Andreas Sturmlechner
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2018-01-19 18:40 UTC (permalink / raw
To: gentoo-commits
commit: 1b8ddffa1ecb546b5b84078d7d18aa4b1e77acda
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 18:25:07 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jan 19 18:39:37 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b8ddffa
sci-physics/geant: Drop old
Closes: https://bugs.gentoo.org/573118
Closes: https://bugs.gentoo.org/573778
Closes: https://bugs.gentoo.org/589622
Closes: https://bugs.gentoo.org/644358
Package-Manager: Portage-2.3.19, Repoman-2.3.6
sci-physics/geant/Manifest | 8 --
.../files/geant-4.10.0-TrackingNavigator.patch | 60 ---------------
.../geant/files/geant-4.10.0-no-examples.patch | 22 ------
.../geant/files/geant-4.10.02-std-isnan.patch | 17 -----
.../geant/files/geant-4.10.2-no-examples.patch | 18 -----
sci-physics/geant/files/geant-4.9.4-zlib.patch | 35 ---------
sci-physics/geant/geant-3.21.14-r4.ebuild | 67 ----------------
sci-physics/geant/geant-4.10.00.ebuild | 88 ----------------------
sci-physics/geant/geant-4.10.00_p01.ebuild | 85 ---------------------
sci-physics/geant/geant-4.10.01.ebuild | 86 ---------------------
sci-physics/geant/geant-4.10.01_p02.ebuild | 87 ---------------------
sci-physics/geant/geant-4.10.02.ebuild | 87 ---------------------
sci-physics/geant/geant-4.9.6_p02-r1.ebuild | 85 ---------------------
13 files changed, 745 deletions(-)
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest
index c2a7073accf..80ea674df07 100644
--- a/sci-physics/geant/Manifest
+++ b/sci-physics/geant/Manifest
@@ -1,9 +1 @@
-DIST geant321_3.21.14.dfsg-11.debian.tar.gz 52237 BLAKE2B 0266a91be654c7a40a24e1ad72a296bd33acdbf145c349909526194ccd5070392dd5a97073b075811dd362cdfcdfd40054d88e322693be3f5ab1fec66d356de3 SHA512 a3b6dea7b0df1ecb89bfb974339d3b5aed6815874f453040b37377ab9e9217d6970429d7a346c62f2b289bb8911aafa3569edc7499c13b7b2d3fac23e2a773c9
-DIST geant321_3.21.14.dfsg.orig.tar.gz 10922928 BLAKE2B 1a32a9857e3afffae48b0b81003b4a91c9505d18c780de247545a5b29cf9618399bd3b8df1ba1db5c2fda957d9513ed18d5a946d0440d7be68a02ade8a2eedf3 SHA512 733a77e529ecfe17c35d1e0bf44cf9062dbd9f2e3880e12cbfabf7372e6c60ea9690df010574094b44aef6fe306dfd85dfd4f42641b8f03efda3938a50313734
-DIST geant4.10.00.p01.tar.gz 29701289 BLAKE2B fa3a012d1e98ae643c2649b3eaee0f9ed4e38bd271ec7ee6106f938b8841b64e5fb576b34b873f9db8b53813bce3f550be349a0d01266a70194fa3acdd19711e SHA512 d7be39580a8dafa55b1a52b498e4a24312499a33d41954d8684385ce57c903430b2c56386728ad9a70d21af6634fbb8d6b55b2ef9c56b6c9272671e66bf9119d
-DIST geant4.10.00.tar.gz 30780131 BLAKE2B 22702e73f3e2f973e3251dc650f4cfd38c905edabc27f2d09d40bb9a518ea46fafc55be9f91b35eb4bcc7a35a442905347b652a1388055eebb856e998184d8f2 SHA512 c9288b26df8b858622e728158b687cd7bc257c49f26a21b93d1b9fa4619c22dfea2a7604689118ac493b407888690db42d1ec9c8048aa1f45bf8beeb6a657e87
-DIST geant4.10.01.p02.tar.gz 33708464 BLAKE2B d780783a61e70d7a9c04abda50ea60a14f8d1196655b474075b015d9ddec0cc2840ab3ac08084e637aa6231c8189a46ad698f045208419c89ef4ffbf359a4d89 SHA512 056ffca00b6e0496748aa1ca34a0a349eea607505b093f7148557a4e2a704cdb6949731f5313508eff311a3075b53841c4f332f057604c0826b76db0089fc082
-DIST geant4.10.01.tar.gz 43759041 BLAKE2B 21ca42e4f8e14670d6a45e2a7889b06f40037e4d47c47df0f90b8d2a30cb384857b6e9d6c5cf130016d27aafc75b9f027dee8300c76ef7a48b3fe8a354b1e8b1 SHA512 6b9f154f705e7ca4918dea3e2a9ccc0e6fa8806fd4466b4b947f9beec35968640dbe32d383c2a138f15e40b10085c717256cc1604f4d8407e7cb28e5772b52e6
-DIST geant4.10.02.tar.gz 32312192 BLAKE2B 882a07b9dc52c391ad43b09227b627240bf276692a06c0bad9b8e26b97c635b7cd447620b28c1ab39ceebe66b4b1f86e0b0ca5aea3312b7170b0e5bb55cb2835 SHA512 f10fd1205b986f0ad069727ac867f1cd13e2a9da088462e70ba1eb58dee84276c0e5a5f764eee44e3ca832ed0ac4591b29645cd3dcc6b0e57e5fb1bc0c0dc6ea
DIST geant4.10.03.tar.gz 33143770 BLAKE2B f84c4dc680c45bc5728485e3e38852de90ae0f89dfe4cf65677aa86f6d90b4cbe5d2ffec812b08d05c88f8abb73f006f3a5319bcfd48c20872299ccfd91c7e39 SHA512 61d67e57f1576ab10562f2309995897008b4be1aa60f7e471b4f5efc2d852788d5faf60e64ea7024a4af4035d98c04c0be23df8593a4ed3a510af6b476013c56
-DIST geant4.9.6.p02.tar.gz 25480383 BLAKE2B db0e1a8997d91a4e989bf3d038fd0898a2612fa79d6ad195ea3280b49e1290712926ac04de2501d2f75f99de54868f1214284db70de47bd3661345b9bb7503e1 SHA512 dab5f31568074869adecbbfb8855be0c0a2e92e5ba3119dbeb9cd414878721df3052198a05e5e3c19d0e2942a22602c6618dc0628b05134d3403a50c2bc2032c
diff --git a/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch b/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch
deleted file mode 100644
index e3cc8d6594a..00000000000
--- a/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-accepted upstream. to be removed in the next minor release.
-
-https://bugs.gentoo.org/show_bug.cgi?id=496678
-http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1537
-
-diff -Naur geant4.10.00/source/geometry/navigation/include/G4TransportationManager.hh geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.hh
---- geant4.10.00/source/geometry/navigation/include/G4TransportationManager.hh 2013-12-05 10:28:54.000000000 +0100
-+++ geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.hh 2013-12-12 01:40:12.341428809 +0100
-@@ -68,7 +68,7 @@
- // Accessors for field handling
-
- inline G4Navigator* GetNavigatorForTracking() const;
-- inline void SetNavigatorForTracking( G4Navigator* newNavigator );
-+ void SetNavigatorForTracking( G4Navigator* newNavigator );
- // Accessors for the navigator for tracking
-
- inline void SetWorldForTracking(G4VPhysicalVolume* theWorld);
-diff -Naur geant4.10.00/source/geometry/navigation/include/G4TransportationManager.icc geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.icc
---- geant4.10.00/source/geometry/navigation/include/G4TransportationManager.icc 2013-12-05 10:28:54.000000000 +0100
-+++ geant4.10.00-mod/source/geometry/navigation/include/G4TransportationManager.icc 2013-12-12 01:40:12.341428809 +0100
-@@ -59,6 +59,7 @@
- fNavigators[0]->SetWorldVolume(theWorld);
- }
-
-+/*
- // ----------------------------------------------------------------------------
- // SetNavigatorForTracking()
- //
-@@ -70,6 +71,7 @@
- {
- fNavigators[0] = newNavigator;
- }
-+*/
-
- // ----------------------------------------------------------------------------
- // GetPropagatorInField()
-diff -Naur geant4.10.00/source/geometry/navigation/src/G4TransportationManager.cc geant4.10.00-mod/source/geometry/navigation/src/G4TransportationManager.cc
---- geant4.10.00/source/geometry/navigation/src/G4TransportationManager.cc 2013-12-05 10:28:56.000000000 +0100
-+++ geant4.10.00-mod/source/geometry/navigation/src/G4TransportationManager.cc 2013-12-12 01:40:12.345428679 +0100
-@@ -124,6 +124,20 @@
- }
- }
-
-+
-+// ----------------------------------------------------------------------------
-+// SetNavigatorForTracking()
-+//
-+// Set the active navigator for tracking, always
-+// the first in the collection of registered navigators.
-+//
-+void G4TransportationManager::SetNavigatorForTracking(G4Navigator* newNavigator)
-+{
-+ fNavigators[0] = newNavigator;
-+ fActiveNavigators[0] = newNavigator;
-+ fPropagatorInField->SetNavigatorForPropagating(newNavigator);
-+}
-+
- // ----------------------------------------------------------------------------
- // ClearNavigators()
- //
diff --git a/sci-physics/geant/files/geant-4.10.0-no-examples.patch b/sci-physics/geant/files/geant-4.10.0-no-examples.patch
deleted file mode 100644
index 99aaca546f4..00000000000
--- a/sci-physics/geant/files/geant-4.10.0-no-examples.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-do not install examples automatically, we do this explictly with dodoc.
-
-Index: geant4.10.00/CMakeLists.txt
-===================================================================
---- geant4.10.00.orig/CMakeLists.txt
-+++ geant4.10.00/CMakeLists.txt
-@@ -136,15 +136,6 @@ if(GEANT4_BUILD_EXAMPLES)
- add_subdirectory(examples)
- endif()
-
--# - Install example code to datarootdir
--install(DIRECTORY examples
-- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
-- COMPONENT Examples
-- PATTERN "CVS" EXCLUDE
-- PATTERN ".svn" EXCLUDE
-- )
--
--
- #-----------------------------------------------------------------------------
- # Provide packaging with CPack.
- include(Geant4CPackBase)
diff --git a/sci-physics/geant/files/geant-4.10.02-std-isnan.patch b/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
deleted file mode 100644
index 6d26a6c2c0d..00000000000
--- a/sci-physics/geant/files/geant-4.10.02-std-isnan.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Fully qualify isnan:
-* /var/tmp/portage/sci-physics/geant-4.10.02/work/geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc:61:22: error: ‘isnan’ was not declared in this scope
-* return( isnan( d ) );
-See also:
-https://bugs.gentoo.org/show_bug.cgi?id=581322
-
---- geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
-+++ geant4.10.02/source/processes/hadronic/models/lend/src/nf_utilities.cc
-@@ -58,7 +58,7 @@
- */
- int nfu_isNAN( double d ) {
-
-- return( isnan( d ) );
-+ return( std::isnan( d ) );
- }
- /*
- ************************************************************
diff --git a/sci-physics/geant/files/geant-4.10.2-no-examples.patch b/sci-physics/geant/files/geant-4.10.2-no-examples.patch
deleted file mode 100644
index 767547896c9..00000000000
--- a/sci-physics/geant/files/geant-4.10.2-no-examples.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -ur geant4.10.02.orig/CMakeLists.txt geant4.10.02/CMakeLists.txt
---- geant4.10.02.orig/CMakeLists.txt 2016-01-13 15:00:07.009259839 -0200
-+++ geant4.10.02/CMakeLists.txt 2016-01-13 15:01:00.369257669 -0200
-@@ -134,14 +134,6 @@
- add_subdirectory(examples)
- endif()
-
--# - Install example code to datarootdir
--install(DIRECTORY examples
-- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
-- COMPONENT Examples
-- PATTERN "CVS" EXCLUDE
-- PATTERN ".svn" EXCLUDE
-- )
--
- #-----------------------------------------------------------------------
- # - CPack-aging
- include(Geant4CPackBase)
diff --git a/sci-physics/geant/files/geant-4.9.4-zlib.patch b/sci-physics/geant/files/geant-4.9.4-zlib.patch
deleted file mode 100644
index f0429695ce3..00000000000
--- a/sci-physics/geant/files/geant-4.9.4-zlib.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-force use of system zlib instead of bundled G4zlib
---- source/visualization/HepRep/sources.cmake.orig 2011-12-02 15:07:49.000000000 +0000
-+++ source/visualization/HepRep/sources.cmake 2011-12-18 06:21:22.000000000 +0000
-@@ -91,7 +91,7 @@
- G4specsolids
- G4tracking
- G4vis_management
-- G4zlib
-+ ${ZLIB_LIBRARIES}
- GLOBAL_DEPENDENCIES
- G4digits_hits
- G4geometry
-@@ -102,7 +102,7 @@
- G4modeling
- G4tracking
- G4vis_management
-- G4zlib
-+ ${ZLIB_LIBRARIES}
- LINK_LIBRARIES
- )
-
---- source/visualization/externals/gl2ps/sources.cmake.orig 2011-12-02 16:07:56.000000000 +0100
-+++ source/visualization/externals/gl2ps/sources.cmake 2012-03-09 14:09:26.965148002 +0100
-@@ -49,9 +49,9 @@
- G4OpenGL2PSAction.cc
- gl2ps.cc
- GRANULAR_DEPENDENCIES
-- G4zlib
-+ ${ZLIB_LIBRARIES}
- GLOBAL_DEPENDENCIES
-- G4zlib
-+ ${ZLIB_LIBRARIES}
- LINK_LIBRARIES
- ${OPENGL_LIBRARIES}
- )
diff --git a/sci-physics/geant/geant-3.21.14-r4.ebuild b/sci-physics/geant/geant-3.21.14-r4.ebuild
deleted file mode 100644
index ab132d31212..00000000000
--- a/sci-physics/geant/geant-3.21.14-r4.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils fortran-2
-
-DEB_PN=geant321
-DEB_PV=${PV}.dfsg
-DEB_PR=11
-DEB_P=${DEB_PN}_${DEB_PV}
-
-DESCRIPTION="CERN's detector description and simulation Tool"
-HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
-SRC_URI="
- mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
- mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.debian.tar.gz"
-
-SLOT="3"
-LICENSE="GPL-2 LGPL-2 BSD"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
-
-RDEPEND="
- x11-libs/motif:0
- dev-lang/cfortran
- sci-physics/cernlib
- sci-physics/paw"
-DEPEND="${RDEPEND}
- virtual/latex-base
- x11-misc/imake
- x11-misc/makedepend"
-
-S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig"
-
-src_prepare() {
- mv ../debian . || die
- sed -i -e 's:/tmp/dp.*/cern:cern:g' debian/patches/* || die
- cp debian/add-ons/Makefile . || die
- export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck"
- sed -i \
- -e 's:/usr/local:${EROOT}usr:g' \
- Makefile || die "sed'ing the Makefile failed"
-
- einfo "Applying Debian patches"
- emake -j1 patch
-
- # since we depend on cfortran, do not use the one from cernlib
- rm -f src/include/cfortran/cfortran.h
-}
-
-src_compile() {
- # create local LaTeX cache directory
- VARTEXFONTS="${T}"/fonts
- emake -j1 cernlib-indep cernlib-arch
-}
-
-src_test_() {
- LD_LIBRARY_PATH="${S}"/shlib emake -j1 cernlib-test
-}
-
-src_install() {
- emake DESTDIR="${D}" install
- cd debian
- dodoc changelog README.* deadpool.txt NEWS copyright
- newdoc add-ons/README README.add-ons
-}
diff --git a/sci-physics/geant/geant-4.10.00.ebuild b/sci-physics/geant/geant-4.10.00.ebuild
deleted file mode 100644
index f80eaa1049a..00000000000
--- a/sci-physics/geant/geant-4.10.00.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils fortran-2 versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-SPV3=$(printf %1d ${PV3})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.1.3:2=
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-PDEPEND="
- data? ( ~sci-physics/geant-data-${PV} )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-PATCHES=( "${FILESDIR}"/${PN}-4.10.0-no-examples.patch
- "${FILESDIR}"/${PN}-4.10.0-TrackingNavigator.patch # 496678
- )
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DCMAKE_INSTALL_LIBDIR="${EROOT}usr/$(get_libdir)"
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- local mypv="${PV1}.${PV2}.${SPV3}"
- doins ReleaseNotes/ReleaseNotes${mypv}.html
- [[ -e ReleaseNotes/Patch${mypv}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${mypv}-*.txt
- use examples && doins -r examples
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
-}
diff --git a/sci-physics/geant/geant-4.10.00_p01.ebuild b/sci-physics/geant/geant-4.10.00_p01.ebuild
deleted file mode 100644
index be593508de4..00000000000
--- a/sci-physics/geant/geant-4.10.00_p01.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils fortran-2 versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-SPV3=$(printf %1d ${PV3})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib threads"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.1.3:2=
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-PDEPEND="
- data? ( >=sci-physics/geant-data-4.10 )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DCMAKE_INSTALL_LIBDIR="${EROOT}usr/$(get_libdir)"
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use threads GEANT4_BUILD_MULTITHREADED)
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- local mypv="${PV1}.${PV2}.${SPV3}"
- doins ReleaseNotes/ReleaseNotes${mypv}.html
- [[ -e ReleaseNotes/Patch${mypv}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${mypv}-*.txt
- use examples && doins -r examples
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
-}
diff --git a/sci-physics/geant/geant-4.10.01.ebuild b/sci-physics/geant/geant-4.10.01.ebuild
deleted file mode 100644
index 0c4ecd2f55c..00000000000
--- a/sci-physics/geant/geant-4.10.01.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils fortran-2 versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-SPV3=$(printf %1d ${PV3})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib threads"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.1.3:2=
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND} prefix? ( app-shells/tcsh )"
-PDEPEND="
- data? ( ~sci-physics/geant-data-${PV} )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-src_prepare() {
- use examples || epatch "${FILESDIR}"/${PN}-4.10.0-no-examples.patch
-}
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use threads GEANT4_BUILD_MULTITHREADED)
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- doins ReleaseNotes/ReleaseNotes${PV1}.${PV2}.${SPV3}.html
- [[ -f ReleaseNotes/Patch${PV1}.${PV2}.${SPV3}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${mypv}-*.txt
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
-}
diff --git a/sci-physics/geant/geant-4.10.01_p02.ebuild b/sci-physics/geant/geant-4.10.01_p02.ebuild
deleted file mode 100644
index 8ca4095cf7d..00000000000
--- a/sci-physics/geant/geant-4.10.01_p02.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-SPV3=$(printf %1d ${PV3})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib threads"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.2:2=
- <sci-physics/clhep-2.3:2=
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND} prefix? ( app-shells/tcsh )"
-PDEPEND="
- data? ( ~sci-physics/geant-data-${PV1}.${PV2}.${PV3} )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-src_prepare() {
- use examples || epatch "${FILESDIR}"/${PN}-4.10.0-no-examples.patch
-}
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use threads GEANT4_BUILD_MULTITHREADED)
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- doins ReleaseNotes/ReleaseNotes${PV1}.${PV2}.${SPV3}.html
- [[ -f ReleaseNotes/Patch${PV1}.${PV2}.${SPV3}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${PV1}.${PV2}.${SPV3}-*.txt
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
-}
diff --git a/sci-physics/geant/geant-4.10.02.ebuild b/sci-physics/geant/geant-4.10.02.ebuild
deleted file mode 100644
index 540e9bbab35..00000000000
--- a/sci-physics/geant/geant-4.10.02.ebuild
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-SPV3=$(printf %1d ${PV3})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib threads"
-
-RDEPEND="
- dev-libs/expat
- =sci-physics/clhep-2.3.1.0:2=
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND} prefix? ( app-shells/tcsh )"
-PDEPEND="
- data? ( ~sci-physics/geant-data-${PV1}.${PV2}.${PV3} )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${SPV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-src_prepare() {
- epatch -p1 "${FILESDIR}/${P}-std-isnan.patch"
- use examples || epatch "${FILESDIR}"/${PN}-${PV1}.${PV2}.${SPV3}-no-examples.patch
-}
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use threads GEANT4_BUILD_MULTITHREADED)
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- doins ReleaseNotes/ReleaseNotes${PV1}.${PV2}.${SPV3}.html
- [[ -f ReleaseNotes/Patch${PV1}.${PV2}.${SPV3}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${PV1}.${PV2}.${SPV3}-*.txt
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${SPV3}.*/geant4make/*sh)"
-}
diff --git a/sci-physics/geant/geant-4.9.6_p02-r1.ebuild b/sci-physics/geant/geant-4.9.6_p02-r1.ebuild
deleted file mode 100644
index 97b4abbe397..00000000000
--- a/sci-physics/geant/geant-4.9.6_p02-r1.ebuild
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils eutils fortran-2 versionator multilib
-
-PV1=$(get_version_component_range 1 ${PV})
-PV2=$(get_version_component_range 2 ${PV})
-PV3=$(get_version_component_range 3 ${PV})
-MYP=${PN}$(replace_version_separator 3 .)
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="http://geant4.cern.ch/"
-SRC_URI="http://geant4.cern.ch/support/source/${MYP}.tar.gz"
-
-LICENSE="geant4"
-SLOT="4"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data dawn doc examples gdml geant3 inventor motif opengl
- raytracerx qt4 static-libs vrml zlib"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.1.3
- dawn? ( media-gfx/dawn )
- gdml? ( dev-libs/xerces-c )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- inventor? ( media-libs/SoXt )
- qt4? ( dev-qt/qtgui:4 opengl? ( dev-qt/qtopengl:4 ) )
- raytracerx? ( x11-libs/libX11 x11-libs/libXmu )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-PDEPEND="
- data? ( ~sci-physics/geant-data-${PV} )
- doc? ( ~app-doc/geant-docs-${PV1}.${PV2}.${PV3} )"
-
-S="${WORKDIR}/${MYP}"
-
-PATCHES=( "${FILESDIR}"/${PN}-4.9.4-zlib.patch )
-
-src_configure() {
- local mycmakeargs=(
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DCMAKE_INSTALL_LIBDIR="${EROOT}usr/$(get_libdir)"
- -DGEANT4_INSTALL_DATA=OFF
- $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN)
- $(cmake-utils_use gdml GEANT4_USE_GDML)
- $(cmake-utils_use geant3 GEANT4_USE_G3TOG4)
- $(cmake-utils_use motif GEANT4_USE_XM)
- $(cmake-utils_use opengl GEANT4_USE_OPENGL_X11)
- $(cmake-utils_use inventor GEANT4_USE_INVENTOR)
- $(cmake-utils_use qt4 GEANT4_USE_QT)
- $(cmake-utils_use raytracerx GEANT4_USE_RAYTRACER_X11)
- $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML)
- $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB)
- $(cmake-utils_use_build static-libs STATIC_LIBS)
- )
- if use inventor; then
- mycmakeargs+=(
- -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
- -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
- )
- fi
- cmake-utils_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake-utils_src_install
- insinto /usr/share/doc/${PF}
- local mypv="${PV1}.${PV2}.${PV3}"
- doins ReleaseNotes/ReleaseNotes${mypv}.html
- [[ -e ReleaseNotes/Patch${mypv}-1.txt ]] && \
- dodoc ReleaseNotes/Patch${mypv}-*.txt
- use examples && doins -r examples
-}
-
-pkg_postinst() {
- elog "The following scripts are provided for backward compatibility:"
- elog "$(ls -1 ${EROOT%/}/usr/share/Geant4-${PV2}.${PV3}.*/geant4make/*sh)"
-}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2020-03-16 16:59 Guilherme Amadio
0 siblings, 0 replies; 6+ messages in thread
From: Guilherme Amadio @ 2020-03-16 16:59 UTC (permalink / raw
To: gentoo-commits
commit: 4752ad90f0e5096cebe36782a4c098a45d2ae67e
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 16 16:22:13 2020 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Mon Mar 16 16:58:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4752ad90
sci-physics/geant: version bumps for Geant4 10.6
This set of new ebuilds for Geant4 have been updated to offer more
functionality and be easier to maintain in the future. Here is a
list of the improvements made:
- Moved to EAPI=7
- Same ebuild can be used for regular, beta, and patch releases
- Dropped extra zeros from version numbers to follow upstream more closely
- SRC_URI has been updated to the new upstream location
- Fixed dependency on CLHEP to require matching USE=threads
- Added USE=c++XX flags to allow users to choose C++ standard (this is
useful for packages that depend on both sci-physics/root and geant
to ensure that they have been compiled with matching C++ standards).
- New USE=hdf5 and USE=freetype have been added
- Removed obsolete scripts and unnecessary dependency on app-shells/tcsh
- Always use system's zlib instead of bundled one
- Removed usage of PDEPEND by updating geant-docs and geant-data
- Added patch to allow customization of CMAKE_INSTALL_DATADIR
- Added ${EXTRA_ECONF} to allow users to customize installation further
without patching ebuild itself or using an overlay
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
sci-physics/geant/Manifest | 3 +
sci-physics/geant/files/geant-4.10.6-datadir.patch | 159 +++++++++++++++++++++
sci-physics/geant/geant-4.10.6.ebuild | 107 ++++++++++++++
sci-physics/geant/geant-4.10.6_beta1.ebuild | 107 ++++++++++++++
sci-physics/geant/geant-4.10.6_p1.ebuild | 107 ++++++++++++++
sci-physics/geant/metadata.xml | 7 +-
6 files changed, 488 insertions(+), 2 deletions(-)
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest
index 7fde0b416a8..7b80e804491 100644
--- a/sci-physics/geant/Manifest
+++ b/sci-physics/geant/Manifest
@@ -1,2 +1,5 @@
DIST geant4.10.03.tar.gz 33143770 BLAKE2B f84c4dc680c45bc5728485e3e38852de90ae0f89dfe4cf65677aa86f6d90b4cbe5d2ffec812b08d05c88f8abb73f006f3a5319bcfd48c20872299ccfd91c7e39 SHA512 61d67e57f1576ab10562f2309995897008b4be1aa60f7e471b4f5efc2d852788d5faf60e64ea7024a4af4035d98c04c0be23df8593a4ed3a510af6b476013c56
DIST geant4.10.05.p01.tar.gz 34413415 BLAKE2B d98a9308e37f166dccf8f9640a54ee74ab2b1d07275609666aec6d929b0193269a18075762cebaa154abcad5c8359a128b6629ff973cb6cdc8f54535151997a3 SHA512 ace2097251ee4cdda3511c3dd8191c97e1001f73d421797e3cd517ed41fa5adc73efcddfb2c8b6fb75231e5af8ddb4bd63a402ccb99b40ce2c140588d328b582
+DIST geant4.10.06.b01.tar.gz 34511064 BLAKE2B d20bd338ea0ac47b11464b581aa0dec3725da56902dbaab233fcaad28ba6b3ce302a8d7e2c27f4532bed2db991467b4bde837675f3837f066c9e7e3d78c7acd6 SHA512 3916a0ad13891fc5a189c0be6c2e57abe29281696c9d16c0c54fd11940146586feb550a61403ab6451e6575d2ad1f4349590d9c564d7b5d7fc5ab9e9b2356ccb
+DIST geant4.10.06.p01.tar.gz 34869969 BLAKE2B 0a27f34df213a0dcc2d87c6001c100269be7496519c614fa5b51cd6502d98232d09de0f3c44216c34b6788ec8a1f626d22a53cb7329027006c614a10777b6896 SHA512 d9bca66b086a309a577dcf018c0ca52f5d786b1ebe5ce9d30c29c579c342399816c34efbcb34af60871145b6713cb8151f5517c5a0aa9d24d00e4257a5c1c6c0
+DIST geant4.10.06.tar.gz 34834510 BLAKE2B 48f50c734186e444f5ef2fd02b013565db7f404b7fbaeb3127d7dd67ede76196fd5fa4512a5482cceb7696305eb72dbe819fe43fa26ac63ded49259d804f5ccf SHA512 e03d69cb66947ddc71d20b9065fd5db384dfc8b2b8e905ddab9ebb992c642dc33f369d7eba5f2338487da5d9d28f20f3078917f222d187c65e5af1a0112ee044
diff --git a/sci-physics/geant/files/geant-4.10.6-datadir.patch b/sci-physics/geant/files/geant-4.10.6-datadir.patch
new file mode 100644
index 00000000000..c26bf8914b4
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.10.6-datadir.patch
@@ -0,0 +1,159 @@
+From 44966c44635debaddd859c788b008cd4e6c7fab6 Mon Sep 17 00:00:00 2001
+From: Guilherme Amadio <amadio@cern.ch>
+Date: Fri, 13 Mar 2020 15:36:27 +0100
+Subject: [PATCH] Allow customization of CMAKE_INSTALL_DATADIR
+
+---
+ cmake/Modules/G4CMakeMain.cmake | 2 +-
+ cmake/Modules/G4ConfigureGNUMakeHelpers.cmake | 20 +++++++++----------
+ cmake/Modules/Geant4InstallData.cmake | 4 ++--
+ source/analysis/CMakeLists.txt | 2 +-
+ source/analysis/g4tools/CMakeLists.txt | 2 +-
+ 5 files changed, 15 insertions(+), 15 deletions(-)
+
+diff --git a/cmake/Modules/G4CMakeMain.cmake b/cmake/Modules/G4CMakeMain.cmake
+index a6b984fcad..5ab63202ca 100644
+--- a/cmake/Modules/G4CMakeMain.cmake
++++ b/cmake/Modules/G4CMakeMain.cmake
+@@ -121,7 +121,7 @@ mark_as_advanced(GEANT4_INSTALL_EXAMPLES)
+
+ if(GEANT4_INSTALL_EXAMPLES)
+ install(DIRECTORY examples
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
++ DESTINATION ${CMAKE_INSTALL_DATADIR}
+ COMPONENT Examples
+ PATTERN "CVS" EXCLUDE
+ PATTERN ".svn" EXCLUDE
+diff --git a/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake b/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake
+index c2aeefee59..1052f43a45 100644
+--- a/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake
++++ b/cmake/Modules/G4ConfigureGNUMakeHelpers.cmake
+@@ -729,7 +729,7 @@ _g4tc_configure_build_tree_scripts(geant4make)
+ # +- CMAKE_INSTALL_PREFIX
+ # +- LIBDIR/Geant4-VERSION (G4LIB)
+ # +- INCLUDEDIR/Geant4 (G4INCLUDE)
+-# +- DATAROOTDIR/Geant4-VERSION/
++# +- DATADIR/
+ # +- geant4make (THIS IS G4INSTALL!)
+ # +- geant4make.(c)sh
+ # +- config/
+@@ -742,7 +742,7 @@ set(G4INSTALL "\"\$geant4make_root\"")
+ # - Include dir
+ file(RELATIVE_PATH
+ G4MAKE_TO_INCLUDEDIR
+- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make
+ ${CMAKE_INSTALL_FULL_INCLUDEDIR}/${PROJECT_NAME}
+ )
+ set(G4INCLUDE "\"`cd \$geant4make_root/${G4MAKE_TO_INCLUDEDIR} > /dev/null \; pwd`\"")
+@@ -750,7 +750,7 @@ set(G4INCLUDE "\"`cd \$geant4make_root/${G4MAKE_TO_INCLUDEDIR} > /dev/null \; pw
+ # - Bin dir
+ file(RELATIVE_PATH
+ G4MAKE_TO_BINDIR
+- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make
+ ${CMAKE_INSTALL_FULL_BINDIR}
+ )
+ set(G4BIN_DIR "\"`cd \$geant4make_root/${G4MAKE_TO_BINDIR} > /dev/null \; pwd`\"")
+@@ -758,7 +758,7 @@ set(G4BIN_DIR "\"`cd \$geant4make_root/${G4MAKE_TO_BINDIR} > /dev/null \; pwd`\"
+ # - Lib dir
+ file(RELATIVE_PATH
+ G4MAKE_TO_LIBDIR
+- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make
+ ${CMAKE_INSTALL_FULL_LIBDIR}
+ )
+ set(G4LIB "\"`cd \$geant4make_root/${G4MAKE_TO_LIBDIR}/Geant4-${Geant4_VERSION} > /dev/null \; pwd`\"")
+@@ -775,7 +775,7 @@ foreach(_ds ${GEANT4_EXPORTED_DATASETS})
+
+ file(RELATIVE_PATH
+ G4MAKE_TO_DATADIR
+- ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ ${CMAKE_INSTALL_FULL_DATADIR}/geant4make
+ ${${_ds}_PATH}
+ )
+ set(${_ds}_PATH "\"`cd \$geant4make_root/${G4MAKE_TO_DATADIR} > /dev/null \; pwd`\"")
+@@ -788,7 +788,7 @@ set(TOOLS_FONT_PATH "\"`cd \$geant4make_root/../fonts > /dev/null ; pwd`\"")
+ _g4tc_configure_install_tree_scripts(
+ ${CMAKE_BINARY_DIR}/InstallTreeFiles
+ geant4make
+- ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ ${CMAKE_INSTALL_DATADIR}/geant4make
+ )
+
+
+@@ -797,7 +797,7 @@ _g4tc_configure_install_tree_scripts(
+ # softlink to the G4SYSTEM directory.
+ #
+ install(DIRECTORY config
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/geant4make
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/geant4make
+ COMPONENT Development
+ FILES_MATCHING PATTERN "*.gmk"
+ PATTERN "CVS" EXCLUDE
+@@ -845,11 +845,11 @@ endforeach()
+
+ # - Fonts
+ file(RELATIVE_PATH
+- G4ENV_BINDIR_TO_DATAROOTDIR
++ G4ENV_BINDIR_TO_DATADIR
+ "${CMAKE_INSTALL_FULL_BINDIR}"
+- "${CMAKE_INSTALL_FULL_DATAROOTDIR}/Geant4-${Geant4_VERSION}"
++ "${CMAKE_INSTALL_FULL_DATADIR}"
+ )
+-set(TOOLS_FONT_PATH "\"`cd \$geant4_envbindir/${G4ENV_BINDIR_TO_DATAROOTDIR}/fonts > /dev/null ; pwd`\"")
++set(TOOLS_FONT_PATH "\"`cd \$geant4_envbindir/${G4ENV_BINDIR_TO_DATADIR}/fonts > /dev/null ; pwd`\"")
+
+
+ # - Configure for each shell
+diff --git a/cmake/Modules/Geant4InstallData.cmake b/cmake/Modules/Geant4InstallData.cmake
+index 496b0fc4df..55536e51d4 100644
+--- a/cmake/Modules/Geant4InstallData.cmake
++++ b/cmake/Modules/Geant4InstallData.cmake
+@@ -105,7 +105,7 @@ set(GEANT4_DATASETS_URL "https://cern.ch/geant4-data/datasets")
+ set(GEANT4_BUILD_FULL_DATADIR ${PROJECT_BINARY_DIR}/data)
+
+ # Where to install data in the install tree (a Default)
+-set(GEANT4_INSTALL_DATADIR_DEFAULT "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}-${${PROJECT_NAME}_VERSION}/data")
++set(GEANT4_INSTALL_DATADIR_DEFAULT "${CMAKE_INSTALL_DATADIR}/data")
+
+ # File containing dataset list
+ set(GEANT4_DATASETS_DEFINITIONS "Geant4DatasetDefinitions")
+@@ -596,7 +596,7 @@ endfunction()
+ # Choose Physics Data Install Dir
+ # This follows the pattern for interface and setting as in GNUInstallDirs
+ if(NOT GEANT4_INSTALL_DATADIR)
+- set(GEANT4_INSTALL_DATADIR "" CACHE PATH "read-only architecture independent Geant4 physics data (DATAROOTDIR/${GEANT4_INSTALL_DATADIR_DEFAULT}")
++ set(GEANT4_INSTALL_DATADIR "" CACHE PATH "read-only architecture independent Geant4 physics data (DATADIR/data")
+ set(GEANT4_INSTALL_DATADIR "${GEANT4_INSTALL_DATADIR_DEFAULT}")
+ endif()
+
+diff --git a/source/analysis/CMakeLists.txt b/source/analysis/CMakeLists.txt
+index 44fa4a97be..4c40c704be 100644
+--- a/source/analysis/CMakeLists.txt
++++ b/source/analysis/CMakeLists.txt
+@@ -67,7 +67,7 @@ endif()
+ #
+ if (GEANT4_USE_FREETYPE)
+ install(DIRECTORY fonts/
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}/fonts
++ DESTINATION ${CMAKE_INSTALL_DATADIR}/fonts
+ PATTERN ".svn" EXCLUDE
+ )
+ endif()
+diff --git a/source/analysis/g4tools/CMakeLists.txt b/source/analysis/g4tools/CMakeLists.txt
+index 54c72f1297..df87582bc1 100644
+--- a/source/analysis/g4tools/CMakeLists.txt
++++ b/source/analysis/g4tools/CMakeLists.txt
+@@ -43,7 +43,7 @@ install(DIRECTORY include/
+ # We also need to install the tools license
+ #
+ install(FILES tools.license
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/Geant4-${Geant4_VERSION}
++ DESTINATION ${CMAKE_INSTALL_DATADIR}
+ )
+
+ #------------------------------------------------------------------------------
+--
+2.25.1
+
diff --git a/sci-physics/geant/geant-4.10.6.ebuild b/sci-physics/geant/geant-4.10.6.ebuild
new file mode 100644
index 00000000000..d7e342ef288
--- /dev/null
+++ b/sci-physics/geant/geant-4.10.6.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+MY_P=${PN}$(ver_cut 1-2).$(printf %02d $(ver_cut 3))
+
+case ${PV} in
+*_beta*)
+ MY_P+=.b$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Beta$(ver_cut 1-3)-*.txt"
+ ;;
+*_p*)
+ MY_P+=.p$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Patch$(ver_cut 1-3)-*.txt"
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+*)
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+esac
+
+DESCRIPTION="Toolkit for simulation of passage of particles through matter"
+HOMEPAGE="https://geant4.cern.ch/"
+SRC_URI="https://geant4-data.web.cern.ch/geant4-data/releases/${MY_P}.tar.gz"
+
+LICENSE="geant4"
+SLOT="4"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+c++11 c++14 c++17 +data dawn doc examples freetype gdml geant3 hdf5
+ inventor motif opengl qt5 raytracerx static-libs threads vrml"
+
+REQUIRED_USE="^^ ( c++11 c++14 c++17 )"
+
+RDEPEND="
+ dev-libs/expat
+ >=sci-physics/clhep-2.4.1.3:2=[threads?]
+ data? ( ~sci-physics/geant-data-${PV} )
+ dawn? ( media-gfx/dawn )
+ doc? ( ~app-doc/geant-docs-$(ver_cut 1-3) )
+ gdml? ( dev-libs/xerces-c )
+ hdf5? ( sci-libs/hdf5[threads?] )
+ inventor? ( media-libs/SoXt )
+ motif? ( x11-libs/motif:0 )
+ opengl? ( virtual/opengl )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ opengl? ( dev-qt/qtopengl:5 )
+ )
+ raytracerx? (
+ x11-libs/libX11
+ x11-libs/libXmu
+ )"
+
+PATCHES=( "${FILESDIR}"/geant-4.10.6-datadir.patch )
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4"
+ -DGEANT4_BUILD_CXXSTD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
+ -DGEANT4_BUILD_MULTITHREADED=$(usex threads)
+ -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec)
+ -DGEANT4_INSTALL_DATA=OFF
+ -DGEANT4_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4/data"
+ -DGEANT4_INSTALL_EXAMPLES=$(usex examples)
+ -DGEANT4_USE_FREETYPE=$(usex freetype)
+ -DGEANT4_USE_G3TOG4=$(usex geant3)
+ -DGEANT4_USE_GDML=$(usex gdml)
+ -DGEANT4_USE_INVENTOR=$(usex inventor)
+ -DGEANT4_USE_NETWORKDAWN=$(usex dawn)
+ -DGEANT4_USE_NETWORKVRML=$(usex vrml)
+ -DGEANT4_USE_OPENGL_X11=$(usex opengl)
+ -DGEANT4_USE_QT=$(usex qt5)
+ -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx)
+ -DGEANT4_USE_SYSTEM_CLHEP=ON
+ -DGEANT4_USE_SYSTEM_EXPAT=ON
+ -DGEANT4_USE_SYSTEM_ZLIB=ON
+ -DGEANT4_USE_WT=OFF
+ -DGEANT4_USE_XM=$(usex motif)
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ ${EXTRA_ECONF}
+ )
+ if use inventor; then
+ mycmakeargs+=(
+ -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
+ -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ # adjust clhep linking flags for system clhep
+ # binmake.gmk is only useful for legacy build systems
+ sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
+ cmake-utils_src_install
+ rm "${ED}"/usr/bin/*.{sh,csh} || die "failed to remove obsolete shell scripts"
+
+ einstalldocs
+}
diff --git a/sci-physics/geant/geant-4.10.6_beta1.ebuild b/sci-physics/geant/geant-4.10.6_beta1.ebuild
new file mode 100644
index 00000000000..d7e342ef288
--- /dev/null
+++ b/sci-physics/geant/geant-4.10.6_beta1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+MY_P=${PN}$(ver_cut 1-2).$(printf %02d $(ver_cut 3))
+
+case ${PV} in
+*_beta*)
+ MY_P+=.b$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Beta$(ver_cut 1-3)-*.txt"
+ ;;
+*_p*)
+ MY_P+=.p$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Patch$(ver_cut 1-3)-*.txt"
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+*)
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+esac
+
+DESCRIPTION="Toolkit for simulation of passage of particles through matter"
+HOMEPAGE="https://geant4.cern.ch/"
+SRC_URI="https://geant4-data.web.cern.ch/geant4-data/releases/${MY_P}.tar.gz"
+
+LICENSE="geant4"
+SLOT="4"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+c++11 c++14 c++17 +data dawn doc examples freetype gdml geant3 hdf5
+ inventor motif opengl qt5 raytracerx static-libs threads vrml"
+
+REQUIRED_USE="^^ ( c++11 c++14 c++17 )"
+
+RDEPEND="
+ dev-libs/expat
+ >=sci-physics/clhep-2.4.1.3:2=[threads?]
+ data? ( ~sci-physics/geant-data-${PV} )
+ dawn? ( media-gfx/dawn )
+ doc? ( ~app-doc/geant-docs-$(ver_cut 1-3) )
+ gdml? ( dev-libs/xerces-c )
+ hdf5? ( sci-libs/hdf5[threads?] )
+ inventor? ( media-libs/SoXt )
+ motif? ( x11-libs/motif:0 )
+ opengl? ( virtual/opengl )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ opengl? ( dev-qt/qtopengl:5 )
+ )
+ raytracerx? (
+ x11-libs/libX11
+ x11-libs/libXmu
+ )"
+
+PATCHES=( "${FILESDIR}"/geant-4.10.6-datadir.patch )
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4"
+ -DGEANT4_BUILD_CXXSTD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
+ -DGEANT4_BUILD_MULTITHREADED=$(usex threads)
+ -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec)
+ -DGEANT4_INSTALL_DATA=OFF
+ -DGEANT4_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4/data"
+ -DGEANT4_INSTALL_EXAMPLES=$(usex examples)
+ -DGEANT4_USE_FREETYPE=$(usex freetype)
+ -DGEANT4_USE_G3TOG4=$(usex geant3)
+ -DGEANT4_USE_GDML=$(usex gdml)
+ -DGEANT4_USE_INVENTOR=$(usex inventor)
+ -DGEANT4_USE_NETWORKDAWN=$(usex dawn)
+ -DGEANT4_USE_NETWORKVRML=$(usex vrml)
+ -DGEANT4_USE_OPENGL_X11=$(usex opengl)
+ -DGEANT4_USE_QT=$(usex qt5)
+ -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx)
+ -DGEANT4_USE_SYSTEM_CLHEP=ON
+ -DGEANT4_USE_SYSTEM_EXPAT=ON
+ -DGEANT4_USE_SYSTEM_ZLIB=ON
+ -DGEANT4_USE_WT=OFF
+ -DGEANT4_USE_XM=$(usex motif)
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ ${EXTRA_ECONF}
+ )
+ if use inventor; then
+ mycmakeargs+=(
+ -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
+ -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ # adjust clhep linking flags for system clhep
+ # binmake.gmk is only useful for legacy build systems
+ sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
+ cmake-utils_src_install
+ rm "${ED}"/usr/bin/*.{sh,csh} || die "failed to remove obsolete shell scripts"
+
+ einstalldocs
+}
diff --git a/sci-physics/geant/geant-4.10.6_p1.ebuild b/sci-physics/geant/geant-4.10.6_p1.ebuild
new file mode 100644
index 00000000000..d7e342ef288
--- /dev/null
+++ b/sci-physics/geant/geant-4.10.6_p1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+MY_P=${PN}$(ver_cut 1-2).$(printf %02d $(ver_cut 3))
+
+case ${PV} in
+*_beta*)
+ MY_P+=.b$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Beta$(ver_cut 1-3)-*.txt"
+ ;;
+*_p*)
+ MY_P+=.p$(printf %02d $(ver_cut 5))
+ DOCS="ReleaseNotes/Patch$(ver_cut 1-3)-*.txt"
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+*)
+ HTML_DOCS="ReleaseNotes/ReleaseNotes$(ver_cut 1-3).html"
+ ;;
+esac
+
+DESCRIPTION="Toolkit for simulation of passage of particles through matter"
+HOMEPAGE="https://geant4.cern.ch/"
+SRC_URI="https://geant4-data.web.cern.ch/geant4-data/releases/${MY_P}.tar.gz"
+
+LICENSE="geant4"
+SLOT="4"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="+c++11 c++14 c++17 +data dawn doc examples freetype gdml geant3 hdf5
+ inventor motif opengl qt5 raytracerx static-libs threads vrml"
+
+REQUIRED_USE="^^ ( c++11 c++14 c++17 )"
+
+RDEPEND="
+ dev-libs/expat
+ >=sci-physics/clhep-2.4.1.3:2=[threads?]
+ data? ( ~sci-physics/geant-data-${PV} )
+ dawn? ( media-gfx/dawn )
+ doc? ( ~app-doc/geant-docs-$(ver_cut 1-3) )
+ gdml? ( dev-libs/xerces-c )
+ hdf5? ( sci-libs/hdf5[threads?] )
+ inventor? ( media-libs/SoXt )
+ motif? ( x11-libs/motif:0 )
+ opengl? ( virtual/opengl )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ opengl? ( dev-qt/qtopengl:5 )
+ )
+ raytracerx? (
+ x11-libs/libX11
+ x11-libs/libXmu
+ )"
+
+PATCHES=( "${FILESDIR}"/geant-4.10.6-datadir.patch )
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4"
+ -DGEANT4_BUILD_CXXSTD=$((usev c++11 || usev c++14 || usev c++17) | cut -c4-)
+ -DGEANT4_BUILD_MULTITHREADED=$(usex threads)
+ -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec)
+ -DGEANT4_INSTALL_DATA=OFF
+ -DGEANT4_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4/data"
+ -DGEANT4_INSTALL_EXAMPLES=$(usex examples)
+ -DGEANT4_USE_FREETYPE=$(usex freetype)
+ -DGEANT4_USE_G3TOG4=$(usex geant3)
+ -DGEANT4_USE_GDML=$(usex gdml)
+ -DGEANT4_USE_INVENTOR=$(usex inventor)
+ -DGEANT4_USE_NETWORKDAWN=$(usex dawn)
+ -DGEANT4_USE_NETWORKVRML=$(usex vrml)
+ -DGEANT4_USE_OPENGL_X11=$(usex opengl)
+ -DGEANT4_USE_QT=$(usex qt5)
+ -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx)
+ -DGEANT4_USE_SYSTEM_CLHEP=ON
+ -DGEANT4_USE_SYSTEM_EXPAT=ON
+ -DGEANT4_USE_SYSTEM_ZLIB=ON
+ -DGEANT4_USE_WT=OFF
+ -DGEANT4_USE_XM=$(usex motif)
+ -DBUILD_STATIC_LIBS=$(usex static-libs)
+ ${EXTRA_ECONF}
+ )
+ if use inventor; then
+ mycmakeargs+=(
+ -DINVENTOR_INCLUDE_DIR="$(coin-config --includedir)"
+ -DINVENTOR_SOXT_INCLUDE_DIR="$(coin-config --includedir)"
+ )
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ # adjust clhep linking flags for system clhep
+ # binmake.gmk is only useful for legacy build systems
+ sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
+ cmake-utils_src_install
+ rm "${ED}"/usr/bin/*.{sh,csh} || die "failed to remove obsolete shell scripts"
+
+ einstalldocs
+}
diff --git a/sci-physics/geant/metadata.xml b/sci-physics/geant/metadata.xml
index 179b2770b81..e89993be5a3 100644
--- a/sci-physics/geant/metadata.xml
+++ b/sci-physics/geant/metadata.xml
@@ -19,9 +19,12 @@
features and detectors.
</longdescription>
<use>
+ <flag name="c++11">Build using the C++11 standard</flag>
+ <flag name="c++14">Build using the C++14 standard</flag>
+ <flag name="c++17">Build using the C++17 standard</flag>
<flag name="data">Add a lot of standard physics data files for geant4</flag>
- <flag name="dawn">Add support for <pkg>media-gfx/dawn</pkg> (3D postscript
- rendering)</flag>
+ <flag name="dawn">Add support for <pkg>media-gfx/dawn</pkg> (3D postscript rendering)</flag>
+ <flag name="freetype">Add support for <pkg>media-libs/freetype</pkg></flag>
<flag name="gdml">Enable geometry markup language for xml</flag>
<flag name="geant3">Add compatibility for geant321 to geant4</flag>
<flag name="inventor">Add support for Open Inventor SGI toolkit via Coin3D</flag>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2024-04-08 17:59 Guilherme Amadio
0 siblings, 0 replies; 6+ messages in thread
From: Guilherme Amadio @ 2024-04-08 17:59 UTC (permalink / raw
To: gentoo-commits
commit: 92adce0f85a9027e5426c6578c4c31310d037c90
Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 8 17:49:24 2024 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Mon Apr 8 17:57:23 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92adce0f
sci-physics/geant: fix bug 928657
Closes: https://bugs.gentoo.org/928657
Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
.../files/geant-4.11.2.1-find-soxt-noversion.patch | 20 ++++++++++++++++++++
sci-physics/geant/geant-4.11.2.1.ebuild | 1 +
2 files changed, 21 insertions(+)
diff --git a/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch b/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
new file mode 100644
index 000000000000..a35e184ffccb
--- /dev/null
+++ b/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
@@ -0,0 +1,20 @@
+Remove versions from find_package(SoXt/SoWin), bug 928657.
+Patch submitted upstream.
+
+--- a/cmake/Modules/G4InterfaceOptions.cmake
++++ b/cmake/Modules/G4InterfaceOptions.cmake
+@@ -153,12 +153,12 @@ if(GEANT4_USE_INVENTOR)
+ geant4_save_package_variables(Inventor SoQt_DIR)
+ else()
+ if(UNIX)
+- find_package(SoXt 1.4.0 REQUIRED)
++ find_package(SoXt REQUIRED)
+ check_sobind_version(SoXt 1.4.0)
+ geant4_save_package_variables(Inventor SoXt_DIR)
+ set(GEANT4_USE_INVENTOR_XT ON)
+ elseif(WIN32)
+- find_package(SoWin 1.4.0 REQUIRED)
++ find_package(SoWin REQUIRED)
+ check_sobind_version(SoWin 1.4.0)
+ geant4_save_package_variables(Inventor SoWin_DIR)
+ set(GEANT4_USE_INVENTOR_WIN ON)
diff --git a/sci-physics/geant/geant-4.11.2.1.ebuild b/sci-physics/geant/geant-4.11.2.1.ebuild
index 2e384cbf7fc8..798bd3585b77 100644
--- a/sci-physics/geant/geant-4.11.2.1.ebuild
+++ b/sci-physics/geant/geant-4.11.2.1.ebuild
@@ -67,6 +67,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-4.11.0.2-musl-avoid-execinfo.patch
+ "${FILESDIR}"/${PN}-4.11.2.1-find-soxt-noversion.patch
)
src_configure() {
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/
@ 2024-11-25 15:32 Andreas Sturmlechner
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Sturmlechner @ 2024-11-25 15:32 UTC (permalink / raw
To: gentoo-commits
commit: 35e263f8f0550f1eac2a789d9d3ba704fdabffb8
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 24 14:40:26 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 25 15:29:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35e263f8
sci-physics/geant: drop 4.11.2.1-r1, 4.11.2.2
Acked-by: Guilherme Amadio <amadio <AT> gentoo.org>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-physics/geant/Manifest | 1 -
.../files/geant-4.11.2.1-find-soxt-noversion.patch | 20 ----
sci-physics/geant/geant-4.11.2.1-r1.ebuild | 112 ---------------------
sci-physics/geant/geant-4.11.2.2.ebuild | 111 --------------------
4 files changed, 244 deletions(-)
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest
index dd0f979e2edb..163652b4e173 100644
--- a/sci-physics/geant/Manifest
+++ b/sci-physics/geant/Manifest
@@ -1,3 +1,2 @@
DIST geant4-v11.2.0.tar.gz 36652313 BLAKE2B 41b5138b778be1302776961c0e029efd6143ceed9f3e81b0b1aeb542e1999f746b85dfe66b02421ce38e9475fd95ac0b2513944e13e4689a2e5ec627fa5b9e45 SHA512 57b31fd4125d992754e7ce2770d7427355d204cb0b28708429f8c7983aeb0b41897aa3f5fd345489b343232f459eede6b153752fece96146a7ee59660363acf9
-DIST geant4-v11.2.1.tar.gz 36631774 BLAKE2B e7c8f97f9ceaa32b38954f4ae9b49e2236134a8f5b9cb720d207ece002e7e2f1eb993888b2c53a09aa5293709502a3ab2b13332083a4332c466adaa59110905e SHA512 bdbf4e6ecc4ba5119b5364707cc256e92ea1a245f1c14a434bb7ad748649b27b6b0e20fb1b0624cfe2c66b4267c8a3ff25069794a47d348242cd5664e72812ab
DIST geant4-v11.2.2.tar.gz 36649158 BLAKE2B 5eaa3949f1322aec13839bae2a851f1346560fa373efd1e91a725fcec8652c6469ab0cd77e7cba2cf1bb7e2bd66700735dfada285f25b55364a3b913211a1f05 SHA512 dd7ffb35f0578208283edf094c0c80e26cbc583a58840cd847f850fd129e5d6330646fb0cd1af6a8ffdc2f82d6423d671d650f656fe79cfc6a8c436adf848fea
diff --git a/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch b/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
deleted file mode 100644
index a35e184ffccb..000000000000
--- a/sci-physics/geant/files/geant-4.11.2.1-find-soxt-noversion.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Remove versions from find_package(SoXt/SoWin), bug 928657.
-Patch submitted upstream.
-
---- a/cmake/Modules/G4InterfaceOptions.cmake
-+++ b/cmake/Modules/G4InterfaceOptions.cmake
-@@ -153,12 +153,12 @@ if(GEANT4_USE_INVENTOR)
- geant4_save_package_variables(Inventor SoQt_DIR)
- else()
- if(UNIX)
-- find_package(SoXt 1.4.0 REQUIRED)
-+ find_package(SoXt REQUIRED)
- check_sobind_version(SoXt 1.4.0)
- geant4_save_package_variables(Inventor SoXt_DIR)
- set(GEANT4_USE_INVENTOR_XT ON)
- elseif(WIN32)
-- find_package(SoWin 1.4.0 REQUIRED)
-+ find_package(SoWin REQUIRED)
- check_sobind_version(SoWin 1.4.0)
- geant4_save_package_variables(Inventor SoWin_DIR)
- set(GEANT4_USE_INVENTOR_WIN ON)
diff --git a/sci-physics/geant/geant-4.11.2.1-r1.ebuild b/sci-physics/geant/geant-4.11.2.1-r1.ebuild
deleted file mode 100644
index 22d1352ce552..000000000000
--- a/sci-physics/geant/geant-4.11.2.1-r1.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-MY_P=${PN}$(ver_cut 1)-v$(ver_cut 2-4)
-
-case ${PV} in
-*_beta*)
- DOCS="ReleaseNotes/Beta.$(ver_cut 2-3)-*.txt"
- ;;
-*)
- if [[ $(ver_cut 4) -gt 0 ]]; then
- DOCS="ReleaseNotes/Patch.$(ver_cut 2-3)-*.txt"
- fi
- HTML_DOCS="ReleaseNotes/ReleaseNotes.$(ver_cut 2-3).html"
- ;;
-esac
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="https://geant4.web.cern.ch/"
-SRC_URI="https://geant4-data.web.cern.ch/geant4-data/releases/${MY_P}.tar.gz"
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="geant4"
-SLOT="4/$(ver_cut 1-4)"
-
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data debug doc examples freetype gdml geant3 hdf5 inventor motif opengl
- qt5 raytracerx static-libs tbb threads trajectories vtk"
-
-REQUIRED_USE="
- inventor? ( opengl )
- motif? ( opengl )
- qt5? ( opengl )
- tbb? ( threads )
- vtk? ( qt5 )
-"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.4.7.1:2=[threads?]
- data? ( ~sci-physics/geant-data-4.11.2.0 )
- doc? ( app-doc/geant-docs )
- gdml? ( dev-libs/xerces-c )
- hdf5? ( sci-libs/hdf5:=[threads?] )
- inventor? ( media-libs/SoXt )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- qt5? (
- dev-qt/qt3d:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtwidgets:5
- opengl? ( dev-qt/qtopengl:5 )
- )
- raytracerx? (
- x11-libs/libX11
- x11-libs/libXmu
- )
- vtk? (
- sci-libs/vtk:=[qt5]
- )"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.11.0.2-musl-avoid-execinfo.patch
- "${FILESDIR}"/${PN}-4.11.2.1-find-soxt-noversion.patch
-)
-
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4"
- -DGEANT4_BUILD_BUILTIN_BACKTRACE=$(usex debug)
- -DGEANT4_BUILD_MULTITHREADED=$(usex threads)
- -DGEANT4_BUILD_STORE_TRAJECTORY=$(usex trajectories)
- -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec)
- -DGEANT4_BUILD_VERBOSE_CODE=$(usex debug)
- -DGEANT4_INSTALL_DATA=OFF
- -DGEANT4_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4/data"
- -DGEANT4_INSTALL_EXAMPLES=$(usex examples)
- -DGEANT4_INSTALL_PACKAGE_CACHE=OFF
- -DGEANT4_USE_FREETYPE=$(usex freetype)
- -DGEANT4_USE_G3TOG4=$(usex geant3)
- -DGEANT4_USE_GDML=$(usex gdml)
- -DGEANT4_USE_HDF5=$(usex hdf5)
- -DGEANT4_USE_INVENTOR=$(usex inventor)
- -DGEANT4_USE_OPENGL_X11=$(usex opengl)
- -DGEANT4_USE_QT=$(usex qt5)
- -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx)
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DGEANT4_USE_SYSTEM_EXPAT=ON
- -DGEANT4_USE_SYSTEM_ZLIB=ON
- -DGEANT4_USE_TBB=$(usex tbb)
- -DGEANT4_USE_XM=$(usex motif)
- -DGEANT4_USE_VTK=$(usex vtk)
- -DBUILD_STATIC_LIBS=$(usex static-libs)
- )
-
- cmake_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake_src_install
- rm "${ED}"/usr/bin/*.{sh,csh} || die "failed to remove obsolete shell scripts"
- einstalldocs
-}
diff --git a/sci-physics/geant/geant-4.11.2.2.ebuild b/sci-physics/geant/geant-4.11.2.2.ebuild
deleted file mode 100644
index c93a314c1209..000000000000
--- a/sci-physics/geant/geant-4.11.2.2.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-MY_P=${PN}$(ver_cut 1)-v$(ver_cut 2-4)
-
-case ${PV} in
-*_beta*)
- DOCS="ReleaseNotes/Beta.$(ver_cut 2-3)-*.txt"
- ;;
-*)
- if [[ $(ver_cut 4) -gt 0 ]]; then
- DOCS="ReleaseNotes/Patch.$(ver_cut 2-3)-*.txt"
- fi
- HTML_DOCS="ReleaseNotes/ReleaseNotes.$(ver_cut 2-3).html"
- ;;
-esac
-
-DESCRIPTION="Toolkit for simulation of passage of particles through matter"
-HOMEPAGE="https://geant4.web.cern.ch/"
-SRC_URI="https://geant4-data.web.cern.ch/geant4-data/releases/${MY_P}.tar.gz"
-
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="geant4"
-SLOT="4/$(ver_cut 1-4)"
-
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="+data debug doc examples freetype gdml geant3 hdf5 inventor motif opengl
- qt5 raytracerx static-libs tbb threads trajectories vtk"
-
-REQUIRED_USE="
- inventor? ( opengl )
- motif? ( opengl )
- qt5? ( opengl )
- tbb? ( threads )
- vtk? ( qt5 )
-"
-
-RDEPEND="
- dev-libs/expat
- >=sci-physics/clhep-2.4.7.1:2=[threads?]
- data? ( ~sci-physics/geant-data-4.11.2.0 )
- doc? ( app-doc/geant-docs )
- gdml? ( dev-libs/xerces-c )
- hdf5? ( sci-libs/hdf5:=[threads?] )
- inventor? ( media-libs/SoXt )
- motif? ( x11-libs/motif:0 )
- opengl? ( virtual/opengl )
- qt5? (
- dev-qt/qt3d:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtwidgets:5
- opengl? ( dev-qt/qtopengl:5 )
- )
- raytracerx? (
- x11-libs/libX11
- x11-libs/libXmu
- )
- vtk? ( sci-libs/vtk:=[qt5] )
-"
-DEPEND="${RDEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.11.0.2-musl-avoid-execinfo.patch
-)
-
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4"
- -DGEANT4_BUILD_BUILTIN_BACKTRACE=$(usex debug)
- -DGEANT4_BUILD_MULTITHREADED=$(usex threads)
- -DGEANT4_BUILD_STORE_TRAJECTORY=$(usex trajectories)
- -DGEANT4_BUILD_TLS_MODEL=$(usex threads global-dynamic initial-exec)
- -DGEANT4_BUILD_VERBOSE_CODE=$(usex debug)
- -DGEANT4_INSTALL_DATA=OFF
- -DGEANT4_INSTALL_DATADIR="${EPREFIX}/usr/share/geant4/data"
- -DGEANT4_INSTALL_EXAMPLES=$(usex examples)
- -DGEANT4_INSTALL_PACKAGE_CACHE=OFF
- -DGEANT4_USE_FREETYPE=$(usex freetype)
- -DGEANT4_USE_G3TOG4=$(usex geant3)
- -DGEANT4_USE_GDML=$(usex gdml)
- -DGEANT4_USE_HDF5=$(usex hdf5)
- -DGEANT4_USE_INVENTOR=$(usex inventor)
- -DGEANT4_USE_OPENGL_X11=$(usex opengl)
- -DGEANT4_USE_QT=$(usex qt5)
- -DGEANT4_USE_RAYTRACER_X11=$(usex raytracerx)
- -DGEANT4_USE_SYSTEM_CLHEP=ON
- -DGEANT4_USE_SYSTEM_EXPAT=ON
- -DGEANT4_USE_SYSTEM_ZLIB=ON
- -DGEANT4_USE_TBB=$(usex tbb)
- -DGEANT4_USE_XM=$(usex motif)
- -DGEANT4_USE_VTK=$(usex vtk)
- -DBUILD_STATIC_LIBS=$(usex static-libs)
- )
-
- cmake_src_configure
-}
-
-src_install() {
- # adjust clhep linking flags for system clhep
- # binmake.gmk is only useful for legacy build systems
- sed -i -e 's/-lG4clhep/-lCLHEP/' config/binmake.gmk || die
- cmake_src_install
- rm "${ED}"/usr/bin/*.{sh,csh} || die "failed to remove obsolete shell scripts"
- einstalldocs
-}
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-11-25 15:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-25 15:32 [gentoo-commits] repo/gentoo:master commit in: sci-physics/geant/, sci-physics/geant/files/ Andreas Sturmlechner
-- strict thread matches above, loose matches on Subject: below --
2024-04-08 17:59 Guilherme Amadio
2020-03-16 16:59 Guilherme Amadio
2018-01-19 18:40 Andreas Sturmlechner
2016-05-05 21:11 David Seifert
2016-01-13 17:41 Guilherme Amadio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox