diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2019-07-27 08:03:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-07-27 08:04:10 +0700 |
commit | 7bae99d38f74f835b98958429f7c6b487965dc36 (patch) | |
tree | 05c80cda5a1979b5fa5d0d55542b933400e7737c /academic/cadabra2/cadabra2.SlackBuild | |
parent | ec80fc5bb96a1450325c198a1751a350ad724abf (diff) | |
download | slackbuilds-7bae99d38f74f835b98958429f7c6b487965dc36.tar.gz |
academic/cadabra2: Updated for version 2.2.7.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/cadabra2/cadabra2.SlackBuild')
-rw-r--r-- | academic/cadabra2/cadabra2.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/academic/cadabra2/cadabra2.SlackBuild b/academic/cadabra2/cadabra2.SlackBuild index 35083bc221..6d0c356e43 100644 --- a/academic/cadabra2/cadabra2.SlackBuild +++ b/academic/cadabra2/cadabra2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for cadabra2 -# Copyright 2017-2018, Alexander Verbovetsky, Moscow, Russia +# Copyright 2017-2019, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cadabra2 -VERSION=${VERSION:-2.2.0} +VERSION=${VERSION:-2.2.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,12 +69,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# workaround for https://github.com/kpeeters/cadabra2/issues/12 -# (caused by https://github.com/zaphoyd/websocketpp/issues/587) -sed --in-place \ - -e 's/listen(lib::asio::ip::tcp::v6(),/listen(lib::asio::ip::tcp::v4(),/' \ - client_server/websocketpp/websocketpp/transport/asio/endpoint.hpp - sed --in-place \ -e "s/\(DESTINATION lib\)/\1${LIBDIRSUFFIX}/" \ client_server/CMakeLists.txt @@ -91,6 +85,10 @@ 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|' {} \; + mkdir -p build cd build cmake \ @@ -106,6 +104,9 @@ cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |