summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorChristopher L Duston <christopher.duston@protonmail.com>2020-06-04 06:14:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-04 06:14:07 +0700
commit4f6bf9a9385316a4549693d4721041b47346f8c7 (patch)
tree270560617d360f605be18270a9a3d6307d3d6936 /academic
parentfb4f30bc52c0d33a7748da64d4cc81d4a3508152 (diff)
downloadslackbuilds-4f6bf9a9385316a4549693d4721041b47346f8c7.tar.gz
academic/sage: Updated for version 9.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/sage/pynac.patch10
-rw-r--r--academic/sage/sage-build-root.patch24
-rw-r--r--academic/sage/sage.SlackBuild17
-rw-r--r--academic/sage/sage.info6
4 files changed, 9 insertions, 48 deletions
diff --git a/academic/sage/pynac.patch b/academic/sage/pynac.patch
deleted file mode 100644
index c8a0cdc26b..0000000000
--- a/academic/sage/pynac.patch
+++ /dev/null
@@ -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"
diff --git a/academic/sage/sage-build-root.patch b/academic/sage/sage-build-root.patch
deleted file mode 100644
index 0daaca9c33..0000000000
--- a/academic/sage/sage-build-root.patch
+++ /dev/null
@@ -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 ||
diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild
index afa2702101..6cb41edaa4 100644
--- a/academic/sage/sage.SlackBuild
+++ b/academic/sage/sage.SlackBuild
@@ -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
diff --git a/academic/sage/sage.info b/academic/sage/sage.info
index c88eea8153..641da30724 100644
--- a/academic/sage/sage.info
+++ b/academic/sage/sage.info
@@ -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=""