academic/sage: Updated for version 9.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christopher L Duston 2020-06-04 06:14:07 +07:00 committed by Willy Sudiarto Raharjo
parent fb4f30bc52
commit 4f6bf9a938
4 changed files with 9 additions and 48 deletions

View file

@ -1,10 +0,0 @@
--- build/pkgs/pynac/spkg-install.orig 2014-08-11 20:52:14.220516400 +0700
+++ build/pkgs/pynac/spkg-install 2014-08-11 20:52:27.906551659 +0700
@@ -31,6 +31,7 @@
build_pynac()
{
+ chmod -R g-w ${PYNACDIR}
cd ${PYNACDIR}
PKG_CONFIG_PATH=${SAGE_LOCAL}/lib/pkgconfig; export PKG_CONFIG_PATH
./configure --disable-static --prefix=${SAGE_LOCAL} --libdir="$SAGE_LOCAL/lib"

View file

@ -1,24 +0,0 @@
--- sage-6.10/configure.old 2015-12-19 08:15:37.404497471 +0700
+++ sage-6.10/configure 2015-12-19 08:15:55.691461292 +0700
@@ -2965,21 +2965,6 @@
#---------------------------------------------------------
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root user" >&5
-$as_echo_n "checking for root user... " >&6; }
-
-uid=`id -u`
-if test "x$uid" == "x0"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
- as_fn_error $? "You cannot build Sage as root, switch to an unpriviledged user" "$LINENO" 5
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-
-fi;
-
-
# Check whether we are on a supported platform
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||

View file

@ -3,6 +3,8 @@
# Slackware build script for sage
# Written by Jack Maddox <jack@auburn.edu>
# Currently maintained by Christopher L Duston <christopher.duston@protonmail.com>
# Last update June 2020.
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sage
VERSION=${VERSION:-9.0}
VERSION=${VERSION:-9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -74,18 +76,11 @@ find -L . \
mkdir -p $PKG/$SAGEROOT $PKG/usr/share/{applications,pixmaps} \
$PKG/usr/doc/$PRGNAM-$VERSION $PKG/etc/profile.d
# Added freeBSD patch to build as root, thanks to Heinz for pointing it
patch -p0 < $CWD/pynac.patch
# Added more patch to build as root.
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
# The docs do not build correctly, so instead of make, do the following:
LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \
make build
./configure \
--enable-build-as-root
make build
# test all examples in the documentation (over 93,000 line of input)
[ "${TEST:-no}" = "yes" ] && make test

View file

@ -1,8 +1,8 @@
PRGNAM="sage"
VERSION="9.0"
VERSION="9.1"
HOMEPAGE="http://www.sagemath.org"
DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-9.0.tar.gz"
MD5SUM="b864b8c19d376193e70eb2c8084bbd50"
DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-9.1.tar.gz"
MD5SUM="35e0ecbc6cc2ae4e1a68479598e70b7a "
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""