diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2014-04-15 15:31:42 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2014-04-15 15:31:42 +0000 |
commit | 238a0e3b6f5eb5f6dcc87ea0c364791baaf3523a (patch) | |
tree | 7ee958ea5722ae22c452b0f3c2d42c14d67927ea /sci-physics | |
parent | Fixed minimum cfitsio version, thanks Mikko Laine bug #50736 (diff) | |
download | gentoo-2-238a0e3b6f5eb5f6dcc87ea0c364791baaf3523a.tar.gz gentoo-2-238a0e3b6f5eb5f6dcc87ea0c364791baaf3523a.tar.bz2 gentoo-2-238a0e3b6f5eb5f6dcc87ea0c364791baaf3523a.zip |
Version bump, added threads, thanks to Luís Augusto Perles, bug #507330
(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/geant/ChangeLog | 7 | ||||
-rw-r--r-- | sci-physics/geant/geant-4.10.00_p01.ebuild | 86 |
2 files changed, 92 insertions, 1 deletions
diff --git a/sci-physics/geant/ChangeLog b/sci-physics/geant/ChangeLog index 4f6cc11e91e7..4bd45f5a01d2 100644 --- a/sci-physics/geant/ChangeLog +++ b/sci-physics/geant/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-physics/geant # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/ChangeLog,v 1.78 2014/01/06 02:12:06 heroxbd Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/ChangeLog,v 1.79 2014/04/15 15:31:42 bicatali Exp $ + +*geant-4.10.00_p01 (15 Apr 2014) + + 15 Apr 2014; Sébastien Fabbro <bicatali@gentoo.org> +geant-4.10.00_p01.ebuild: + Version bump, added threads, thanks to Luís Augusto Perles, bug #507330 06 Jan 2014; Benda Xu <heroxbd@gentoo.org> +files/geant-4.10.0-TrackingNavigator.patch, geant-4.10.00.ebuild: 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..b8c0b6b26274 --- /dev/null +++ b/sci-physics/geant/geant-4.10.00_p01.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant/geant-4.10.00_p01.ebuild,v 1.1 2014/04/15 15:31:42 bicatali Exp $ + +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 + 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)" +} |