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>
This commit is contained in:
Alexander Verbovetsky 2020-06-13 00:51:30 +01:00 committed by Willy Sudiarto Raharjo
parent 21a1c424d8
commit bf01aba0c1
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 12 additions and 8 deletions

View file

@ -28,5 +28,6 @@ command-line and a graphical interface are available.
* Programmable using Python. * Programmable using Python.
Mathematica (not on SBo) is an optional dependency, it will be If this SlackBuild run on a system which has Mathematica (not on SBo)
autodetected at build time. installed, the support of Mathematica can be enabled by setting the
environment variable MMA=ON (default: MMA=OFF).

View file

@ -2,7 +2,7 @@
# Slackware build script for cadabra2 # Slackware build script for cadabra2
# Copyright 2017-2019, Alexander Verbovetsky, Moscow, Russia # Copyright 2017-2020, Alexander Verbovetsky, Moscow, Russia
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -23,9 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cadabra2 PRGNAM=cadabra2
VERSION=${VERSION:-2.2.8} VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
MMA=${MMA:-OFF}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
@ -95,6 +96,7 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_MATHEMATICA=${MMA^^} \
-DCMAKE_BUILD_TYPE=Release .. -DCMAKE_BUILD_TYPE=Release ..
make make
make install DESTDIR=$PKG 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 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 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install

View file

@ -1,8 +1,8 @@
PRGNAM="cadabra2" PRGNAM="cadabra2"
VERSION="2.2.8" VERSION="2.3.0"
HOMEPAGE="https://cadabra.science" HOMEPAGE="https://cadabra.science"
DOWNLOAD="https://downloads.sourceforge.net/slackbuildsdirectlinks/cadabra2/cadabra2-2.2.8.tar.gz" DOWNLOAD="https://downloads.sourceforge.net/slackbuildsdirectlinks/cadabra2/cadabra2-2.3.0.tar.gz"
MD5SUM="a4c91eca89e75a079038e9dae3c5d00e" MD5SUM="09762b9ececc86c5f6c52a9e9ab2292b"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="python3-matplotlib python3-gmpy2 python3-sympy" REQUIRES="python3-matplotlib python3-gmpy2 python3-sympy"