academic/sage: Fix post-installation path.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christopher L Duston 2020-05-09 07:45:33 +07:00 committed by Willy Sudiarto Raharjo
parent 03b7991591
commit ab75493883
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -45,8 +45,12 @@ LIBDIRSUFFIX=""
fi
####
# SAGE_ROOT/bin/sage points to the build directory, which can't be
# in the /tmp folder if we want it to remain after installation.
# So we'll put it in /var/tmp. Maybe just sticking it in /usr is better.
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
TMP=${TMP:-/var/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@ -79,14 +83,9 @@ patch -p1 < $CWD/sage-build-root.patch
# Thanks to Philip Lacroix <slackph@posteo.de>
rm build/pkgs/python2/patches/sys_path_security-issue_16202.patch
# Test Fix - this did not work.
# sed -i "s|/lib|/lib${LIBDIRSUFFIX}|" build/pkgs/iml/spkg-install
# The docs do not build correctly, so instead of make, do the following:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
make build
make build
# test all examples in the documentation (over 93,000 line of input)
[ "${TEST:-no}" = "yes" ] && make test