[Lunar-commits] <moonbase-other> octave: the ld_add/remove _is_ needed & cleanup
v4hn
me at v4hn.de
Thu Oct 18 16:46:35 CEST 2012
commit 16e5d2fcd8898dff13a38ab81f84f4000e55f06b
Author: v4hn <me at v4hn.de>
Date: Thu, 18 Oct 2012 07:46:35 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/16e5d2fcd8898dff13a38ab81f84f4000e55f06b
octave: the ld_add/remove _is_ needed & cleanup
---
science/octave/POST_INSTALL | +3/-0
science/octave/POST_REMOVE | +2/-0
science/octave/PRE_BUILD | +1/-5
3 files changed, 6 insertions(+), 5 deletions(-)
--- /dev/null
+++ b/science/octave/POST_INSTALL
@@ -0,0 +1,3 @@
+# we actually remove /usr/lib/octave/$OLDVERSION
+ld_remove /usr/lib/octave &&
+ld_add /usr/lib/octave/$VERSION
--- /dev/null
+++ b/science/octave/POST_REMOVE
@@ -0,0 +1,2 @@
+# we actually remove /usr/lib/octave/$INSTALLEDVERSION
+ld_remove /usr/lib/octave
--- a/science/octave/PRE_BUILD
+++ b/science/octave/PRE_BUILD
@@ -1,9 +1,5 @@
-if [ -e /usr/bin/g77 ] || [ -e /usr/bin/gfortran ]; then
- message "${PROBLEM_COLOR}gcc has fortran present.${DEFAULT_COLOR}" &&
- true ;
- else
+if [[ ! -x /usr/bin/g77 && ! -x /usr/bin/gfortran ]]; then
message "${PROBLEM_COLOR}g77 is required to install this module. Rebuild gcc with it enabled.${DEFAULT_COLOR}" &&
false
fi &&
default_pre_build
-
More information about the Lunar-commits
mailing list