summaryrefslogtreecommitdiff
path: root/academic/scidavis/scidavis.SlackBuild
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype(at)gmail.com>2017-08-10 18:55:10 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-12 06:57:56 +0700
commit027eebfddc31ca6bfbe8e6bfa13b5bed3f5c2ddd (patch)
treebcac88d01a3ee2d5f1ecd787171d6c55bd22af83 /academic/scidavis/scidavis.SlackBuild
parent6ee20c188f4888a0486a52abb65b5d131e09edf6 (diff)
downloadslackbuilds-027eebfddc31ca6bfbe8e6bfa13b5bed3f5c2ddd.tar.gz
academic/scidavis: Updated for version 1.21.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'academic/scidavis/scidavis.SlackBuild')
-rw-r--r--academic/scidavis/scidavis.SlackBuild18
1 files changed, 5 insertions, 13 deletions
diff --git a/academic/scidavis/scidavis.SlackBuild b/academic/scidavis/scidavis.SlackBuild
index ae0ddc94c9..31454c03dd 100644
--- a/academic/scidavis/scidavis.SlackBuild
+++ b/academic/scidavis/scidavis.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=scidavis
-VERSION=${VERSION:-1.19}
+VERSION=${VERSION:-1.21}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -65,16 +65,11 @@ 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 {} \;
+sed -i -e 's#share/man/man1/scidavis.1#man/man1#' scidavis/scidavis.pro
+
# Correction needed in order to find qwtplot3d in its default path
grep -rl "qwtplot3d/" libscidavis/src/ | xargs sed -i "s:<qwtplot3d/:<:"
-## Applying some upstream patches:
-## 1: Fix translations - see https://sourceforge.net/p/scidavis/scidavis-bugs/301/
-patch -p1 < $CWD/fix_translations.patch scidavis/basic.pri
-
-## 2: Fix FFT generated from graphs - see https://sourceforge.net/p/scidavis/scidavis-bugs/305/
-patch -p1 < $CWD/Fix_FFT_generated_from_graphs.patch libscidavis/src/FFT.cpp
-
## 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
@@ -95,11 +90,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/share/scidavis/translations
install -m 0644 scidavis/translations/*.qm $PKG/usr/share/scidavis/translations
-mkdir -p $PKG/usr/man/man1
-docbook2man man/manpage.sgml -o $PKG/usr/man/man1/
-gzip -9 $PKG/usr/man/man1/*.1
-ln -sf SciDAVis.1.gz $PKG/usr/man/man1/scidavis.1.gz
-rm $PKG/usr/man/man1/manpage.*
+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 README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION