From bf01aba0c105e4f0db8e0bc1b281ad02a6e18b62 Mon Sep 17 00:00:00 2001 From: Alexander Verbovetsky Date: Sat, 13 Jun 2020 00:51:30 +0100 Subject: [PATCH] academic/cadabra2: Updated for version 2.3.0. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- academic/cadabra2/README | 5 +++-- academic/cadabra2/cadabra2.SlackBuild | 9 ++++++--- academic/cadabra2/cadabra2.info | 6 +++--- 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"