summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2020-06-13 00:51:30 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-14 17:45:42 +0700
commitbf01aba0c105e4f0db8e0bc1b281ad02a6e18b62 (patch)
tree003ed7da5edbc5df88876cac820ea8e3085cbca0
parent21a1c424d8f4fcaf4ffd3bf108a8a0b436506854 (diff)
downloadslackbuilds-bf01aba0c105e4f0db8e0bc1b281ad02a6e18b62.tar.gz
academic/cadabra2: Updated for version 2.3.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/cadabra2/README5
-rw-r--r--academic/cadabra2/cadabra2.SlackBuild9
-rw-r--r--academic/cadabra2/cadabra2.info6
3 files changed, 12 insertions, 8 deletions
diff --git a/academic/cadabra2/README b/academic/cadabra2/README
index 5e8287722a..0533ffcdd3 100644
--- a/academic/cadabra2/README
+++ b/academic/cadabra2/README
@@ -28,5 +28,6 @@ command-line and a graphical interface are available.
* Programmable using Python.
-Mathematica (not on SBo) is an optional dependency, it will be
-autodetected at build time.
+If this SlackBuild run on a system which has Mathematica (not on SBo)
+installed, the support of Mathematica can be enabled by setting the
+environment variable MMA=ON (default: MMA=OFF).
diff --git a/academic/cadabra2/cadabra2.SlackBuild b/academic/cadabra2/cadabra2.SlackBuild
index 53b6152b13..fbefa6edce 100644
--- a/academic/cadabra2/cadabra2.SlackBuild
+++ b/academic/cadabra2/cadabra2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cadabra2
-# Copyright 2017-2019, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2017-2020, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,9 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cadabra2
-VERSION=${VERSION:-2.2.8}
+VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+MMA=${MMA:-OFF}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -95,6 +96,7 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_MATHEMATICA=${MMA^^} \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
@@ -108,7 +110,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a doc examples README.rst $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a contrib doc examples paper CONTRIBUTING.md JUPYTER.rst README.rst \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/academic/cadabra2/cadabra2.info b/academic/cadabra2/cadabra2.info
index eba8bf8144..0f59adf007 100644
--- a/academic/cadabra2/cadabra2.info
+++ b/academic/cadabra2/cadabra2.info
@@ -1,8 +1,8 @@
PRGNAM="cadabra2"
-VERSION="2.2.8"
+VERSION="2.3.0"
HOMEPAGE="https://cadabra.science"
-DOWNLOAD="https://downloads.sourceforge.net/slackbuildsdirectlinks/cadabra2/cadabra2-2.2.8.tar.gz"
-MD5SUM="a4c91eca89e75a079038e9dae3c5d00e"
+DOWNLOAD="https://downloads.sourceforge.net/slackbuildsdirectlinks/cadabra2/cadabra2-2.3.0.tar.gz"
+MD5SUM="09762b9ececc86c5f6c52a9e9ab2292b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-matplotlib python3-gmpy2 python3-sympy"