aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/paraview/012_doc_path.diff20
-rw-r--r--graphics/paraview/013_doc_path.diff.in12
-rw-r--r--graphics/paraview/paraview.SlackBuild16
-rw-r--r--graphics/paraview/paraview.info10
4 files changed, 25 insertions, 33 deletions
diff --git a/graphics/paraview/012_doc_path.diff b/graphics/paraview/012_doc_path.diff
deleted file mode 100644
index f77037e965fc5..0000000000000
--- a/graphics/paraview/012_doc_path.diff
+++ /dev/null
@@ -1,20 +0,0 @@
---- Remoting/Core/vtkPVFileInformation.cxx.orig 2021-05-14 02:47:34.000000000 +1000
-+++ Remoting/Core/vtkPVFileInformation.cxx 2021-05-23 20:53:31.322000000 +1000
-@@ -1227,13 +1227,15 @@
- //-----------------------------------------------------------------------------
- std::string vtkPVFileInformation::GetParaViewExampleFilesDirectory()
- {
-- return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/examples";
-+ /* return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/examples"; */
-+ return "/usr/doc/paraview-"PARAVIEW_VERSION_FULL ;
- }
-
- //-----------------------------------------------------------------------------
- std::string vtkPVFileInformation::GetParaViewDocDirectory()
- {
-- return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc";
-+ /* return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc"; */
-+ return "/usr/doc/paraview-"PARAVIEW_VERSION_FULL ;
- }
-
- //-----------------------------------------------------------------------------
diff --git a/graphics/paraview/013_doc_path.diff.in b/graphics/paraview/013_doc_path.diff.in
new file mode 100644
index 0000000000000..1aa875733b214
--- /dev/null
+++ b/graphics/paraview/013_doc_path.diff.in
@@ -0,0 +1,12 @@
+--- Remoting/Core/vtkPVFileInformation.cxx.orig 2024-09-27 11:50:53.000000000 +1000
++++ Remoting/Core/vtkPVFileInformation.cxx 2024-10-28 17:05:44.297004753 +1100
+@@ -1273,7 +1273,8 @@
+ //-----------------------------------------------------------------------------
+ std::string vtkPVFileInformation::GetParaViewDocDirectory()
+ {
+- return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc";
++ /* return vtkPVFileInformation::GetParaViewSharedResourcesDirectory() + "/doc"; */
++ return "/usr/doc/paraview-@VERSION@";
+ }
+
+ //-----------------------------------------------------------------------------
diff --git a/graphics/paraview/paraview.SlackBuild b/graphics/paraview/paraview.SlackBuild
index 67522c97c7770..a6236170b74f9 100644
--- a/graphics/paraview/paraview.SlackBuild
+++ b/graphics/paraview/paraview.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for paraview
-# Copyright 2016-2023 Christoph Willing Brisbane, Australia
+# Copyright 2016-2024 Christoph Willing Sydney, Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,9 +26,9 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=paraview
SRCNAM=ParaView
-VERSION=${VERSION:-5.11.2}
-SHORT_VERSION=${SHORT_VERSION:-5.11}
-DOC_VERSION=${DOC_VERSION:-5.11.1}
+VERSION=${VERSION:-5.13.1}
+SHORT_VERSION=${SHORT_VERSION:-5.13}
+DOC_VERSION=${DOC_VERSION:-5.13.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,9 +74,12 @@ cd $TMP
rm -rf $SRCNAM-v$VERSION
tar xvf $CWD/$SRCNAM-v$VERSION.tar.xz
cd $SRCNAM-v$VERSION
-patch -p0 < $CWD/012_doc_path.diff
+
+sed -e "s/@VERSION@/$VERSION/" < $CWD/013_doc_path.diff.in >$CWD/013_doc_path.diff
+patch -p0 < $CWD/013_doc_path.diff
sed -i -e 's/^Categories.*/&Development;Graphics;/' Clients/ParaView/org.paraview.ParaView.desktop.in
chown -R root:root .
+
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
@@ -113,10 +116,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- CONTRIBUTING* Copyright* License_v1.2.txt README* version.txt \
+ CONTRIBUTING* Copyright* README* \
$PKG/usr/doc/$PRGNAM-$VERSION
cp $CWD/ParaViewGettingStarted-${VERSION}.pdf $PKG/usr/doc/$PRGNAM-$VERSION/GettingStarted.pdf
-cp $CWD/ParaViewTutorial-${DOC_VERSION}.pdf $PKG/usr/doc/$PRGNAM-$VERSION/Tutorial.pdf
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/graphics/paraview/paraview.info b/graphics/paraview/paraview.info
index 3bbc28f071288..1109aea2f6242 100644
--- a/graphics/paraview/paraview.info
+++ b/graphics/paraview/paraview.info
@@ -1,13 +1,11 @@
PRGNAM="paraview"
-VERSION="5.11.2"
+VERSION="5.13.1"
HOMEPAGE="https://www.paraview.org"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://www.paraview.org/files/v5.11/ParaView-v5.11.2.tar.xz \
- https://www.paraview.org/files/v5.11/ParaViewTutorial-5.11.1.pdf \
- https://www.paraview.org/files/v5.11/ParaViewGettingStarted-5.11.2.pdf"
-MD5SUM_x86_64="b5a13247fec282b8294a28d3101049fb \
- 9aa92ec6c1540f2425849c4ffddd158d \
+DOWNLOAD_x86_64="https://www.paraview.org/files/v5.13/ParaView-v5.13.1.tar.xz \
+ https://www.paraview.org/files/v5.13/ParaViewGettingStarted-5.13.1.pdf"
+MD5SUM_x86_64="096b3582a2e016201c79f4a4bce2ab16 \
392a29c111c5867b51e78bcb83e64198"
REQUIRES="gdal hdf5 python3-matplotlib Sphinx"
MAINTAINER="Christoph Willing"