[arch-commits] Commit in vtk/repos (6 files)

Evgeniy Alekseev arcanis at archlinux.org
Wed Sep 27 14:56:17 UTC 2017


    Date: Wednesday, September 27, 2017 @ 14:56:16
  Author: arcanis
Revision: 260694

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

-----------------------------------+
 community-staging-i686/.contrib   |    6 +
 community-staging-i686/PKGBUILD   |  125 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/.contrib |    6 +
 community-staging-x86_64/PKGBUILD |  125 ++++++++++++++++++++++++++++++++++++
 4 files changed, 262 insertions(+)

Copied: vtk/repos/community-staging-i686/.contrib (from rev 260693, vtk/trunk/.contrib)
===================================================================
--- community-staging-i686/.contrib	                        (rev 0)
+++ community-staging-i686/.contrib	2017-09-27 14:56:16 UTC (rev 260694)
@@ -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-i686/PKGBUILD (from rev 260693, vtk/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-09-27 14:56:16 UTC (rev 260694)
@@ -0,0 +1,125 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# 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=8.0.0
+_majorver=8.0
+pkgrel=1
+pkgdesc='A software system for 3D computer graphics, image processing, and visualization'
+arch=('i686' 'x86_64')
+url='http://www.vtk.org/'
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('boost' 'cmake' 'doxygen' 'ffmpeg' 'gdal' 'glew' 'gnuplot'
+             'hdf5' 'java-environment' 'jsoncpp' 'libharu'
+             'mariadb' 'openmpi' 'proj' 'python-autobahn' 'python-matplotlib'
+             'python-mpi4py' 'python-twisted' 'qt5-base' 'qt5-tools'
+             'qt5-webkit' 'qt5-x11extras' 'tk' 'unixodbc' 'wget')
+optdepends=('python: python bindings'
+            'java-runtime: java bindings'
+            'tk: tcl bindings'
+            'gnuplot: plotting tools'
+            'graphviz: drawing tools'
+            'python-matplotlib: for Matplotlib rendering'
+            'python-twisted: for vtkWeb'
+            'python-autobahn: for vtkWeb'
+            'python-mpi4py: OpenMPI python support'
+            'openmpi: OpenMPI support'
+            'qt5-x11extras'
+            'qt5-webkit: WebKit support'
+            'ffmpeg'
+            'gdal'
+            'glew'
+            'hdf5'
+            'jsoncpp'
+            'libharu'
+            'mariadb'
+            'proj'
+            'unixodbc')
+source=("http://www.vtk.org/files/release/${_majorver}/VTK-${pkgver}.tar.gz"
+        "http://www.vtk.org/files/release/${_majorver}/VTKData-${pkgver}.tar.gz"
+        "http://www.vtk.org/files/release/${_majorver}/VTKLargeData-${pkgver}.tar.gz")
+options=(staticlibs)
+sha512sums=('6ffb3ed94f2e06a92aac4c13143774e4ade2341c8d8eba23d4ff60a7ead932c20593d388d11fa026edda58ab7655237784ff70e89613e6fab88f1848683bcca0'
+            'dcd7e5f87be7f9d25380518eea7f21d48d757c0c8cb83dba3f72cef829f25df8e718bd8076ce8a05431b1607dcb57cbbd446bca6863bd481d6613c8aa86549e7'
+            'e1c8c67f56919359e817f8c8ed360f8830f6e824e078aac2da894edca0e686399003cf5886c861dbdb9cadda39a7a69c72d6537d117dcd17d7698421b6cbe5c9')
+
+prepare() {
+  rm -rf "build"
+  mkdir "build"
+}
+
+build() {
+  cd "build"
+
+  # to help cmake find java
+  export JAVA_HOME=/usr/lib/jvm/default
+
+  # flags to enable using system libs
+  local cmake_system_flags=""
+  # TODO: try to use system provided XDMF2, XDMF3, NETCDF, GL2PS
+  # VTK fails to compile with recent netcdf-cxx package, VTK should be ported to the latest API
+  # VTK does not work with XDMF2 compiled from git. TODO: make vtk compatible with system XDMF library.
+  # Note: VTK explicitly disables system GLEW dependency, it uses embedded sources with modifications
+  # system gl2ps is not used because of http://www.vtk.org/Bug/view.php?id=16083
+  for lib in EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA TWISTED ZOPE SIX AUTOBAHN MPI4PY JSONCPP GLEW HDF HDF5 LIBPROJ4 LIBHARU; do
+    cmake_system_flags+="-DVTK_USE_SYSTEM_${lib}:BOOL=ON "
+  done
+
+  local _tkver=$(echo 'puts $tcl_version' | tclsh)
+
+  cmake \
+    -Wno-dev \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DBUILD_SHARED_LIBS:BOOL=ON \
+    -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
+    -DBUILD_DOCUMENTATION:BOOL=OFF \
+    -DDOXYGEN_KEEP_TEMP:BOOL=ON \
+    -DDOCUMENTATION_HTML_HELP:BOOL=OFF \
+    -DDOCUMENTATION_HTML_TARZ:BOOL=OFF \
+    -DBUILD_EXAMPLES:BOOL=ON \
+    -DVTK_USE_FFMPEG_ENCODER:BOOL=ON \
+    -DVTK_BUILD_ALL_MODULES:BOOL=ON \
+    -DVTK_USE_LARGE_DATA:BOOL=ON \
+    -DVTK_QT_VERSION:STRING="5" \
+    -DVTK_WRAP_JAVA:BOOL=ON \
+    -DVTK_WRAP_PYTHON:BOOL=ON \
+    -DVTK_WRAP_TCL:BOOL=ON \
+    -DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \
+    -DVTK_PYTHON_VERSION="3" \
+    -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
+    -DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \
+    -DVTK_INSTALL_TCL_DIR=/usr/lib/tcl${_tkver}/vtk/ \
+    ${cmake_system_flags} \
+    -DCMAKE_BUILD_TYPE=Release \
+    "${srcdir}/VTK-${pkgver}"
+
+  make
+}
+
+package() {
+  cd "build"
+
+  make DESTDIR="${pkgdir}" install
+  # remove generated python files
+  rm -rf "${pkgdir}/usr/lib/python3.6/site-packages/"{constantly,incremental}
+  # remove xdmf cmake config file
+  rm -rf "${pkgdir}/usr/XdmfConfig.cmake"
+
+  # Move the vtk.jar to the arch-specific location
+  install -dv "${pkgdir}/usr/share/java/vtk"
+  mv -v "${pkgdir}/usr/lib/vtk.jar" "${pkgdir}/usr/share/java/vtk"
+  rm -rf "${pkgdir}/usr/lib/vtk-${_majorver}/java"
+
+  # Install license
+  install -Dm644 "${srcdir}/VTK-${pkgver}/Copyright.txt" \
+                 "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+  # Fix path of QtDesigner plugin
+  install -dv "${pkgdir}/usr/lib/qt"
+  mv "${pkgdir}/usr/plugins" "${pkgdir}/usr/lib/qt/plugins"
+}
+

Copied: vtk/repos/community-staging-x86_64/.contrib (from rev 260693, vtk/trunk/.contrib)
===================================================================
--- community-staging-x86_64/.contrib	                        (rev 0)
+++ community-staging-x86_64/.contrib	2017-09-27 14:56:16 UTC (rev 260694)
@@ -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 260693, vtk/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-09-27 14:56:16 UTC (rev 260694)
@@ -0,0 +1,125 @@
+# $Id$
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+# 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=8.0.0
+_majorver=8.0
+pkgrel=1
+pkgdesc='A software system for 3D computer graphics, image processing, and visualization'
+arch=('i686' 'x86_64')
+url='http://www.vtk.org/'
+license=('BSD')
+depends=('gcc-libs')
+makedepends=('boost' 'cmake' 'doxygen' 'ffmpeg' 'gdal' 'glew' 'gnuplot'
+             'hdf5' 'java-environment' 'jsoncpp' 'libharu'
+             'mariadb' 'openmpi' 'proj' 'python-autobahn' 'python-matplotlib'
+             'python-mpi4py' 'python-twisted' 'qt5-base' 'qt5-tools'
+             'qt5-webkit' 'qt5-x11extras' 'tk' 'unixodbc' 'wget')
+optdepends=('python: python bindings'
+            'java-runtime: java bindings'
+            'tk: tcl bindings'
+            'gnuplot: plotting tools'
+            'graphviz: drawing tools'
+            'python-matplotlib: for Matplotlib rendering'
+            'python-twisted: for vtkWeb'
+            'python-autobahn: for vtkWeb'
+            'python-mpi4py: OpenMPI python support'
+            'openmpi: OpenMPI support'
+            'qt5-x11extras'
+            'qt5-webkit: WebKit support'
+            'ffmpeg'
+            'gdal'
+            'glew'
+            'hdf5'
+            'jsoncpp'
+            'libharu'
+            'mariadb'
+            'proj'
+            'unixodbc')
+source=("http://www.vtk.org/files/release/${_majorver}/VTK-${pkgver}.tar.gz"
+        "http://www.vtk.org/files/release/${_majorver}/VTKData-${pkgver}.tar.gz"
+        "http://www.vtk.org/files/release/${_majorver}/VTKLargeData-${pkgver}.tar.gz")
+options=(staticlibs)
+sha512sums=('6ffb3ed94f2e06a92aac4c13143774e4ade2341c8d8eba23d4ff60a7ead932c20593d388d11fa026edda58ab7655237784ff70e89613e6fab88f1848683bcca0'
+            'dcd7e5f87be7f9d25380518eea7f21d48d757c0c8cb83dba3f72cef829f25df8e718bd8076ce8a05431b1607dcb57cbbd446bca6863bd481d6613c8aa86549e7'
+            'e1c8c67f56919359e817f8c8ed360f8830f6e824e078aac2da894edca0e686399003cf5886c861dbdb9cadda39a7a69c72d6537d117dcd17d7698421b6cbe5c9')
+
+prepare() {
+  rm -rf "build"
+  mkdir "build"
+}
+
+build() {
+  cd "build"
+
+  # to help cmake find java
+  export JAVA_HOME=/usr/lib/jvm/default
+
+  # flags to enable using system libs
+  local cmake_system_flags=""
+  # TODO: try to use system provided XDMF2, XDMF3, NETCDF, GL2PS
+  # VTK fails to compile with recent netcdf-cxx package, VTK should be ported to the latest API
+  # VTK does not work with XDMF2 compiled from git. TODO: make vtk compatible with system XDMF library.
+  # Note: VTK explicitly disables system GLEW dependency, it uses embedded sources with modifications
+  # system gl2ps is not used because of http://www.vtk.org/Bug/view.php?id=16083
+  for lib in EXPAT FREETYPE JPEG PNG TIFF ZLIB LIBXML2 OGGTHEORA TWISTED ZOPE SIX AUTOBAHN MPI4PY JSONCPP GLEW HDF HDF5 LIBPROJ4 LIBHARU; do
+    cmake_system_flags+="-DVTK_USE_SYSTEM_${lib}:BOOL=ON "
+  done
+
+  local _tkver=$(echo 'puts $tcl_version' | tclsh)
+
+  cmake \
+    -Wno-dev \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DBUILD_SHARED_LIBS:BOOL=ON \
+    -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
+    -DBUILD_DOCUMENTATION:BOOL=OFF \
+    -DDOXYGEN_KEEP_TEMP:BOOL=ON \
+    -DDOCUMENTATION_HTML_HELP:BOOL=OFF \
+    -DDOCUMENTATION_HTML_TARZ:BOOL=OFF \
+    -DBUILD_EXAMPLES:BOOL=ON \
+    -DVTK_USE_FFMPEG_ENCODER:BOOL=ON \
+    -DVTK_BUILD_ALL_MODULES:BOOL=ON \
+    -DVTK_USE_LARGE_DATA:BOOL=ON \
+    -DVTK_QT_VERSION:STRING="5" \
+    -DVTK_WRAP_JAVA:BOOL=ON \
+    -DVTK_WRAP_PYTHON:BOOL=ON \
+    -DVTK_WRAP_TCL:BOOL=ON \
+    -DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \
+    -DVTK_PYTHON_VERSION="3" \
+    -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
+    -DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \
+    -DVTK_INSTALL_TCL_DIR=/usr/lib/tcl${_tkver}/vtk/ \
+    ${cmake_system_flags} \
+    -DCMAKE_BUILD_TYPE=Release \
+    "${srcdir}/VTK-${pkgver}"
+
+  make
+}
+
+package() {
+  cd "build"
+
+  make DESTDIR="${pkgdir}" install
+  # remove generated python files
+  rm -rf "${pkgdir}/usr/lib/python3.6/site-packages/"{constantly,incremental}
+  # remove xdmf cmake config file
+  rm -rf "${pkgdir}/usr/XdmfConfig.cmake"
+
+  # Move the vtk.jar to the arch-specific location
+  install -dv "${pkgdir}/usr/share/java/vtk"
+  mv -v "${pkgdir}/usr/lib/vtk.jar" "${pkgdir}/usr/share/java/vtk"
+  rm -rf "${pkgdir}/usr/lib/vtk-${_majorver}/java"
+
+  # Install license
+  install -Dm644 "${srcdir}/VTK-${pkgver}/Copyright.txt" \
+                 "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+
+  # Fix path of QtDesigner plugin
+  install -dv "${pkgdir}/usr/lib/qt"
+  mv "${pkgdir}/usr/plugins" "${pkgdir}/usr/lib/qt/plugins"
+}
+



More information about the arch-commits mailing list