aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--academic/cadabra2/cadabra2.SlackBuild24
-rw-r--r--academic/cadabra2/cadabra2.info8
2 files changed, 9 insertions, 23 deletions
diff --git a/academic/cadabra2/cadabra2.SlackBuild b/academic/cadabra2/cadabra2.SlackBuild
index 9a4d96a6dd58..f658e23ccc00 100644
--- a/academic/cadabra2/cadabra2.SlackBuild
+++ b/academic/cadabra2/cadabra2.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for cadabra2
-# Copyright 2017-2021, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2017-2022, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cadabra2
-VERSION=${VERSION:-2.3.6.3}
+VERSION=${VERSION:-2.3.9.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -81,34 +78,23 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed --in-place \
- -e "s/\(DESTINATION lib\)/\1${LIBDIRSUFFIX}/" \
- client_server/CMakeLists.txt
-
-sed --in-place \
- -e "s/\(CMAKE_INSTALL_PREFIX}\/lib\)/\1${LIBDIRSUFFIX}/" \
- CMakeLists.txt
+ -e "s|/lib/python|/lib${LIBDIRSUFFIX}/python|" \
+ CMakeLists.txt core/cadabra2-cli.cc client_server/Server.cc
sed --in-place \
-e '/^execute_process(COMMAND texhash)$/d' \
frontend/latex/install.cmake
-sed --in-place \
- -e '/^install(CODE\s\+"execute_process(COMMAND \(touch\|gtk-update-icon-cache.*\|chmod go+r\) ${ICON_PREFIX}\/share\/icons\/hicolor\(\|\/icon-theme\.cache\))")$/d' \
- frontend/gtkmm/CMakeLists.txt
-
find ./ -type f -name '*.py' -exec \
- sed -i -e 's|#!/usr/bin/python\>|#!/usr/bin/python3|' \
- -e 's|#!/usr/bin/env python\>|#!/usr/bin/env python3|' {} \;
+ sed -i -e 's|#!/usr/bin/env python\>|#!/usr/bin/env python3|' {} \;
mkdir -p build
cd build
- export "PATH=/opt/cmake-202x/bin:$PATH"
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSQLITE3_INCLUDE_DIR=/usr/include \
- -DENABLE_SYSTEM_JSONCPP=ON \
-DENABLE_MATHEMATICA=${MMA^^} \
-DCMAKE_BUILD_TYPE=Release ..
make
diff --git a/academic/cadabra2/cadabra2.info b/academic/cadabra2/cadabra2.info
index 99e6eff0c198..85a4e20cf053 100644
--- a/academic/cadabra2/cadabra2.info
+++ b/academic/cadabra2/cadabra2.info
@@ -1,10 +1,10 @@
PRGNAM="cadabra2"
-VERSION="2.3.6.3"
+VERSION="2.3.9.3"
HOMEPAGE="https://cadabra.science"
-DOWNLOAD="https://downloads.sourceforge.net/slackbuildsdirectlinks/cadabra2/cadabra2-2.3.6.3.tar.gz"
-MD5SUM="9e792260d2b6dea2bb7c5d8a0a627662"
+DOWNLOAD="https://github.com/kpeeters/cadabra2/archive/2.3.9.3/cadabra2-2.3.9.3.tar.gz"
+MD5SUM="ea8a5e02cd8a0783708c16c21f5868c2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-matplotlib python3-gmpy2 python3-sympy jsoncpp"
+REQUIRES="python3-matplotlib python-gmpy2 python3-sympy"
MAINTAINER="Alexander Verbovetsky"
EMAIL="alik@ejik.org"