Date: Tuesday, March 16, 2021 @ 20:02:17 Author: archange Revision: 892181
archrelease: copy trunk to community-testing-x86_64 Added: paraview/repos/community-testing-x86_64/ paraview/repos/community-testing-x86_64/PKGBUILD (from rev 892180, paraview/trunk/PKGBUILD) paraview/repos/community-testing-x86_64/paraview-vtk-freetype-2.10.3.patch (from rev 892180, paraview/trunk/paraview-vtk-freetype-2.10.3.patch) paraview/repos/community-testing-x86_64/paraview-vtk-python39.patch (from rev 892180, paraview/trunk/paraview-vtk-python39.patch) ------------------------------------+ PKGBUILD | 63 +++++++++++++++++++++++++++++++++++ paraview-vtk-freetype-2.10.3.patch | 18 ++++++++++ paraview-vtk-python39.patch | 13 +++++++ 3 files changed, 94 insertions(+) Copied: paraview/repos/community-testing-x86_64/PKGBUILD (from rev 892180, paraview/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-03-16 20:02:17 UTC (rev 892181) @@ -0,0 +1,63 @@ +# 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.9.0 +pkgrel=1 +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 python-pandas) +makedepends=(cmake boost mesa gcc-fortran ninja qt5-tools qt5-xmlpatterns eigen utf8cpp) +# pegtl https://gitlab.kitware.com/vtk/vtk/-/issues/18151 +conflicts=(vtk) +source=("${url}/files/v${pkgver:0:3}/ParaView-v${pkgver/R/-R}.tar.xz") +sha256sums=('b03258b7cddb77f0ee142e3e77b377e5b1f503bcabc02bfa578298c99a06980d') + +prepare() { + cd ParaView-v${pkgver/R/-R} + # We have a patched libharu + sed -i "s|2.4.0|2.3.0|" VTK/ThirdParty/libharu/CMakeLists.txt +} + +build() { + 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_RAYTRACING=ON \ + -DPARAVIEW_ENABLE_VISITBRIDGE=ON \ + -DPARAVIEW_ENABLE_XDMF3=ON \ + -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \ + -DPARAVIEW_USE_MPI=ON \ + -DPARAVIEW_USE_PYTHON=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 \ + -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF \ + -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-testing-x86_64/paraview-vtk-freetype-2.10.3.patch (from rev 892180, paraview/trunk/paraview-vtk-freetype-2.10.3.patch) =================================================================== --- community-testing-x86_64/paraview-vtk-freetype-2.10.3.patch (rev 0) +++ community-testing-x86_64/paraview-vtk-freetype-2.10.3.patch 2021-03-16 20:02:17 UTC (rev 892181) @@ -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-testing-x86_64/paraview-vtk-python39.patch (from rev 892180, paraview/trunk/paraview-vtk-python39.patch) =================================================================== --- community-testing-x86_64/paraview-vtk-python39.patch (rev 0) +++ community-testing-x86_64/paraview-vtk-python39.patch 2021-03-16 20:02:17 UTC (rev 892181) @@ -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()