From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- sci-physics/geant/Manifest | 17 +++++ .../files/geant-4.10.0-TrackingNavigator.patch | 60 +++++++++++++++ .../geant/files/geant-4.10.0-no-examples.patch | 22 ++++++ sci-physics/geant/files/geant-4.9.4-datadir.patch | 43 +++++++++++ sci-physics/geant/files/geant-4.9.4-libdir.patch | 35 +++++++++ .../geant/files/geant-4.9.4-no-benchmarks.patch | 10 +++ .../geant/files/geant-4.9.4-no-examples.patch | 15 ++++ .../geant/files/geant-4.9.4-trajectory.patch | 11 +++ sci-physics/geant/files/geant-4.9.4-zlib.patch | 35 +++++++++ sci-physics/geant/geant-3.21.14-r2.ebuild | 71 +++++++++++++++++ sci-physics/geant/geant-3.21.14-r3.ebuild | 70 +++++++++++++++++ sci-physics/geant/geant-3.21.14-r4.ebuild | 68 +++++++++++++++++ sci-physics/geant/geant-4.10.00.ebuild | 89 ++++++++++++++++++++++ sci-physics/geant/geant-4.10.00_p01.ebuild | 86 +++++++++++++++++++++ sci-physics/geant/geant-4.10.01.ebuild | 87 +++++++++++++++++++++ sci-physics/geant/geant-4.9.4_p03.ebuild | 86 +++++++++++++++++++++ sci-physics/geant/geant-4.9.6_p02-r1.ebuild | 86 +++++++++++++++++++++ sci-physics/geant/metadata.xml | 25 ++++++ 18 files changed, 916 insertions(+) create mode 100644 sci-physics/geant/Manifest create mode 100644 sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch create mode 100644 sci-physics/geant/files/geant-4.10.0-no-examples.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-datadir.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-libdir.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-no-benchmarks.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-no-examples.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-trajectory.patch create mode 100644 sci-physics/geant/files/geant-4.9.4-zlib.patch create mode 100644 sci-physics/geant/geant-3.21.14-r2.ebuild create mode 100644 sci-physics/geant/geant-3.21.14-r3.ebuild create mode 100644 sci-physics/geant/geant-3.21.14-r4.ebuild create mode 100644 sci-physics/geant/geant-4.10.00.ebuild create mode 100644 sci-physics/geant/geant-4.10.00_p01.ebuild create mode 100644 sci-physics/geant/geant-4.10.01.ebuild create mode 100644 sci-physics/geant/geant-4.9.4_p03.ebuild create mode 100644 sci-physics/geant/geant-4.9.6_p02-r1.ebuild create mode 100644 sci-physics/geant/metadata.xml (limited to 'sci-physics/geant') diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest new file mode 100644 index 000000000000..4ed1693853c4 --- /dev/null +++ b/sci-physics/geant/Manifest @@ -0,0 +1,17 @@ +DIST G4ABLA.3.0.tar.gz 54909 SHA256 ff0b77be6b36204eeeba71099f6b7530edd80b79eb015994535bc4334bc821eb SHA512 905a56c142793de005dc5771509cdd8c4f98e596b95223a1a058cbf614cf48805478839eeec3a29594daf3d89c6b4d72cb33b016a596cdadc4247e452afbd526 WHIRLPOOL daa65dd65160cfa62b1a7b747702cc6cf41230f95b406e2e5e18a743524647842639e8c76906334671d00860b88139f4812c811307803bdc4260468b4c6703cb +DIST G4EMLOW.6.19.tar.gz 14396144 SHA256 8876defe74e4c1e9d6b58b2365a9b468ac8d996fb63fa1c6ba6240e0b185845f SHA512 c877f02a40337333dc6a18c9a86436913d7d090e5cd6f0db861c66190d22046edb5dd7a7cb362183e6fa596c80aded5646b322329d0c12948732fb9e55998527 WHIRLPOOL bd534e91cecbcab46f64eaf1f917931013b84a8347bbe0a94d184afb1467984a0421b3336c3f2dcdda02f5d13b3dcc05a1e82ffd4d5d406baab2e7d2c633a596 +DIST G4NDL.3.14.tar.gz 58794491 SHA256 08ff1d4fb0953f2502d88f76fb9db1d4314c975564731f11c9372d0ea992cafa SHA512 bc0bd6ec22184de370f36f076b2904ee6c7cfad963e8b4dcbfc499eaf7af1440c5c00c2520e6df2b12be256a71f8fe49a8071292a645a88f179d3f5b12348b39 WHIRLPOOL 4d6a20303b658756b27120a2627177c13b47eb3ab8f426d7ef7d158ba2f8d07b728cc31ffe606b6a9767708648fba2916a76c5facdca90fda6d1258ea3fe9a3c +DIST G4NEUTRONXS.1.0.tar.gz 1186619 SHA256 577d28b7faa41caacb001a30384028cd5e3b7018755ab94a427ce0a7feeab365 SHA512 48ba2739233230765a0f5fa492c5190aed17cba631f115dc2a7a6aaf780185b390dc62277abd1ec81fd903003d7c3903857f10add75d89bfbedaffc498555e1c WHIRLPOOL 615b402916ef01a4610c202250a2c106ae0e7a233590fdca70c9694536503b0e24b7ca0200867734938bf000afae4de0658c6448cb57ae762357a9e87ffe6ddc +DIST G4PII.1.2.tar.gz 3387814 SHA256 80e680d7343ed051bcfffd910c682cfd66980cecd1c0bc435f06c6c740a6f99d SHA512 ac02d4af6483665968ce4ad04442513ee32f850c82bbb81c2630a233246005534a9708502b79159e72b872bd44c414d44e4b53aa23d4b4e4d43527343d25ef95 WHIRLPOOL 50c56b1fccb8cf357bb5fe897c3f4b0b11a5548044ea3664992bc7d8006f0a8be4b29f414f9d9411947bb9184d9ac8ca43dea0d79b8dbcd57043e9b99c06cb5d +DIST G4PhotonEvaporation.2.1.tar.gz 7504003 SHA256 08ab657a060518c9b7aab03b17628cbb31585ee9512e0f2033f2fb0d7d9b2bc7 SHA512 ea3a2d1ceb025f595d2cdac1c77215d89c95cd314e6cb44f88f3010bdea3c6397e8310a55a82b43a235301db9a7e3fef754bb93f717e513dca97e6b8a01fdd47 WHIRLPOOL fd77105445137960b607bfe17a1357a7722bbf9af0242db6e7aeb374a779444b838b1bc7549c3a0eaaceaf6702595dc90ccea1bedda74588db8460131acb0860 +DIST G4RadioactiveDecay.3.3.tar.gz 732628 SHA256 7f421d6808422f9186a8a96fc1889a54af03c80a37b9f9d1d51ab359ea0264d1 SHA512 a340618134e6c66ce51f1762a68aebb7b2f2467b7d4f3717e4e2bae1f98ed248dcb62f71ceb9bcfe41282253f7b53dfac8e557007c9414f88750abce3b1402e8 WHIRLPOOL 95eeec8b1c2a8fb2f39fb1903e7479649e49e32421b513224541b36784986a2f932c9c9a08d966d47ab21d9e89288673a7ead78f7fb4d042c32e30d5212485c7 +DIST RealSurface.1.0.tar.gz 1257863 SHA256 3e2d2506600d2780ed903f1f2681962e208039329347c58ba1916740679020b1 SHA512 6457e1931fe1989f822493dbcb3193d97fdb37ecdc8341e953af1fb66816aa589e9d5abaa8a937e4599924c005fc32c763dd0db9af567c4c94aa07fae292be76 WHIRLPOOL 7b36a782278a663866b5676fda2ed5425c61219804aaa3fb6042455f6815e0e16a0f82445947d6e1a9585b9c09fb88fb70230bfd692f3bf10aa4ac8c43c37cae +DIST geant321_3.21.14.dfsg-11.debian.tar.gz 52237 SHA256 62d95386cfe0d83e7d26b5b38be2d249276002441e57c67452930e18a9d177d8 SHA512 a3b6dea7b0df1ecb89bfb974339d3b5aed6815874f453040b37377ab9e9217d6970429d7a346c62f2b289bb8911aafa3569edc7499c13b7b2d3fac23e2a773c9 WHIRLPOOL 7fa57b667f880c877e12e828ca9db5f845d8fbdbfd070da6e30d9450192ce935e339eaf83ffaf3c7426d89bf4608a71e06a518ef9ae95059a2b4a288d7107c96 +DIST geant321_3.21.14.dfsg-8.diff.gz 41909 SHA256 785277dab1e1d3e17d60c85f3826bc67bbd6de7e6a6d40ff7af901371c4d2ce1 SHA512 d69ecb773f06bb1bfea8c336297b693bf1ff62c051408bd64398077b7ccc81a893ad69a29dbe127d78cbe7d6bce125423fc53a68fc719880ee13e03dc4e52662 WHIRLPOOL 9e2fcd4c8f32dba1af6f71e1fd7153c9ab9a26d6200ca71ab2152df0e66d9ed3933d4f27fc44a0fa1f9a8caa375b2f2be0414c681faec3c79545aa733a0ad01f +DIST geant321_3.21.14.dfsg-9.diff.gz 47589 SHA256 419bc2315e2692fe84b353d445cbae7af995d84a6a0290b7f9051ee041243d20 SHA512 fd04f42e5ca8bc7f8015bacf038a78e90ac0ebc95ab85ed65e2010a7c05aed8874057de9f28e11fefee8b6c6b983a5db8dcd8480953c185e6d45d1ca16adba01 WHIRLPOOL 6ca0e08fdf464076dda58cd26dc7c92511d82315ea58979de8201c3f8eeab6860bb136d1ebffcea23b7a53b71b5a6a894495b3153c905aa31f9260517f30e526 +DIST geant321_3.21.14.dfsg.orig.tar.gz 10922928 SHA256 186fe98a08ad1de39f68698a09a46e7c2f14c37b22f8f990257b0bd66215c5b4 SHA512 733a77e529ecfe17c35d1e0bf44cf9062dbd9f2e3880e12cbfabf7372e6c60ea9690df010574094b44aef6fe306dfd85dfd4f42641b8f03efda3938a50313734 WHIRLPOOL fc2b230e1bf2ae1157cf9c92f474ff72fc1f3158e5db5a8f1a7d4f7c983fae9b886dc1aeb148019cb961bc602abc629d75a1aa728d66b10887daa45de040def6 +DIST geant4.10.00.p01.tar.gz 29701289 SHA256 09c431ff3ef81034282c46501cea01046d4a20438c2ea2a7339576e1ecf26ba0 SHA512 d7be39580a8dafa55b1a52b498e4a24312499a33d41954d8684385ce57c903430b2c56386728ad9a70d21af6634fbb8d6b55b2ef9c56b6c9272671e66bf9119d WHIRLPOOL d85a84be7166e949a72d6200f6a00a86bb9611a215270e2021cf5f214e78a9b05095816bb5bb135235bdcccd8949b4460a624fce68764485bbbcd06b5a974889 +DIST geant4.10.00.tar.gz 30780131 SHA256 ffec1714b03748b6d691eb0b91906f4c74422c1ad1f8afa918e03be421af8a17 SHA512 c9288b26df8b858622e728158b687cd7bc257c49f26a21b93d1b9fa4619c22dfea2a7604689118ac493b407888690db42d1ec9c8048aa1f45bf8beeb6a657e87 WHIRLPOOL 20eb2002e867a0fe3dab683820ebeeb5de2140c5cd7c4c57c07b5da2a62900d4ee2bf1f6372e034781ed536001e40a5a79d5654729e45a16995415febfefb26d +DIST geant4.10.01.tar.gz 43759041 SHA256 d37400e96423fedfbf8dbe1f49e2ef0367317c3893ad99f28eed06bf97e1feb7 SHA512 6b9f154f705e7ca4918dea3e2a9ccc0e6fa8806fd4466b4b947f9beec35968640dbe32d383c2a138f15e40b10085c717256cc1604f4d8407e7cb28e5772b52e6 WHIRLPOOL 24316ae5a05026d7e2eff8fad2d628b2198f810d8a82bb934c6c9481961b6b8b3d68393aed785aa8664ea57074e006211df1d9391fbaed154578fe03f3fb6339 +DIST geant4.9.4.p03.tar.gz 25241424 SHA256 5090ca5b506238f16ba2ae2176221a18b6fde06f91180850a109fae1006910c0 SHA512 281b224c126c41cda6b128218dfeb2d77e0e06ca08d2a3dd039be009e3736f3befbf8dd8838543eea197341a5c382543240bf429c38e5e8ca6f0628eb65080b4 WHIRLPOOL 6e9929296624b35cf83a7325d32221f2aaf724b1c27e4f666fea960343c030f08be61723998c5c19cd74a688610a123e3699c907fe5e44f8df2e8058f8691ea5 +DIST geant4.9.6.p02.tar.gz 25480383 SHA256 cf5df83b7e2c99e6729449b32d3ecb0727b4692317426b66fc7fd41951c7351f SHA512 dab5f31568074869adecbbfb8855be0c0a2e92e5ba3119dbeb9cd414878721df3052198a05e5e3c19d0e2942a22602c6618dc0628b05134d3403a50c2bc2032c WHIRLPOOL 8c66d8aa1605a42e6b6f054c32eb49df0bb2afcdf54360ff630908ce7cfc8a7a37b62cdb2a1612af05f1f70a5575c6516aad1f6737a67692449b01e1137b2865 diff --git a/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch b/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch new file mode 100644 index 000000000000..e3cc8d6594a5 --- /dev/null +++ b/sci-physics/geant/files/geant-4.10.0-TrackingNavigator.patch @@ -0,0 +1,60 @@ +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 new file mode 100644 index 000000000000..99aaca546f49 --- /dev/null +++ b/sci-physics/geant/files/geant-4.10.0-no-examples.patch @@ -0,0 +1,22 @@ +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.9.4-datadir.patch b/sci-physics/geant/files/geant-4.9.4-datadir.patch new file mode 100644 index 000000000000..c691d90e8ce4 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-datadir.patch @@ -0,0 +1,43 @@ +--- cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake.orig 2011-01-22 00:49:11.096082056 +0000 ++++ cmake/Modules/Geant4ToolchainBackwardCompatibility.cmake 2011-01-22 00:53:04.746078920 +0000 +@@ -74,9 +74,9 @@ + # Construct backward compatible variables + # + set(G4SYSTEM "${GEANT4_SYSTEM}-${GEANT4_COMPILER}") +-set(G4INSTALL ${GEANT4_DATADIR}/geant4-${geant4_VERSION}) ++set(G4INSTALL ${GEANT4_DATADIR}/geant4) + set(G4INCLUDE ${GEANT4_INCLUDEDIR}/geant4) +-set(G4LIB ${GEANT4_LIBDIR}/geant4-${geant4_VERSION}) ++set(G4LIB ${GEANT4_LIBDIR}/geant4) + + message(STATUS "Geant4 backwards compatible variable G4SYSTEM : ${G4SYSTEM}") + message(STATUS "Geant4 backwards compatible variable G4INSTALL: ${G4INSTALL}") +@@ -125,7 +125,7 @@ + # Install targets + # toolchain + install(DIRECTORY config +- DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION} ++ DESTINATION ${GEANT4_DATAROOTDIR}/geant4 + FILES_MATCHING PATTERN "*.gmk" + PATTERN "CVS" EXCLUDE + PATTERN "scripts/" EXCLUDE) +@@ -134,16 +134,16 @@ + install(FILES + ${CMAKE_BINARY_DIR}/outputs/runtime/geant4-${geant4_VERSION}.sh + ${CMAKE_BINARY_DIR}/outputs/runtime/geant4-${geant4_VERSION}.csh +- DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION}/config ++ DESTINATION ${GEANT4_DATAROOTDIR}/geant4/config + PERMISSIONS + OWNER_READ OWNER_WRITE OWNER_EXECUTE + GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE) + + # compatibility softlink to library directory +- install(CODE "execute_process(COMMAND \${CMAKE_COMMAND} -E make_directory \$ENV{DESTDIR}${GEANT4_LIBDIR}/geant4-${geant4_VERSION})") ++ install(CODE "execute_process(COMMAND \${CMAKE_COMMAND} -E make_directory \$ENV{DESTDIR}${GEANT4_LIBDIR}/geant4)") + +- install(CODE "execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink .. ${GEANT4_SYSTEM}-${GEANT4_COMPILER} WORKING_DIRECTORY \$ENV{DESTDIR}${GEANT4_LIBDIR}/geant4-${geant4_VERSION})") ++ install(CODE "execute_process(COMMAND \${CMAKE_COMMAND} -E create_symlink .. ${GEANT4_SYSTEM}-${GEANT4_COMPILER} WORKING_DIRECTORY \$ENV{DESTDIR}${GEANT4_LIBDIR}/geant4)") + + endif() + diff --git a/sci-physics/geant/files/geant-4.9.4-libdir.patch b/sci-physics/geant/files/geant-4.9.4-libdir.patch new file mode 100644 index 000000000000..8934f73acfe9 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-libdir.patch @@ -0,0 +1,35 @@ +--- CMakeLists.txt.orig 2011-01-17 06:25:14.536078940 +0000 ++++ CMakeLists.txt 2011-01-21 23:50:53.406082074 +0000 +@@ -195,7 +195,7 @@ + set(GEANT4_PREFIX ${CMAKE_INSTALL_PREFIX}) + set(GEANT4_EXEC_PREFIX ${GEANT4_PREFIX}) + set(GEANT4_BINDIR ${GEANT4_EXEC_PREFIX}/bin) +-set(GEANT4_LIBDIR ${GEANT4_PREFIX}/lib) ++set(GEANT4_LIBDIR ${GEANT4_PREFIX}/lib${LIB_SUFFIX}) + set(GEANT4_DATAROOTDIR ${GEANT4_PREFIX}/share) + set(GEANT4_DATADIR ${GEANT4_DATAROOTDIR}) + set(GEANT4_INCLUDEDIR ${GEANT4_PREFIX}/include) +--- cmake/Modules/Geant4MacroLibraryTargets.cmake.orig 2011-01-21 23:36:09.356079013 +0000 ++++ cmake/Modules/Geant4MacroLibraryTargets.cmake 2011-01-21 23:49:49.826082339 +0000 +@@ -35,8 +35,8 @@ + # NEEDS WORK TO REMOVE HARDCODED LIB/BIN DIR + install(TARGETS ${G4LIBTARGET_NAME} + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib) ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX}) + endif() + + # +@@ -59,8 +59,8 @@ + + install(TARGETS ${G4LIBTARGET_NAME}-static + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib) ++ LIBRARY DESTINATION lib${LIB_SUFFIX} ++ ARCHIVE DESTINATION lib${LIB_SUFFIX}) + endif() + ENDMACRO() + diff --git a/sci-physics/geant/files/geant-4.9.4-no-benchmarks.patch b/sci-physics/geant/files/geant-4.9.4-no-benchmarks.patch new file mode 100644 index 000000000000..8c9d47707ac4 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-no-benchmarks.patch @@ -0,0 +1,10 @@ +--- source/geometry/CMakeLists.txt.orig 2011-01-17 05:09:38.046080303 +0000 ++++ source/geometry/CMakeLists.txt 2011-01-17 05:09:59.636215548 +0000 +@@ -12,7 +12,6 @@ + # + #------------------------------------------------------------------------------ + +-add_subdirectory(benchmarks) + add_subdirectory(biasing) + add_subdirectory(divisions) + add_subdirectory(magneticfield) diff --git a/sci-physics/geant/files/geant-4.9.4-no-examples.patch b/sci-physics/geant/files/geant-4.9.4-no-examples.patch new file mode 100644 index 000000000000..6db7b3f9017d --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-no-examples.patch @@ -0,0 +1,15 @@ +--- CMakeLists.txt.orig 2011-01-22 01:47:07.000000000 +0000 ++++ CMakeLists.txt 2011-01-22 02:00:58.676084146 +0000 +@@ -209,9 +209,9 @@ + # Install any extra files needed such as documentation and legacy Makefiles + # + # User example code +-install(DIRECTORY examples +- DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION} +- PATTERN "CVS" EXCLUDE) ++#install(DIRECTORY examples ++# DESTINATION ${GEANT4_DATAROOTDIR}/geant4-${geant4_VERSION} ++# PATTERN "CVS" EXCLUDE) + + + # diff --git a/sci-physics/geant/files/geant-4.9.4-trajectory.patch b/sci-physics/geant/files/geant-4.9.4-trajectory.patch new file mode 100644 index 000000000000..df45ae234e50 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-trajectory.patch @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2011-04-28 01:19:54.232041312 +0200 ++++ CMakeLists.txt 2011-04-28 01:15:11.434101391 +0200 +@@ -43,6 +43,8 @@ + set(${PROJECT_NAME}_VERSION_MINOR "4") + set(${PROJECT_NAME}_VERSION_PATCH "1") + ++add_definitions(-DG4_STORE_TRAJECTORY) ++ + #------------------------------------------------------------------------------ + # Set up path to internal set of CMake modules. + # diff --git a/sci-physics/geant/files/geant-4.9.4-zlib.patch b/sci-physics/geant/files/geant-4.9.4-zlib.patch new file mode 100644 index 000000000000..f0429695ce38 --- /dev/null +++ b/sci-physics/geant/files/geant-4.9.4-zlib.patch @@ -0,0 +1,35 @@ +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-r2.ebuild b/sci-physics/geant/geant-3.21.14-r2.ebuild new file mode 100644 index 000000000000..75608a6d437c --- /dev/null +++ b/sci-physics/geant/geant-3.21.14-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils fortran-2 + +DEB_PN=geant321 +DEB_PV=${PV}.dfsg +DEB_PR=8 +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}.diff.gz" + +SLOT="3" +LICENSE="GPL-2 LGPL-2 BSD" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=" + dev-lang/cfortran + sci-physics/cernlib + sci-physics/paw + x11-libs/motif:0" +DEPEND="${RDEPEND} + virtual/latex-base + x11-misc/imake + x11-misc/makedepend" + +S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig" + +src_prepare() { + cd "${WORKDIR}" + sed -i -e 's:/tmp/dp.*/cern:cern:g' ${DEB_P}-${DEB_PR}.diff || die + epatch ${DEB_P}-${DEB_PR}.diff + cd "${S}" + cp debian/add-ons/Makefile . + export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck" + sed \ + -e 's:/usr/local:/usr:g' \ + -i Makefile || die "sed'ing the Makefile failed" + + einfo "Applying Debian patches" + emake -j1 patch || die "debian patch failed" + + # 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 || die "emake failed" +} + +src_test_() { + LD_LIBRARY_PATH="${S}"/shlib \ + emake -j1 cernlib-test || die "emake test failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + cd "${S}"/debian + dodoc changelog README.* deadpool.txt NEWS copyright || die "dodoc failed" + newdoc add-ons/README README.add-ons || die "newdoc failed" +} diff --git a/sci-physics/geant/geant-3.21.14-r3.ebuild b/sci-physics/geant/geant-3.21.14-r3.ebuild new file mode 100644 index 000000000000..fba71ad42c31 --- /dev/null +++ b/sci-physics/geant/geant-3.21.14-r3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils fortran-2 + +DEB_PN=geant321 +DEB_PV=${PV}.dfsg +DEB_PR=9 +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}.diff.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() { + cd "${WORKDIR}" + sed -i -e 's:/tmp/dp.*/cern:cern:g' ${DEB_P}-${DEB_PR}.diff || die + epatch ${DEB_P}-${DEB_PR}.diff + cd "${S}" + cp debian/add-ons/Makefile . + export DEB_BUILD_OPTIONS="$(tc-getFC) nostrip nocheck" + sed -i \ + -e 's:/usr/local:/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-3.21.14-r4.ebuild b/sci-physics/geant/geant-3.21.14-r4.ebuild new file mode 100644 index 000000000000..8cdb3f6cfb5e --- /dev/null +++ b/sci-physics/geant/geant-3.21.14-r4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 new file mode 100644 index 000000000000..d881e8ee0684 --- /dev/null +++ b/sci-physics/geant/geant-4.10.00.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 new file mode 100644 index 000000000000..15bf0b709063 --- /dev/null +++ b/sci-physics/geant/geant-4.10.00_p01.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 new file mode 100644 index 000000000000..d7d085097fe7 --- /dev/null +++ b/sci-physics/geant/geant-4.10.01.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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.9.4_p03.ebuild b/sci-physics/geant/geant-4.9.4_p03.ebuild new file mode 100644 index 000000000000..cf4ff5b02846 --- /dev/null +++ b/sci-physics/geant/geant-4.9.4_p03.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit cmake-utils eutils fortran-2 versionator + +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_COM="http://geant4.cern.ch/support/source" +SRC_URI="${SRC_COM}/${MYP}.tar.gz" +GEANT4_DATA=" + G4NDL.3.14 + G4EMLOW.6.19 + G4RadioactiveDecay.3.3 + G4NEUTRONXS.1.0 + G4PII.1.2 + G4PhotonEvaporation.2.1 + G4ABLA.3.0 + RealSurface.1.0" +for d in ${GEANT4_DATA}; do + SRC_URI="${SRC_URI} data? ( ${SRC_COM}/${d}.tar.gz )" +done + +LICENSE="geant4" +SLOT="4" +KEYWORDS="amd64 x86" +IUSE="+data dawn examples gdml geant3 granular qt4 static-libs vrml zlib" + +RDEPEND=" + >=sci-physics/clhep-2.1 + qt4? ( dev-qt/qtgui:4 dev-qt/qtopengl:4 ) + gdml? ( dev-libs/xerces-c ) + geant3? ( sci-physics/geant:3 ) + dawn? ( media-gfx/dawn ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-4.9.4-{zlib,libdir,datadir,trajectory}.patch ) + +src_configure() { + mycmakeargs=( + $(cmake-utils_use dawn GEANT4_USE_NETWORKDAWN) + $(cmake-utils_use gdml GEANT4_USE_GDML) + $(cmake-utils_use geant3 GEANT4_USE_GEANT3TOGEANT4) + $(cmake-utils_use granular GEANT4_BUILD_GRANULAR_BUILD) + $(cmake-utils_use vrml GEANT4_USE_NETWORKVRML) + $(cmake-utils_use qt4 GEANT4_USE_QT) + $(cmake-utils_use zlib GEANT4_USE_SYSTEM_ZLIB) + $(cmake-utils_use_build static-libs STATIC_LIBS) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + if use data; then + einfo "Installing Geant4 data" + insinto /usr/share/geant4/data + pushd "${WORKDIR}" > /dev/null + for d in ${GEANT4_DATA}; do + local p=${d/.} + doins -r *${p/G4} + done + popd > /dev/null + fi + + 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 "Users need to define the G4WORKDIR variable (\$HOME/geant4 is normally used)." +} diff --git a/sci-physics/geant/geant-4.9.6_p02-r1.ebuild b/sci-physics/geant/geant-4.9.6_p02-r1.ebuild new file mode 100644 index 000000000000..f2008d4162df --- /dev/null +++ b/sci-physics/geant/geant-4.9.6_p02-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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)" +} diff --git a/sci-physics/geant/metadata.xml b/sci-physics/geant/metadata.xml new file mode 100644 index 000000000000..04025cfa9c28 --- /dev/null +++ b/sci-physics/geant/metadata.xml @@ -0,0 +1,25 @@ + + + +sci-physics + + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. Geant 3 simulations are performed by + linking Fortran code supplied by the user with the Geant libraries, + then running the resulting executable. This package includes gxint, + the script used to perform this linking step. + Geant 4 is a complete rewrite in C++ with addition of other modern + features and detectors. + + + Add a lot of standard physics data files for geant4 + Add support for media-gfx/dawn (3D postscript + rendering) + Enable geometry markup language for xml + Add compatibility for geant321 to geant4 + Produce many small libraries instead of global ones + Add support for Open Inventor SGI toolkit via Coin3D + Enable raytracing for physics events + Enable output of geant4 in vrml formats + + -- cgit v1.2.3-65-gdbad