diff options
-rw-r--r-- | sci-physics/geant/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/geant/geant-4.10.03.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/sci-physics/geant/Manifest b/sci-physics/geant/Manifest index d7afe59eeab2..b56cb9c2100e 100644 --- a/sci-physics/geant/Manifest +++ b/sci-physics/geant/Manifest @@ -14,5 +14,6 @@ DIST geant4.10.00.tar.gz 30780131 SHA256 ffec1714b03748b6d691eb0b91906f4c74422c1 DIST geant4.10.01.p02.tar.gz 33708464 SHA256 ee7917f6a4fe4c714cc9c68abaa3a2c32628d328186d8514d7cdecd7c639143f SHA512 056ffca00b6e0496748aa1ca34a0a349eea607505b093f7148557a4e2a704cdb6949731f5313508eff311a3075b53841c4f332f057604c0826b76db0089fc082 WHIRLPOOL 52cdea3f5fc97744cf0547fa374279d5e77e05acb4f44e629970d4c856c52a541c41ebbcb6f4cdcdb4759a0855172ac9825f7bd2a254795ec2f737a3b9dc4a42 DIST geant4.10.01.tar.gz 43759041 SHA256 d37400e96423fedfbf8dbe1f49e2ef0367317c3893ad99f28eed06bf97e1feb7 SHA512 6b9f154f705e7ca4918dea3e2a9ccc0e6fa8806fd4466b4b947f9beec35968640dbe32d383c2a138f15e40b10085c717256cc1604f4d8407e7cb28e5772b52e6 WHIRLPOOL 24316ae5a05026d7e2eff8fad2d628b2198f810d8a82bb934c6c9481961b6b8b3d68393aed785aa8664ea57074e006211df1d9391fbaed154578fe03f3fb6339 DIST geant4.10.02.tar.gz 32312192 SHA256 633ca2df88b03ba818c7eb09ba21d0667a94e342f7d6d6ff3c695d83583b8aa3 SHA512 f10fd1205b986f0ad069727ac867f1cd13e2a9da088462e70ba1eb58dee84276c0e5a5f764eee44e3ca832ed0ac4591b29645cd3dcc6b0e57e5fb1bc0c0dc6ea WHIRLPOOL 54835776b40d3fe45d13ea6505a0b7fda126e3a9859ba134225e5bbc2f53f0f66bf363c2cf4ef0f0572ce19004d52f83cef91d27e61c17a2761fc0c82bd3a81a +DIST geant4.10.03.tar.gz 33143770 SHA256 7da84f3d7ddea31db2130c4769a474a7bd387839cc9c04d3081408a7004cb73b SHA512 61d67e57f1576ab10562f2309995897008b4be1aa60f7e471b4f5efc2d852788d5faf60e64ea7024a4af4035d98c04c0be23df8593a4ed3a510af6b476013c56 WHIRLPOOL af33aff011420c5c96d0227dd5b4e9c183cb977ac80013feb0391992f3815c89e06e850bbb3dca9e93ecca911583f4195331f2a70edfbd6e0585056c14f49d59 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/geant-4.10.03.ebuild b/sci-physics/geant/geant-4.10.03.ebuild new file mode 100644 index 000000000000..f9619c4f95a2 --- /dev/null +++ b/sci-physics/geant/geant-4.10.03.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils versionator + +MY_P=${PN}${PV} +SPV="$(get_version_component_range 1 ${PV}).$(get_version_component_range 2 ${PV}).$(printf %1d $(get_version_component_range 3 ${PV}))" + +DESCRIPTION="Toolkit for simulation of passage of particles through matter" +HOMEPAGE="http://geant4.cern.ch/" +SRC_URI="http://geant4.cern.ch/support/source/${MY_P}.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.3.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-${PV} ) + doc? ( ~app-doc/geant-docs-${PV} )" + +HTML_DOCS=( ReleaseNotes/ReleaseNotes${SPV}.html ) + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + cmake-utils_src_prepare + + if ! use examples; then + sed -i '/install(DIRECTORY examples/,/)/d' CMakeLists.txt || die + fi +} + +src_configure() { + local mycmakeargs=( + -DGEANT4_USE_SYSTEM_CLHEP=ON + -DGEANT4_INSTALL_DATA=OFF + -DUSE_GEANT4_BUILD_MULTITHREADED=$(usex threads) + -DUSE_GEANT4_USE_NETWORKDAWN=$(usex dawn) + -DUSE_GEANT4_USE_GDML=$(usex gdml) + -DUSE_GEANT4_USE_G3TOG4=$(usex geant3) + -DUSE_GEANT4_USE_XM=$(usex motif) + -DUSE_GEANT4_USE_OPENGL_X11=$(usex opengl) + -DUSE_GEANT4_USE_INVENTOR=$(usex inventor) + -DUSE_GEANT4_USE_QT=$(usex qt4) + -DUSE_GEANT4_USE_RAYTRACER_X11=$(usex raytracerx) + -DUSE_GEANT4_USE_NETWORKVRML=$(usex vrml) + -DUSE_GEANT4_USE_SYSTEM_ZLIB=$(usex zlib) + -DBUILD_STATIC_LIBS=$(usex 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 + [[ -f ReleaseNotes/Patch${SPV}-1.txt ]] && DOCS+=( ReleaseNotes/Patch${SPV}-*.txt ) + einstalldocs +} + +pkg_postinst() { + elog "The following scripts are provided for backward compatibility:" + elog "$(ls -1 ${EROOT%/}/usr/share/${PN^}${SPV}.*/geant4make/*sh)" +} |