academic/scidavis: Updated for version 2.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6714ad114b
commit
7e95cc75f5
|
@ -10,6 +10,6 @@ SciDAVis started as a fork of QtiPlot.
|
||||||
Optional dependencies, after installation, are scipy and pygsl (to
|
Optional dependencies, after installation, are scipy and pygsl (to
|
||||||
improve python scripting).
|
improve python scripting).
|
||||||
|
|
||||||
Since version 1.23 it is possible to build/use SciDAVis with Python 3
|
Note:
|
||||||
- just use PYTHON3=yes before executing scidavis.SlackBuild. Default is
|
I have a #TODO in scidavis.SlackBuild: to avoid using qwtplot3d (qt5
|
||||||
to use python 2 (PYTHON3=no).
|
version) installed in the system
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Slackware build script for SciDAVis
|
# Slackware build script for SciDAVis
|
||||||
# Based on the Slackware 14.2 SlackBuild
|
# Based on the Slackware 14.2 SlackBuild
|
||||||
#
|
#
|
||||||
# Copyright 2017-2019, Fellype do Nascimento, Campinas - Brazil
|
# Copyright 2017-2021, Fellype do Nascimento, Guaratingueta - Brazil
|
||||||
# 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
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=scidavis
|
PRGNAM=scidavis
|
||||||
VERSION=${VERSION:-1.26}
|
VERSION=${VERSION:-2.4.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -65,32 +65,18 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Correct the manpage path
|
export PYTHON=python3
|
||||||
sed -i -e 's#share/man#man#' scidavis/scidavis.pro
|
|
||||||
|
|
||||||
# Since version 1.23 it is possible to build/use SciDAVis with Python 3 - just use
|
mkdir build && cd build
|
||||||
# PYTHON3=yes before execute scidavis.SlackBuild. Default is to use python 2 (PYTHON3=no).
|
cmake .. -DSEARCH_FOR_UPDATES=OFF \
|
||||||
# *** It does not build using Python 3 in Slackware 14.2 or previous because PyQt was not built with
|
-DDOWNLOAD_LINKS=OFF \
|
||||||
# Python 3 support. I'm adding this here because I know it will be useful in the future and for the
|
-DORIGIN_IMPORT=ON \
|
||||||
# tests currently done in -current
|
-DSCRIPTING_PYTHON=ON \
|
||||||
if [ "${PYTHON3:-no}" = "yes" ]; then
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
export PYTHON=python3
|
..
|
||||||
else
|
|
||||||
export PYTHON=python2
|
|
||||||
fi
|
|
||||||
|
|
||||||
## For some unknown reason, to build in Slackware we need to run qmake twice in order to get the app icons working properly
|
|
||||||
## See https://sourceforge.net/p/scidavis/scidavis-bugs/259/
|
|
||||||
qmake
|
|
||||||
qmake \
|
|
||||||
CONFIG+="liborigin python" \
|
|
||||||
PRESET=linux_package \
|
|
||||||
QMAKE_CFLAGS+="$SLKCFLAGS" \
|
|
||||||
QMAKE_CXXFLAGS+="$SLKCFLAGS" \
|
|
||||||
$SPEC
|
|
||||||
|
|
||||||
make
|
make
|
||||||
make install INSTALL_ROOT=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
@ -99,6 +85,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
|
||||||
mkdir -p $PKG/usr/share/scidavis/translations
|
mkdir -p $PKG/usr/share/scidavis/translations
|
||||||
install -m 0644 scidavis/translations/*.qm $PKG/usr/share/scidavis/translations
|
install -m 0644 scidavis/translations/*.qm $PKG/usr/share/scidavis/translations
|
||||||
|
|
||||||
|
# Move manpage to a more appropriated dir
|
||||||
|
mkdir -p $PKG/usr/man/man1/
|
||||||
|
mv $PKG/usr/share/man/man1/scidavis.1 $PKG/usr/man/man1/scidavis.1
|
||||||
|
rm -rf $PKG/usr/share/man/
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
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
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="scidavis"
|
PRGNAM="scidavis"
|
||||||
VERSION="1.26"
|
VERSION="2.4.0"
|
||||||
HOMEPAGE="http://scidavis.sourceforge.net/"
|
HOMEPAGE="http://scidavis.sourceforge.net/"
|
||||||
DOWNLOAD="https://ufpr.dl.sourceforge.net/project/scidavis/SciDAVis/1.26/scidavis-1.26.tar.gz"
|
DOWNLOAD="https://ufpr.dl.sourceforge.net/project/scidavis/SciDAVis/2/2.4/scidavis-2.4.0.tar.gz"
|
||||||
MD5SUM="a3e6158c9607dbbaab193941836259bf"
|
MD5SUM="8846e90fb8b75d28c76ba9af2523c189"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="muParser"
|
REQUIRES="muParser qwt5 qwtplot3d"
|
||||||
MAINTAINER="Fellype do Nascimento"
|
MAINTAINER="Fellype do Nascimento"
|
||||||
EMAIL="fellype(at)gmail.com"
|
EMAIL="fellype (at) gmail (dot) com"
|
||||||
|
|
Loading…
Reference in New Issue