commit:     894067c2f8dd681a3a1a7219ee90f70cdf4e0f33
Author:     Horea Christian <h.chr <AT> mail <DOT> ru>
AuthorDate: Sat Mar 28 21:31:00 2015 +0000
Commit:     Francois Bissey <f.r.bissey <AT> massey <DOT> ac <DOT> nz>
CommitDate: Sat Mar 28 21:31:00 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=894067c2

ported changes from 5.0.6 regarding FSLDIR

Package-Manager: portage-2.2.18

 sci-biology/fsl/ChangeLog        |  3 +++
 sci-biology/fsl/fsl-5.0.8.ebuild | 14 +++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/sci-biology/fsl/ChangeLog b/sci-biology/fsl/ChangeLog
index 19478e2..e6857b2 100644
--- a/sci-biology/fsl/ChangeLog
+++ b/sci-biology/fsl/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  28 Mar 2015;  <[email protected]> fsl-5.0.8.ebuild:
+  ported changes from 5.0.6 regarding FSLDIR
+
   28 Mar 2015;  <[email protected]> files/fsl-5.0.4-headers.patch:
   hunk implemented by upstream
 

diff --git a/sci-biology/fsl/fsl-5.0.8.ebuild b/sci-biology/fsl/fsl-5.0.8.ebuild
index e185863..c2f8a10 100644
--- a/sci-biology/fsl/fsl-5.0.8.ebuild
+++ b/sci-biology/fsl/fsl-5.0.8.ebuild
@@ -83,6 +83,8 @@ src_prepare(){
 
        sed -i "s:\'\${FSLDIR}\'/doc:${EPREFIX}/usr/share/fsl/doc:g" \
                $(grep -rl "\'\${FSLDIR}\'/doc" src/*)
+
+       sed -i -e "s:\$FSLDIR/etc:/etc:g" `grep -rlI \$FSLDIR/etc *`
 }
 
 src_compile() {
@@ -98,6 +100,12 @@ src_compile() {
 }
 
 src_install() {
+       sed -i "s:\${FSLDIR}/tcl:/usr/libexec/fsl:g" \
+               $(grep -lI "\${FSLDIR}/tcl" bin/*) \
+               $(grep -l "\${FSLDIR}/tcl"  tcl/*)
+       sed -i "s:\$FSLDIR/tcl:/usr/libexec/fsl:g" \
+               $(grep -l "\$FSLDIR/tcl" tcl/*)
+
        exeinto /usr/bin
        doexe bin/*
 
@@ -105,9 +113,13 @@ src_install() {
        doins -r doc data refdoc
 
        insinto /usr/libexec/fsl
-       doins -r tcl
+       doins -r tcl/*
+
+       insinto /etc/fslconf
+       doins etc/fslconf/fsl.sh
 
        insinto /etc
+       doins etc/fslversion
        doins -r etc/default_flobs.flobs etc/flirtsch etc/js etc/luts
        #if use matlab; then
        #       doins etc/matlab

Reply via email to