diff options
author | Benda XU <heroxbd@gentoo.org> | 2013-12-20 06:06:20 +0000 |
---|---|---|
committer | Benda XU <heroxbd@gentoo.org> | 2013-12-20 06:06:20 +0000 |
commit | 0d596422ec0644cb7f28cd22c3c87c85b494e9c8 (patch) | |
tree | 63d72a85dfe22f1a4d41219ee2c8bae624efcbbc /sci-physics/geant-data | |
parent | version bump (diff) | |
download | gentoo-2-0d596422ec0644cb7f28cd22c3c87c85b494e9c8.tar.gz gentoo-2-0d596422ec0644cb7f28cd22c3c87c85b494e9c8.tar.bz2 gentoo-2-0d596422ec0644cb7f28cd22c3c87c85b494e9c8.zip |
version bump
(Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-physics/geant-data')
-rw-r--r-- | sci-physics/geant-data/ChangeLog | 7 | ||||
-rw-r--r-- | sci-physics/geant-data/geant-data-4.10.00.ebuild | 57 |
2 files changed, 63 insertions, 1 deletions
diff --git a/sci-physics/geant-data/ChangeLog b/sci-physics/geant-data/ChangeLog index d0591daa55c5..b9217e28eddc 100644 --- a/sci-physics/geant-data/ChangeLog +++ b/sci-physics/geant-data/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-physics/geant-data # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-data/ChangeLog,v 1.2 2013/06/10 17:22:59 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-data/ChangeLog,v 1.3 2013/12/20 06:06:20 heroxbd Exp $ + +*geant-data-4.10.00 (20 Dec 2013) + + 20 Dec 2013; Benda Xu <heroxbd@gentoo.org> +geant-data-4.10.00.ebuild: + version bump 10 Jun 2013; Sébastien Fabbro <bicatali@gentoo.org> geant-data-4.9.6_p02.ebuild: diff --git a/sci-physics/geant-data/geant-data-4.10.00.ebuild b/sci-physics/geant-data/geant-data-4.10.00.ebuild new file mode 100644 index 000000000000..4c76c0f2c9f2 --- /dev/null +++ b/sci-physics/geant-data/geant-data-4.10.00.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-data/geant-data-4.10.00.ebuild,v 1.1 2013/12/20 06:06:20 heroxbd Exp $ + +EAPI=5 + +DESCRIPTION="Data files for Geant4 physical processes" +HOMEPAGE="http://geant4.cern.ch/" + +GEANT4_DATA=" + G4NDL.4.4 + G4EMLOW.6.35 + G4RadioactiveDecay.4.0 + G4SAIDDATA.1.1 + G4NEUTRONXS.1.4 + G4PII.1.3 + G4PhotonEvaporation.3.0 + G4ABLA.3.0 + RealSurface.1.0 + G4ENSDFSTATE.1.0" + +SRC_COM="http://geant4.cern.ch/support/source" +for d in ${GEANT4_DATA}; do + SRC_URI="${SRC_URI} ${SRC_COM}/${d}.tar.gz" +done + +LICENSE="geant4" +SLOT="4" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND="~sci-physics/geant-${PV}:4" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_unpack() { + # unpack in destination only to avoid copy + return +} + +prout() { + for d in ${GEANT4_DATA}; do + local p=${d/.} + doins -r *${p/G4} + done +} + +src_install() { + sed -n "s,export \(G4.\+DATA=\"\).*\(/share/Geant.\+/data/.\+\) > /dev/null ; pwd\`,\1${EROOT%/}/usr\2,p" \ + "${EROOT}/usr/bin/geant4.sh" > 99geant-data + doenvd 99geant-data + local g4dir=/usr/$(sed -n 's|.*/\(share/Geant4.*/data\).*|\1|p' "${EROOT}/usr/bin/geant4.sh" | tail -n 1) + dodir ${g4dir} + cd "${ED}${g4dir}" + unpack ${A} +} |