aboutsummaryrefslogtreecommitdiff
path: root/graphics/paraview
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@iinet.net.au>2016-08-15 10:55:04 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-20 07:51:25 +0700
commitd249509fe97be3988358cf9d5880be51c7e9608c (patch)
tree10d111264b3e703f48bfb2bd59d23265d88fd1e4 /graphics/paraview
parent5546d36a934ec89816d0ca3fc45da00f77c26a40 (diff)
graphics/paraview: Enable optional PythonQt embedding support
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'graphics/paraview')
-rw-r--r--graphics/paraview/030_pythonqt-getWidget.diff11
-rw-r--r--graphics/paraview/README5
-rw-r--r--graphics/paraview/paraview.SlackBuild14
3 files changed, 27 insertions, 3 deletions
diff --git a/graphics/paraview/030_pythonqt-getWidget.diff b/graphics/paraview/030_pythonqt-getWidget.diff
new file mode 100644
index 0000000000000..9e31b1903d892
--- /dev/null
+++ b/graphics/paraview/030_pythonqt-getWidget.diff
@@ -0,0 +1,11 @@
+--- Plugins/PythonQtPlugin/wrapped_methods.txt.orig 2016-07-27 12:54:37.000000000 +1000
++++ Plugins/PythonQtPlugin/wrapped_methods.txt 2016-08-10 13:29:43.934593466 +1000
+@@ -19,7 +19,7 @@
+
+ pqServerManagerModel* pqApplicationCore::getServerManagerModel() const
+
+-QWidget* pqRenderViewBase::getWidget()
++QWidget* pqRenderViewBase::widget()
+
+ void pqRenderView::resetCamera()
+
diff --git a/graphics/paraview/README b/graphics/paraview/README
index da2f290e97def..43fbd5f457d02 100644
--- a/graphics/paraview/README
+++ b/graphics/paraview/README
@@ -9,6 +9,11 @@ is possible by setting the relevant variables in the build environment:
MPICH=no
MATPLOTLIB=no
+Optional embedding with PythonQt may be enabled by setting
+ PYTHONQT=yes
+in the build environment. This requires the SBo PythonQt package to be
+installed at build time.
+
This build incorporates the ParaView "Getting Started" and "Tutorial"
documentation. In addition, the official ParaView Guide is available from:
http://www.paraview.org/files/v5.1/ParaViewGuide-5.1.0.pdf
diff --git a/graphics/paraview/paraview.SlackBuild b/graphics/paraview/paraview.SlackBuild
index 093f9302bdf66..eb50b246b5b61 100644
--- a/graphics/paraview/paraview.SlackBuild
+++ b/graphics/paraview/paraview.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=paraview
VERSION=${VERSION:-5.1.2}
SHORT_VERSION=${SHORT_VERSION:-5.1}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -55,8 +55,14 @@ else
LIBDIRSUFFIX=""
fi
-mpich="-DPARAVIEW_USE_MPI=ON -DVTK_VPIC_USE_MPI=ON -DVTK_XDMF_USE_MPI=ON" ; [ "${MPICH:-yes}" != "yes" ] && mpich=""
-matplotlib="-DPARAVIEW_ENABLE_MATPLOTLIB=ON" ; [ "${MATPLOTLIB:-yes}" != "yes" ] && matplotlib=""
+mpich="-DPARAVIEW_USE_MPI=ON \
+ -DVTK_VPIC_USE_MPI=ON -DVTK_XDMF_USE_MPI=ON" ; [ "${MPICH:-yes}" != "yes" ] && mpich=""
+matplotlib="-DPARAVIEW_ENABLE_MATPLOTLIB=ON" ; [ "${MATPLOTLIB:-yes}" != "yes" ] && matplotlib=""
+pythonqt="-DPARAVIEW_BUILD_PLUGIN_PythonQtPlugin=ON \
+ -DPythonQt_Wrap_Qtcore=ON \
+ -DPythonQt_Wrap_Qtgui=ON \
+ -DPythonQt_Wrap_Qtuitools=ON \
+ -DPYTHONQT_INCLUDE_DIR=/usr/include/PythonQt" ; [ "${PYTHONQT:-no}" != "yes" ] && pythonqt=""
set -e
@@ -68,6 +74,7 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
patch -p0 < $CWD/010_doc_path.diff
patch -p0 < $CWD/020_fmmmesh_lib_path.diff
+patch -p0 < $CWD/030_pythonqt-getWidget.diff
sed -i -e 's/@PARAVIEW_VERSION_FULL@/1.0/' Applications/ParaView/paraview.desktop.in
echo "Exec=paraview" >> Applications/ParaView/paraview.desktop.in
echo "Categories=Development;Graphics" >> Applications/ParaView/paraview.desktop.in
@@ -113,6 +120,7 @@ cd build
-DQtTesting_INSTALL_CMAKE_DIR=lib${LIBDIRSUFFIX}/cmake/qttesting \
$matplotlib \
$mpich \
+ $pythonqt \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG