aboutsummaryrefslogtreecommitdiff
path: root/academic/labplot2/labplot2.SlackBuild
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype (at) gmail (dot) com>2023-04-20 22:10:09 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-04-22 11:38:29 +0700
commit44c088db793d9490ae359ea750331714e7adc794 (patch)
tree46f8eb79f942b6311ef67d241b8cb74462f7645b /academic/labplot2/labplot2.SlackBuild
parent5f19b4539831b762c4045e4ebdc16498f596b0d7 (diff)
academic/labplot2: Updated for version 2.10.0.
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/labplot2/labplot2.SlackBuild')
-rw-r--r--academic/labplot2/labplot2.SlackBuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/academic/labplot2/labplot2.SlackBuild b/academic/labplot2/labplot2.SlackBuild
index 525baee06e..4fa929a9ee 100644
--- a/academic/labplot2/labplot2.SlackBuild
+++ b/academic/labplot2/labplot2.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for LabPlot
# Based on the Slackware 15.0 SlackBuild and AUR PKGBUILD for labplot
#
-# Copyright 2014-2022, Fellype do Nascimento, Guaratingueta - Brazil
+# Copyright 2014-2023, Fellype do Nascimento, Guaratingueta - Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,10 +24,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
+NAME=labplot
PRGNAM=labplot2
-NAME=labplot
-VERSION=${VERSION:-2.9.0}
+VERSION=${VERSION:-2.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,10 +75,11 @@ rm -rf $NAME-$VERSION
tar -xJf $CWD/$NAME-$VERSION.tar.xz
cd $NAME-$VERSION
-# Avoid readstat-1.1.6.tar.gz to be removed and downloaded again from github.
-# Use the one downloaded previously instead.
-sed -i "s:https\://github.com/WizardMac/ReadStat/releases/download/v\${ext_version}/readstat-\${ext_version}.tar.gz:$CWD/readstat-1.1.6.tar.gz:" src/3rdparty/CMakeLists.txt
-
+# Apply patches to avoid the download of dbc parser and Vector BLF (not used here)
+patch -p1 < $CWD/p1_do_not_build_dbc_parser_and_vector_blf.patch src/3rdparty/CMakeLists.txt
+patch -p1 < $CWD/p2.patch tests/import_export/CAN/BLFFilterTest.cpp
+patch -p1 < $CWD/p3.patch tests/import_export/CAN/BLFFilterTest.h
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -94,6 +95,7 @@ cmake ./ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release \
-DMAN_INSTALL_DIR=/usr/man \
+ -DENABLE_READSTAT=OFF \
..
make
make install/strip DESTDIR=$PKG