Date: Saturday, March 13, 2021 @ 23:24:25 Author: foutrelis Revision: 890711
archrelease: copy trunk to community-staging-x86_64 Added: paraview/repos/community-staging-x86_64/ paraview/repos/community-staging-x86_64/PKGBUILD (from rev 890710, paraview/trunk/PKGBUILD) paraview/repos/community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch (from rev 890710, paraview/trunk/paraview-vtk-freetype-2.10.3.patch) paraview/repos/community-staging-x86_64/paraview-vtk-python39.patch (from rev 890710, paraview/trunk/paraview-vtk-python39.patch) ------------------------------------+ PKGBUILD | 72 +++++++++++++++++++++++++++++++++++ paraview-vtk-freetype-2.10.3.patch | 18 ++++++++ paraview-vtk-python39.patch | 13 ++++++ 3 files changed, 103 insertions(+) Copied: paraview/repos/community-staging-x86_64/PKGBUILD (from rev 890710, paraview/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-03-13 23:24:25 UTC (rev 890711) @@ -0,0 +1,72 @@ +# Maintainer: Bruno Pagani <archa...@archlinux.org> +# Maintainer: Mathieu Westphal <mathieu.westp...@kitware.com> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> +# Contributor: <xantare...@hotmail.com> + +_pkg=paraview +_mpi=openmpi +pkgname=${_pkg} +#-${_mpi} +pkgver=5.8.1 +pkgrel=4 +pkgdesc="Parallel Visualization application using VTK (${_mpi} version)" +arch=(x86_64) +url="https://www.paraview.org" +license=(BSD custom) +depends=(boost-libs qt5-tools qt5-x11extras qt5-svg intel-tbb openmpi ffmpeg + ospray python-numpy cgns protobuf + double-conversion expat freetype2 gdal gl2ps glew hdf5 libjpeg jsoncpp + libjsoncpp.so libharu libxml2 lz4 xz python-mpi4py netcdf libogg + libpng pdal pugixml libtheora libtiff zlib) +optdepends=(python-matplotlib) +makedepends=(cmake boost mesa gcc-fortran ninja qt5-tools qt5-xmlpatterns eigen pegtl utf8cpp) +conflicts=(vtk) +source=("${url}/files/v${pkgver:0:3}/ParaView-v${pkgver/R/-R}.tar.xz" + paraview-cgns-4.1.patch::https://gitlab.kitware.com/paraview/paraview/-/commit/3d48a287141eb911b4888440e09c262743b4db3c.patch + paraview-vtk-python39.patch + paraview-vtk-freetype-2.10.3.patch) +sha256sums=('7653950392a0d7c0287c26f1d3a25cdbaa11baa7524b0af0e6a1a0d7d487d034' + '917485fbff57b922e67e40ee35d265769b05b4b62c397e4c9ce00244f5fd07ae' + '9b8f4497050c110df0d087a1b297de738791ad0159f28666fd9f4ae937cd5e83' + 'b547a665eaf980669b929f3a95e61cc8af4892ba3a41441ef98f8487886081ce') + +prepare() { + cd ParaView-v${pkgver/R/-R} + patch -Np1 -i ../paraview-cgns-4.1.patch + patch -Np1 -i ../paraview-vtk-python39.patch + # We have a patched libharu + sed -i "s|2.4.0|2.3.0|" VTK/ThirdParty/libharu/CMakeLists.txt + # https://bugs.archlinux.org/task/68244 + patch -Np1 -i ../paraview-vtk-freetype-2.10.3.patch +} + +build() { + export CPPFLAGS+=" -DH5_USE_110_API" + cmake -B build -S ParaView-v${pkgver/R/-R} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPARAVIEW_ENABLE_FFMPEG=ON \ + -DPARAVIEW_ENABLE_GDAL=ON \ + -DPARAVIEW_ENABLE_MOTIONFX=ON \ + -DPARAVIEW_ENABLE_PDAL=ON \ + -DPARAVIEW_ENABLE_VISITBRIDGE=ON \ + -DPARAVIEW_ENABLE_XDMF3=ON \ + -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \ + -DPARAVIEW_USE_MPI=ON \ + -DPARAVIEW_USE_PYTHON=ON \ + -DPARAVIEW_USE_RAYTRACING=ON \ + -DPARAVIEW_BUILD_WITH_EXTERNAL=ON \ + -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \ + -DVTKm_ENABLE_MPI=ON \ + -DVTK_MODULE_ENABLE_VTK_IOGDAL=YES \ + -DVTK_MODULE_ENABLE_VTK_IOPDAL=YES \ + -GNinja + + ninja -C build ${MAKEFLAGS} +} + +package() { + DESTDIR="${pkgdir}" ninja -C build install + # Fix licenses install + mv "${pkgdir}"/usr/share/licenses/{ParaView,paraview} +} Copied: paraview/repos/community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch (from rev 890710, paraview/trunk/paraview-vtk-freetype-2.10.3.patch) =================================================================== --- community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch (rev 0) +++ community-staging-x86_64/paraview-vtk-freetype-2.10.3.patch 2021-03-13 23:24:25 UTC (rev 890711) @@ -0,0 +1,18 @@ +diff --git a/VTK/ThirdParty/freetype/vtk_freetype.h.in b/VTK/ThirdParty/freetype/vtk_freetype.h.in +index c3f6f4f3..fd525e55 100644 +--- a/VTK/ThirdParty/freetype/vtk_freetype.h.in ++++ b/VTK/ThirdParty/freetype/vtk_freetype.h.in +@@ -20,6 +20,13 @@ + + #ifdef VTK_USE_SYSTEM_FREETYPE + # include <ft2build.h> ++#ifndef FT_CALLBACK_DEF ++#ifdef __cplusplus ++#define FT_CALLBACK_DEF( x ) extern "C" x ++#else ++#define FT_CALLBACK_DEF( x ) static x ++#endif ++#endif /* FT_CALLBACK_DEF */ + #else + # include <vtkfreetype/include/ft2build.h> + #endif Copied: paraview/repos/community-staging-x86_64/paraview-vtk-python39.patch (from rev 890710, paraview/trunk/paraview-vtk-python39.patch) =================================================================== --- community-staging-x86_64/paraview-vtk-python39.patch (rev 0) +++ community-staging-x86_64/paraview-vtk-python39.patch 2021-03-13 23:24:25 UTC (rev 890711) @@ -0,0 +1,13 @@ +Index: ParaView-v5.8.0/VTK/CMake/patches/99/FindPython/Support.cmake +=================================================================== +--- ParaView-v5.8.0.orig/VTK/CMake/patches/99/FindPython/Support.cmake ++++ ParaView-v5.8.0/VTK/CMake/patches/99/FindPython/Support.cmake +@@ -46,7 +46,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUI + message (FATAL_ERROR "FindPython: INTERNAL ERROR") + endif() + if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 3) +- set(_${_PYTHON_PREFIX}_VERSIONS 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) ++ set(_${_PYTHON_PREFIX}_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0) + elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL 2) + set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0) + else()