--- eficasQt.orig 2014-04-17 22:44:45.000000000 +0200 +++ eficasQt 2014-04-17 22:49:47.000000000 +0200 @@ -18,21 +18,19 @@ # ============================================================================== set_prefix() { - local this=`readlink -n -f $1` - eficasdir=`dirname $this` - local public=`dirname $eficasdir` - prefix=`dirname $public` + eficasdir=%%EFICASDIR%% + prefix=%%PREFIX%% } set_prefix $0 -export ASTER_ROOT=$prefix +# Work-around for the py-numpy breakage - see PR ports/188114 +FIXNUMPY=%%GCC_RUNTIME%% + +export ASTER_ROOT=%%LOCALBASE%%/aster # set environment -if [ -f /etc/codeaster/profile.sh ]; then - . /etc/codeaster/profile.sh -fi -if [ -f $prefix/etc/codeaster/profile.sh ]; then - . $prefix/etc/codeaster/profile.sh +if [ -f $prefix/aster/etc/codeaster/profile.sh ]; then + . $prefix/aster/etc/codeaster/profile.sh fi # start Python interpreter @@ -44,5 +42,5 @@ PYTHONPATH=$PYTHONPATH:$EFICAS_ROOT/UiQT4 PYTHONPATH=$PYTHONPATH:$EFICAS_ROOT/Editeur -$PYTHONEXECUTABLE $eficasdir/Aster/qtEficas_aster.py $* +LD_LIBRARY_PATH=$FIXNUMPY $PYTHONEXECUTABLE $eficasdir/Aster/qtEficas_aster.pyo $*