1 # Copyright 1999-2015 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 G4RadioactiveDecay.4.2
17 G4PhotonEvaporation.3.1
22 SRC_COM="http://geant4.cern.ch/support/source"
23 for d in ${GEANT4_DATA}; do
24 SRC_URI="${SRC_URI} ${SRC_COM}/${d}.tar.gz"
29 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
32 RDEPEND=">=sci-physics/geant-${PV}:4"
38 # unpack in destination only to avoid copy
43 for d in ${GEANT4_DATA}; do
50 sed -n "s,export \(G4.\+DATA=\"\).*\(/share/Geant.\+/data/.\+\) > /dev/null ; pwd\`,\1${EROOT%/}/usr\2,p" \
51 "${EROOT}/usr/bin/geant4.sh" > 99geant-data
53 local g4dir=/usr/$(sed -n 's|.*/\(share/Geant4.*/data\).*|\1|p' "${EROOT}/usr/bin/geant4.sh" | tail -n 1)