aboutsummaryrefslogtreecommitdiff
path: root/academic/sage
diff options
context:
space:
mode:
Diffstat (limited to 'academic/sage')
-rw-r--r--academic/sage/pynac.patch10
-rw-r--r--academic/sage/sage.SlackBuild7
-rw-r--r--academic/sage/sage.info6
3 files changed, 19 insertions, 4 deletions
diff --git a/academic/sage/pynac.patch b/academic/sage/pynac.patch
new file mode 100644
index 0000000000000..c8a0cdc26b4bb
--- /dev/null
+++ b/academic/sage/pynac.patch
@@ -0,0 +1,10 @@
+--- 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.SlackBuild b/academic/sage/sage.SlackBuild
index bdbbd7bfdadca..64c53337d29df 100644
--- a/academic/sage/sage.SlackBuild
+++ b/academic/sage/sage.SlackBuild
@@ -5,7 +5,7 @@
# Currently maintained by Willy Sudiarto Raharjo <willysr@slackbuilds.org>
PRGNAM=sage
-VERSION=${VERSION:-6.1}
+VERSION=${VERSION:-6.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,6 +41,10 @@ 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
+
make
# test all examples in the documentation (over 93,000 line of input)
@@ -62,6 +66,7 @@ if [ "$OPTIONALSPKG" != "no" ]; then
fi
cp -av * $PKG/$SAGEROOT
+rm -rf $PKG/$SAGEROOT/{upstream,logs}
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/academic/sage/sage.info b/academic/sage/sage.info
index a3841ae1121da..9df2e6daeebe8 100644
--- a/academic/sage/sage.info
+++ b/academic/sage/sage.info
@@ -1,8 +1,8 @@
PRGNAM="sage"
-VERSION="6.1"
+VERSION="6.3"
HOMEPAGE="http://www.sagemath.org"
-DOWNLOAD="http://www.sagemath.org/src-old/sage-6.1.tar.gz"
-MD5SUM="75130374fcdb9395955db81f1ed28422"
+DOWNLOAD="http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/sage-6.3.tar.gz"
+MD5SUM="668f080be70ffea8d67592ca00d161eb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""