Date: Friday, March 17, 2023 @ 12:39:26
  Author: arojas
Revision: 1421264

archrelease: copy trunk to community-staging-x86_64

Added:
  vtk/repos/community-staging-x86_64/
  vtk/repos/community-staging-x86_64/.contrib
    (from rev 1421263, vtk/trunk/.contrib)
  vtk/repos/community-staging-x86_64/PKGBUILD
    (from rev 1421263, vtk/trunk/PKGBUILD)

----------+
 .contrib |    6 ++
 PKGBUILD |  130 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)

Copied: vtk/repos/community-staging-x86_64/.contrib (from rev 1421263, 
vtk/trunk/.contrib)
===================================================================
--- community-staging-x86_64/.contrib                           (rev 0)
+++ community-staging-x86_64/.contrib   2023-03-17 12:39:26 UTC (rev 1421264)
@@ -0,0 +1,6 @@
+# Contributor: Christofer Bertonha <christoferbertonha at gmail dot com>
+# Contributor: leepesjee <lpeschier at xs4all dot nl>
+# Contributor: Olivier Medoc
+# Contributor: ignotus
+# Contributor: Fabian Moser
+# Contributor: djscholl

Copied: vtk/repos/community-staging-x86_64/PKGBUILD (from rev 1421263, 
vtk/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-03-17 12:39:26 UTC (rev 1421264)
@@ -0,0 +1,130 @@
+# Maintainer: Bruno Pagani <archange at archlinux dot org>
+# Contributor: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Michael Migliore <[email protected]>
+# Contributor: Ray Rashif <schiv at archlinux dot org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail dot com>
+# Contributor: Thomas Dziedzic <gostrc at gmail>
+
+pkgname=vtk
+pkgver=9.2.6
+pkgrel=4
+pkgdesc="Software system for 3D computer graphics, image processing, and 
visualization"
+arch=(x86_64)
+url="https://www.vtk.org/";
+license=(BSD)
+depends=(gcc-libs double-conversion pugixml tbb libtiff)
+makedepends=(adios2 cmake boost doxygen ffmpeg gdal git gnuplot 
java-environment=11
+             liblas libxt mariadb-libs openimagedenoise openmp openmpi openvdb
+             openvr ospray pdal postgresql-libs python-matplotlib qt5-base
+             qt5-tools qt5-declarative tk unixodbc wget
+             cgns cli11 eigen expat fmt freetype2 gl2ps glew hdf5 libjpeg
+             jsoncpp libjsoncpp.so libharu proj libxml2 lz4 xz python-mpi4py
+             netcdf libogg libpng rapidjson sqlite libtheora utf8cpp zfp zlib 
openxr verdict)
+# pegtl: https://gitlab.kitware.com/vtk/vtk/-/issues/18151
+# exprtk, ioss: not packaged
+optdepends=('gnuplot: plotting tools'
+            'graphviz: drawing tools'
+            'java-runtime=11: java bindings'
+            'python: python bindings'
+            'python-mpi4py: OpenMPI python support'
+            'python-matplotlib: for Matplotlib rendering'
+            'openmpi: OpenMPI support'
+            'qt5-declarative: QML plugin'
+            'tk: tcl bindings'
+            adios2
+            cgns
+            ffmpeg
+            fmt
+            gdal
+            gl2ps
+            glew
+            hdf5
+            jsoncpp
+            libarchive
+            libharu
+            liblas
+            lz4
+            mariadb-libs
+            netcdf
+            openimagedenoise
+            openvdb
+            openvr
+            openxr
+            ospray
+            pdal
+            postgresql-libs
+            proj
+            sqlite
+            unixodbc
+            verdict)
+source=(${url}/files/release/${pkgver%.*}/VTK-${pkgver}.tar.gz
+      )
+options=(staticlibs)
+sha256sums=('06fc8d49c4e56f498c40fcb38a563ed8d4ec31358d0101e8988f0bb4d539dd12')
+
+prepare() {
+  cd VTK-${pkgver}
+  # We have a patched fmt
+  sed -i "s|8.1.0|9.0.0|" ThirdParty/fmt/CMakeLists.txt
+}
+
+build() {
+  # To help cmake find java
+  export JAVA_HOME=/usr/lib/jvm/default
+  # To set tcl lib path
+  local _tkver=$(echo 'puts $tcl_version' | tclsh)
+  cmake -B build -S VTK-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LICENSEDIR=share/licenses/vtk \
+    -DCMAKE_SKIP_RPATH=OFF \
+    -DCMAKE_SKIP_INSTALL_RPATH=ON \
+    -DCMAKE_JAVA_COMPILE_FLAGS="-Xlint:-options" \
+    -DBUILD_SHARED_LIBS=ON \
+    -DVTK_BUILD_ALL_MODULES=ON \
+    -DVTK_INSTALL_TCL_DIR=/usr/lib/tcl${_tkver}/vtk/ \
+    -DVTK_LEGACY_REMOVE=ON \
+    -DVTK_SMP_ENABLE_OPENMP=ON \
+    -DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
+    -DVTK_PYTHON_VERSION=3 \
+    -DVTK_USE_MPI=ON \
+    -DVTK_USE_TK=ON \
+    -DVTK_VERSIONED_INSTALL=OFF \
+    -DVTK_WRAP_JAVA=ON \
+    -DVTK_WRAP_PYTHON=ON \
+    -DVTKOSPRAY_ENABLE_DENOISER=ON \
+    -DVTKm_ENABLE_HDF5_IO=ON \
+    -DVTKm_ENABLE_MPI=ON \
+    -DVTKm_ENABLE_OPENMP=ON \
+    -DVTK_USE_EXTERNAL=ON \
+    -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF \
+    -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF \
+    -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF \
+    -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy=NO \
+    -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS=NO \
+    -DOpenGL_GL_PREFERENCE=LEGACY \
+    -Wno-dev
+#    -DFIDES_USE_EXTERNAL_RAPIDJSON=ON \
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+
+  # Move the vtk.jar to the arch-specific location…
+  install -dv "${pkgdir}"/usr/share/java/vtk
+  mv -v "${pkgdir}"/usr/lib/java/vtk.jar "${pkgdir}"/usr/share/java/vtk
+  # …and the libs to the proper place
+  mv "${pkgdir}"/usr/lib/java/vtk-Linux-${CARCH}/*.so "${pkgdir}"/usr/lib/
+  rmdir "${pkgdir}"/usr/lib/java/{vtk-Linux-${CARCH}/,}
+
+  # byte-compile python modules since the CMake build does not do it
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  python -m compileall -o 0 -o 1 -o 2 --hardlink-dupes -s "${pkgdir}" 
"${pkgdir}"${site_packages}
+
+  # Remove third party CMake patching for older versions than ours
+  rm -rv "${pkgdir}"/usr/lib/cmake/vtk/patches/3.{1{3,6,9},20}
+  # … as well as duplicate copies
+  rm -rv 
"${pkgdir}"/usr/lib/cmake/vtk/vtkm/{Find*.cmake,cmake/{Find*.cmake,3.15}}
+}

Reply via email to