aboutsummaryrefslogtreecommitdiff
path: root/academic/octave/octave.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/octave/octave.SlackBuild')
-rw-r--r--academic/octave/octave.SlackBuild37
1 files changed, 13 insertions, 24 deletions
diff --git a/academic/octave/octave.SlackBuild b/academic/octave/octave.SlackBuild
index 9224335c1337b..6599b217b3b2f 100644
--- a/academic/octave/octave.SlackBuild
+++ b/academic/octave/octave.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for octave
-# Copyright 2012-2014 Kyle Guinn <elyk03@gmail.com>, USA
+# Copyright 2012-2015 Kyle Guinn <elyk03@gmail.com>, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,15 +23,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=octave
-VERSION=${VERSION:-3.8.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.0.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
+ case "$(uname -m)" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
+ *) ARCH=$(uname -m) ;;
esac
fi
@@ -69,32 +69,20 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
-# Auto-detect OpenBLAS.
-cat $CWD/patches/ax_blas.m4 > m4/ax_blas.m4
-
-# Add a patch from bug 41055. See below.
-patch -p1 < $CWD/patches/missing-info-error.diff
-
-# Don't try to detect Qt5. It's not supported yet.
-# https://savannah.gnu.org/bugs/?40252
-patch -p1 < $CWD/patches/no-qt5.diff
-autoreconf -vif
-
# Avoid rebuilding the documentation by making stamp-vti newer than its
-# dependencies (in particular ./configure, which we just modified above).
+# dependencies (in particular ./configure, which we may need to patch).
# If you live far enough east or west that the date contained in version.texi
# does not match that file's timestamp when printed accounting for your
# timezone, then the docs get rebuilt with your local date.
#
# The TeX environment in Slackware 14.1 fails to build the DVI and PDF
# targets in Octave 3.8.1. Maybe it works with a recent version of TeXLive?
-touch doc/liboctave/stamp-vti
-touch doc/interpreter/stamp-vti
+find . -name stamp-vti -exec touch {} +
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -113,14 +101,15 @@ FFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
+make check
make install-strip DESTDIR=$PKG
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+find $PKG/usr/lib${LIBDIRSUFFIX} -name '*.la' -delete
+
+find $PKG/usr/man -type f -exec gzip -9 {} +
rm -f $PKG/usr/info/dir
-# Don't compress info pages, `octave --force-gui` can't handle them compressed.
-# https://savannah.gnu.org/bugs/?41055
-#gzip -9 $PKG/usr/info/*.info*
+gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION