summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-physics/geant-data/ChangeLog6
-rw-r--r--sci-physics/geant-data/geant-data-4.9.6_p02.ebuild16
2 files changed, 19 insertions, 3 deletions
diff --git a/sci-physics/geant-data/ChangeLog b/sci-physics/geant-data/ChangeLog
index 1ac469384306..d0591daa55c5 100644
--- a/sci-physics/geant-data/ChangeLog
+++ b/sci-physics/geant-data/ChangeLog
@@ -1,6 +1,10 @@
# 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.1 2013/06/10 16:34:20 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-data/ChangeLog,v 1.2 2013/06/10 17:22:59 bicatali Exp $
+
+ 10 Jun 2013; Sébastien Fabbro <bicatali@gentoo.org>
+ geant-data-4.9.6_p02.ebuild:
+ Import the right ebuild this time
*geant-data-4.9.6_p02 (10 Jun 2013)
diff --git a/sci-physics/geant-data/geant-data-4.9.6_p02.ebuild b/sci-physics/geant-data/geant-data-4.9.6_p02.ebuild
index e0b0a6010251..6cdb7d948f65 100644
--- a/sci-physics/geant-data/geant-data-4.9.6_p02.ebuild
+++ b/sci-physics/geant-data/geant-data-4.9.6_p02.ebuild
@@ -1,6 +1,6 @@
# 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.9.6_p02.ebuild,v 1.1 2013/06/10 16:34:20 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/geant-data/geant-data-4.9.6_p02.ebuild,v 1.2 2013/06/10 17:22:59 bicatali Exp $
EAPI=5
@@ -35,12 +35,24 @@ DEPEND="${RDEPEND}"
S="${WORKDIR}"
-src_install() {
+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}
}