1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Data files for Geant4 physical processes"
8 HOMEPAGE="http://geant4.cern.ch/"
13 G4PhotonEvaporation.3.2
14 G4RadioactiveDecay.4.3
23 SRC_COM="http://geant4.cern.ch/support/source"
24 for d in ${GEANT4_DATA}; do
25 SRC_URI="${SRC_URI} ${SRC_COM}/${d}.tar.gz"
30 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
33 RDEPEND=">=sci-physics/geant-${PV}:4"
39 # unpack in destination only to avoid copy
44 sed -n "s,export \(G4.\+DATA=\"\).*\(/share/Geant.\+/data/.\+\) > /dev/null ; pwd\`,\1${EROOT%/}/usr\2,p" \
45 "${EROOT}/usr/bin/geant4.sh" > 99geant-data
47 local g4dir=/usr/$(sed -n 's|.*/\(share/Geant4.*/data\).*|\1|p' "${EROOT}/usr/bin/geant4.sh" | tail -n 1)