summaryrefslogtreecommitdiff
path: root/academic/sage
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-09 19:34:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-17 22:23:57 +0700
commita58f639ff289abf5f62dd170826caa2949606902 (patch)
tree512b63a06c396fecfc48618c1678b0164f99923e /academic/sage
parentdc1daa2e5402342c705dceb85edcf73b73649146 (diff)
downloadslackbuilds-a58f639ff289abf5f62dd170826caa2949606902.tar.gz
academic/sage: Updated for version 7.5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/sage')
-rw-r--r--academic/sage/mpir-sed-fix.patch40
-rw-r--r--academic/sage/sage.SlackBuild9
-rw-r--r--academic/sage/sage.info6
3 files changed, 50 insertions, 5 deletions
diff --git a/academic/sage/mpir-sed-fix.patch b/academic/sage/mpir-sed-fix.patch
new file mode 100644
index 0000000000..01a6f135aa
--- /dev/null
+++ b/academic/sage/mpir-sed-fix.patch
@@ -0,0 +1,40 @@
+From fdb590023f7ca4b2e881a2e9573718e7ed180f03 Mon Sep 17 00:00:00 2001
+From: Tommy Hofmann <thofma@gmail.com>
+Date: Fri, 13 Jan 2017 08:30:56 +0100
+Subject: [PATCH] Adjust to new sed version
+
+Change [:space] to [[:space]].
+sed requires character classes to be inside square brackets.
+As of sed 4.3, missing the brackets raises an error.
+---
+ configure | 2 +-
+ configure.ac | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure b/configure
+index 4d010b7..9faebcd 100755
+--- a/configure
++++ b/configure
+@@ -24301,7 +24301,7 @@ esac
+ sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
+ sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file ;
+ sed -n 's/^;[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file ;
+- sed -n 's/[^G]*GLOBAL_FUNC[:space:]*\(.*\)/\1/p' $tmp_file ;
++ sed -n 's/[^G]*GLOBAL_FUNC[[:space:]]*\(.*\)/\1/p' $tmp_file ;
+ `
+ for gmp_tmp in $gmp_ep; do
+ cat >>confdefs.h <<_ACEOF
+diff --git a/configure.ac b/configure.ac
+index bde9f09..170b9e4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2595,7 +2595,7 @@ for tmp_fn in $gmp_mpn_functions; do
+ sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
+ sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file ;
+ sed -n 's/^;[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file ;
+- sed -n 's/[^G]*GLOBAL_FUNC[:space:]*\(.*\)/\1/p' $tmp_file ;
++ sed -n 's/[^G]*GLOBAL_FUNC[[:space:]]*\(.*\)/\1/p' $tmp_file ;
+ `]
+ for gmp_tmp in $gmp_ep; do
+ AC_DEFINE_UNQUOTED(HAVE_NATIVE_$gmp_tmp)
+
diff --git a/academic/sage/sage.SlackBuild b/academic/sage/sage.SlackBuild
index 000e190b1b..2fe601f8ac 100644
--- a/academic/sage/sage.SlackBuild
+++ b/academic/sage/sage.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=sage
-VERSION=${VERSION:-7.2}
+VERSION=${VERSION:-7.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,7 +67,12 @@ patch -p0 < $CWD/pynac.patch
patch -p1 < $CWD/sage-build-root.patch
# Thanks to Philip Lacroix <slackph@posteo.de>
-rm build/pkgs/python2/patches/sys_path_security.patch
+rm build/pkgs/python2/patches/sys_path_security-issue_16202.patch
+
+# Fix mpir sed issue in -current but works as well for 14.2
+# https://github.com/wbhart/mpir/commit/fdb590023f7ca4b2e881a2e9573718e7ed180f03.patch
+mkdir $TMP/$PRGNAM-$VERSION/build/pkgs/mpir/patches
+cp $CWD/mpir-sed-fix.patch $TMP/$PRGNAM-$VERSION/build/pkgs/mpir/patches
make
diff --git a/academic/sage/sage.info b/academic/sage/sage.info
index 3ca0311d53..b76b89fcc5 100644
--- a/academic/sage/sage.info
+++ b/academic/sage/sage.info
@@ -1,8 +1,8 @@
PRGNAM="sage"
-VERSION="7.2"
+VERSION="7.5.1"
HOMEPAGE="http://www.sagemath.org"
-DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-7.2.tar.gz"
-MD5SUM="d0c5e81683dc79a7654206e57e6e727a"
+DOWNLOAD="http://mirrors.mit.edu/sage/src/sage-7.5.1.tar.gz"
+MD5SUM="7d26a9f7cb354de22dd9f968d7181b14"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""