diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2016-01-12 17:57:36 -0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2016-01-12 17:57:36 -0200 |
commit | 91bec0ebfda9039b0065ae38d72f86f0c8999f93 (patch) | |
tree | b324bfb67583db1d1796112dc7b98adf05419046 /sci-physics/geant/geant-4.10.01_p02.ebuild | |
parent | sci-physics/geant: version bump to 4.10.02 (diff) | |
download | gentoo-91bec0ebfda9039b0065ae38d72f86f0c8999f93.tar.gz gentoo-91bec0ebfda9039b0065ae38d72f86f0c8999f93.tar.bz2 gentoo-91bec0ebfda9039b0065ae38d72f86f0c8999f93.zip |
sci-physics/geant: bump version 4.10.01 to 4.10.01_p02
Package-Manager: portage-2.2.26
Diffstat (limited to 'sci-physics/geant/geant-4.10.01_p02.ebuild')
-rw-r--r-- | sci-physics/geant/geant-4.10.01_p02.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/sci-physics/geant/geant-4.10.01_p02.ebuild b/sci-physics/geant/geant-4.10.01_p02.ebuild new file mode 100644 index 000000000000..6725fb145aff --- /dev/null +++ b/sci-physics/geant/geant-4.10.01_p02.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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)" +} |