* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2016-08-21 17:41 Pacho Ramos
0 siblings, 0 replies; 92+ messages in thread
From: Pacho Ramos @ 2016-08-21 17:41 UTC (permalink / raw
To: gentoo-commits
commit: 336e51fda0a100376387381d64f8580bc76cb028
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 21 17:39:51 2016 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Aug 21 17:41:34 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=336e51fd
sci-libs/vtk: Allow nvidia-drivers usage (#563750)
Package-Manager: portage-2.3.0
sci-libs/vtk/vtk-6.1.0-r3.ebuild | 390 +++++++++++++++++++++++++++++++++++++++
1 file changed, 390 insertions(+)
diff --git a/sci-libs/vtk/vtk-6.1.0-r3.ebuild b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
new file mode 100644
index 0000000..2065cc7
--- /dev/null
+++ b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
@@ -0,0 +1,390 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+CMAKE_MAKEFILE_GENERATOR=ninja
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="http://www.vtk.org/"
+SRC_URI="
+ http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
+ test? (
+ http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ http://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )
+ "
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost cg doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt4 rendering smp tbb test theora tk tcl
+ video_cards_nvidia views web xdmf2 R +X"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 )
+ java? ( qt4 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ smp? ( ^^ ( kaapi tbb ) )
+ test? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )
+ "
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/jsoncpp
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ media-libs/libpng:0
+ media-libs/mesa
+ media-libs/libtheora
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ >=x11-libs/gl2ps-1.3.8
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( >=dev-libs/boost-1.40.0[mpi?] )
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ examples? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ sci-libs/vtkdata
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jre-1.5:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ )
+ qt4? (
+ dev-qt/designer:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtsql:4
+ dev-qt/qtwebkit:4
+ python? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
+ )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ web? (
+ ${WEBAPP_DEPEND}
+ python? (
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ )
+ xdmf2? ( sci-libs/xdmf2 )
+ R? ( dev-lang/R )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ java? ( >=virtual/jdk-1.5 )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-freetype.patch
+ "${FILESDIR}"/${P}-install.patch
+ "${FILESDIR}"/${P}-system.patch
+ "${FILESDIR}"/${P}-netcdf.patch
+ "${FILESDIR}"/${P}-web.patch
+ "${FILESDIR}"/${P}-glext.patch
+ "${FILESDIR}"/${P}-memset.patch
+ "${FILESDIR}"/${P}-gdal2.patch
+ )
+
+RESTRICT=test
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+}
+
+src_prepare() {
+ sed \
+ -e 's:libproj4:libproj:g' \
+ -e 's:lib_proj.h:lib_abi.h:g' \
+ -i CMake/FindLIBPROJ4.cmake || die
+
+ local x
+ # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/autobahn \
+ ThirdParty/Twisted/twisted \
+ ThirdParty/ZopeInterface/zope \
+ || die
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+# -DCMAKE_SKIP_RPATH=YES
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_DATA_ROOT:PATH="${EPREFIX}/usr/share/${PN}/data"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ -DVTK_USE_SYSTEM_GL2PS=ON
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+# -DLIBPROJ4_DIR="${EPREFIX}/usr"
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ )
+
+ mycmakeargs+=(
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ )
+
+ mycmakeargs+=(
+ $(cmake-utils_use_build doc DOCUMENTATION)
+ $(cmake-utils_use_build examples EXAMPLES)
+ $(cmake-utils_use_build test VTK_BUILD_ALL_MODULES_FOR_TESTS)
+ $(cmake-utils_use all-modules VTK_BUILD_ALL_MODULES)
+ $(cmake-utils_use doc DOCUMENTATION_HTML_HELP)
+ $(cmake-utils_use imaging VTK_Group_Imaging)
+ $(cmake-utils_use mpi VTK_Group_MPI)
+ $(cmake-utils_use qt4 VTK_Group_Qt)
+ $(cmake-utils_use rendering VTK_Group_Rendering)
+ $(cmake-utils_use tk VTK_Group_Tk)
+ $(cmake-utils_use views VTK_Group_Views)
+ $(cmake-utils_use web VTK_Group_Web)
+ $(cmake-utils_use web VTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}")
+ $(cmake-utils_use java VTK_WRAP_JAVA)
+ $(cmake-utils_use python VTK_WRAP_PYTHON)
+ $(cmake-utils_use python VTK_WRAP_PYTHON_SIP)
+ $(cmake-utils_use tcl VTK_WRAP_TCL)
+ )
+
+ mycmakeargs+=(
+ $(cmake-utils_use boost VTK_USE_BOOST)
+ $(cmake-utils_use cg VTK_USE_CG_SHADERS)
+ $(cmake-utils_use odbc VTK_USE_ODBC)
+ $(cmake-utils_use offscreen VTK_USE_OFFSCREEN)
+ $(cmake-utils_use offscreen VTK_OPENGL_HAS_OSMESA)
+ $(cmake-utils_use smp vtkFiltersSMP)
+ $(cmake-utils_use theora VTK_USE_OGGTHEORA_ENCODER)
+ $(cmake-utils_use video_cards_nvidia VTK_USE_NVCONTROL)
+ $(cmake-utils_use R Module_vtkFiltersStatisticsGnuR)
+ $(cmake-utils_use X VTK_USE_X)
+ )
+
+ # IO
+ mycmakeargs+=(
+ $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER)
+ $(cmake-utils_use gdal Module_vtkIOGDAL)
+ $(cmake-utils_use json Module_vtkIOGeoJSON)
+ $(cmake-utils_use xdmf2 Module_vtkIOXdmf2)
+ )
+ # Apple stuff, does it really work?
+ mycmakeargs+=( $(cmake-utils_use aqua VTK_USE_COCOA) )
+
+ if use examples || use test; then
+ mycmakeargs+=( -DBUILD_TESTING=ON )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use java; then
+# local _ejavahome=${EPREFIX}/etc/java-config-2/current-system-vm
+#
+# mycmakeargs+=(
+# -DJAVAC=${EPREFIX}/usr/bin/javac
+# -DJAVAC=$(java-config -c)
+# -DJAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
+# -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include
+# -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux
+# )
+#
+ if [ "${ARCH}" == "amd64" ]; then
+ mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so;${JAVA_HOME}/jre/lib/${ARCH}/xawt/libmawt.so" )
+ else
+ mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/i386/libjawt.so;${JAVA_HOME}/jre/lib/i386/xawt/libmawt.so" )
+ fi
+ fi
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${PREFIX} --root=${D}"
+ )
+ fi
+
+ if use qt4; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/designer
+ -DDESIRED_QT_VERSION=4
+ -DVTK_QT_VERSION=4
+ -DQT_MOC_EXECUTABLE="$(qt4_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt4_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt4"
+ -DQT_QMAKE_EXECUTABLE="$(qt4_get_bindir)/qmake"
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+# -DR_LIBRARY_BLAS=$($(tc-getPKG_CONFIG) --libs blas)
+# -DR_LIBRARY_LAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local tcllib
+ ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
+ for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
+ ln -sf $(basename "${tcllib}").1 "${tcllib/.so/-${SPV}.so}" || die
+ done
+ export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
+ local VIRTUALX_COMMAND="cmake-utils_src_test"
+# local VIRTUALX_COMMAND="cmake-utils_src_test -R Java"
+# local VIRTUALX_COMMAND="cmake-utils_src_test -I 364,365"
+ virtualmake
+}
+
+src_install() {
+ use web && webapp_src_preinst
+ # install docs
+ HTML_DOCS=( "${S}"/README.html )
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc "${S}"/Wrapping/Tcl/README
+ fi
+
+ # install examples
+ if use examples; then
+ insinto /usr/share/${PN}
+ mv -v Examples examples || die
+ doins -r examples
+ fi
+
+ #install big docs
+ if use doc; then
+ cd "${WORKDIR}"/html || die
+ rm -f *.md5 || die "Failed to remove superfluous hashes"
+ einfo "Installing API docs. This may take some time."
+ docinto html
+ dodoc -r ./*
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2016-09-07 18:00 Patrice Clement
0 siblings, 0 replies; 92+ messages in thread
From: Patrice Clement @ 2016-09-07 18:00 UTC (permalink / raw
To: gentoo-commits
commit: e1cd5b1c85b5628da4686024e91ac9989a31fc5a
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 7 18:00:26 2016 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Wed Sep 7 18:00:46 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1cd5b1c
sci-libs/vtk: remove java@ from the list of maintainers.
Package-Manager: portage-2.2.28
sci-libs/vtk/metadata.xml | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index 7af45a7..dbcdc25 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -5,10 +5,6 @@
<email>sci@gentoo.org</email>
<name>Gentoo Science Project</name>
</maintainer>
- <maintainer type="project">
- <email>java@gentoo.org</email>
- <name>Java</name>
- </maintainer>
<use>
<flag name="all-modules">Build all modules</flag>
<flag name="boost">Add support for boost</flag>
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2016-11-06 20:15 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2016-11-06 20:15 UTC (permalink / raw
To: gentoo-commits
commit: 520903ae68e7325f589f0edd8faf29f460a24f7b
Author: timeraider@gmx.at <timeraider <AT> gmx <DOT> at>
AuthorDate: Tue Oct 25 21:40:05 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 20:14:54 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=520903ae
sci-libs/vtk: clean-up old revision
Closes: https://github.com/gentoo/gentoo/pull/2663
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-libs/vtk/vtk-6.1.0-r2.ebuild | 390 ---------------------------------------
1 file changed, 390 deletions(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r2.ebuild b/sci-libs/vtk/vtk-6.1.0-r2.ebuild
deleted file mode 100644
index c653faa..00000000
--- a/sci-libs/vtk/vtk-6.1.0-r2.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-CMAKE_MAKEFILE_GENERATOR=ninja
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
-
-# Short package version
-SPV="$(get_version_component_range 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="http://www.vtk.org/"
-SRC_URI="
- http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
- test? (
- http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- http://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )
- "
-
-LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
-SLOT="0"
-IUSE="
- all-modules aqua boost cg doc examples imaging ffmpeg gdal java json kaapi mpi
- mysql odbc offscreen postgres python qt4 rendering smp tbb test theora tk tcl
- video_cards_nvidia views web xdmf2 R +X"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 )
- java? ( qt4 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- smp? ( ^^ ( kaapi tbb ) )
- test? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )
- "
-
-RDEPEND="
- dev-libs/expat
- dev-libs/jsoncpp
- dev-libs/libxml2:2
- >=media-libs/freetype-2.5.4
- media-libs/libpng:0
- media-libs/mesa
- media-libs/libtheora
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- >=x11-libs/gl2ps-1.3.8
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- boost? ( >=dev-libs/boost-1.40.0[mpi?] )
- cg? ( media-gfx/nvidia-cg-toolkit )
- examples? (
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- sci-libs/vtkdata
- )
- ffmpeg? ( virtual/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jre-1.5:* )
- kaapi? ( <sci-libs/xkaapi-3 )
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- mysql? ( virtual/mysql )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[${PYTHON_USEDEP}]
- )
- )
- qt4? (
- dev-qt/designer:4
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-qt/qtopengl:4
- dev-qt/qtsql:4
- dev-qt/qtwebkit:4
- python? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
- )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( media-video/nvidia-settings )
- web? (
- ${WEBAPP_DEPEND}
- python? (
- dev-python/autobahn[${PYTHON_USEDEP}]
- dev-python/twisted-core[${PYTHON_USEDEP}]
- dev-python/zope-interface[${PYTHON_USEDEP}]
- )
- )
- xdmf2? ( sci-libs/xdmf2 )
- R? ( dev-lang/R )"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )
- java? ( >=virtual/jdk-1.5 )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${P}-freetype.patch
- "${FILESDIR}"/${P}-install.patch
- "${FILESDIR}"/${P}-system.patch
- "${FILESDIR}"/${P}-netcdf.patch
- "${FILESDIR}"/${P}-web.patch
- "${FILESDIR}"/${P}-glext.patch
- "${FILESDIR}"/${P}-memset.patch
- "${FILESDIR}"/${P}-gdal2.patch
- )
-
-RESTRICT=test
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-}
-
-src_prepare() {
- sed \
- -e 's:libproj4:libproj:g' \
- -e 's:lib_proj.h:lib_abi.h:g' \
- -i CMake/FindLIBPROJ4.cmake || die
-
- local x
- # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- rm -r \
- ThirdParty/AutobahnPython/autobahn \
- ThirdParty/Twisted/twisted \
- ThirdParty/ZopeInterface/zope \
- || die
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
-# -DCMAKE_SKIP_RPATH=YES
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_DATA_ROOT:PATH="${EPREFIX}/usr/share/${PN}/data"
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- -DVTK_USE_SYSTEM_GL2PS=ON
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ4=OFF
-# -DLIBPROJ4_DIR="${EPREFIX}/usr"
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- )
-
- mycmakeargs+=(
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- )
-
- mycmakeargs+=(
- $(cmake-utils_use_build doc DOCUMENTATION)
- $(cmake-utils_use_build examples EXAMPLES)
- $(cmake-utils_use_build test VTK_BUILD_ALL_MODULES_FOR_TESTS)
- $(cmake-utils_use all-modules VTK_BUILD_ALL_MODULES)
- $(cmake-utils_use doc DOCUMENTATION_HTML_HELP)
- $(cmake-utils_use imaging VTK_Group_Imaging)
- $(cmake-utils_use mpi VTK_Group_MPI)
- $(cmake-utils_use qt4 VTK_Group_Qt)
- $(cmake-utils_use rendering VTK_Group_Rendering)
- $(cmake-utils_use tk VTK_Group_Tk)
- $(cmake-utils_use views VTK_Group_Views)
- $(cmake-utils_use web VTK_Group_Web)
- $(cmake-utils_use web VTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}")
- $(cmake-utils_use java VTK_WRAP_JAVA)
- $(cmake-utils_use python VTK_WRAP_PYTHON)
- $(cmake-utils_use python VTK_WRAP_PYTHON_SIP)
- $(cmake-utils_use tcl VTK_WRAP_TCL)
- )
-
- mycmakeargs+=(
- $(cmake-utils_use boost VTK_USE_BOOST)
- $(cmake-utils_use cg VTK_USE_CG_SHADERS)
- $(cmake-utils_use odbc VTK_USE_ODBC)
- $(cmake-utils_use offscreen VTK_USE_OFFSCREEN)
- $(cmake-utils_use offscreen VTK_OPENGL_HAS_OSMESA)
- $(cmake-utils_use smp vtkFiltersSMP)
- $(cmake-utils_use theora VTK_USE_OGGTHEORA_ENCODER)
- $(cmake-utils_use video_cards_nvidia VTK_USE_NVCONTROL)
- $(cmake-utils_use R Module_vtkFiltersStatisticsGnuR)
- $(cmake-utils_use X VTK_USE_X)
- )
-
- # IO
- mycmakeargs+=(
- $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER)
- $(cmake-utils_use gdal Module_vtkIOGDAL)
- $(cmake-utils_use json Module_vtkIOGeoJSON)
- $(cmake-utils_use xdmf2 Module_vtkIOXdmf2)
- )
- # Apple stuff, does it really work?
- mycmakeargs+=( $(cmake-utils_use aqua VTK_USE_COCOA) )
-
- if use examples || use test; then
- mycmakeargs+=( -DBUILD_TESTING=ON )
- fi
-
- if use kaapi; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
- elif use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- if use java; then
-# local _ejavahome=${EPREFIX}/etc/java-config-2/current-system-vm
-#
-# mycmakeargs+=(
-# -DJAVAC=${EPREFIX}/usr/bin/javac
-# -DJAVAC=$(java-config -c)
-# -DJAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
-# -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include
-# -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux
-# )
-#
- if [ "${ARCH}" == "amd64" ]; then
- mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so;${JAVA_HOME}/jre/lib/${ARCH}/xawt/libmawt.so" )
- else
- mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/i386/libjawt.so;${JAVA_HOME}/jre/lib/i386/xawt/libmawt.so" )
- fi
- fi
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${PREFIX} --root=${D}"
- )
- fi
-
- if use qt4; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/designer
- -DDESIRED_QT_VERSION=4
- -DVTK_QT_VERSION=4
- -DQT_MOC_EXECUTABLE="$(qt4_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt4_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt4"
- -DQT_QMAKE_EXECUTABLE="$(qt4_get_bindir)/qmake"
- )
- fi
-
- if use R; then
- mycmakeargs+=(
-# -DR_LIBRARY_BLAS=$($(tc-getPKG_CONFIG) --libs blas)
-# -DR_LIBRARY_LAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- cmake-utils_src_configure
-}
-
-src_test() {
- local tcllib
- ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
- for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
- ln -sf $(basename "${tcllib}").1 "${tcllib/.so/-${SPV}.so}" || die
- done
- export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
- local VIRTUALX_COMMAND="cmake-utils_src_test"
-# local VIRTUALX_COMMAND="cmake-utils_src_test -R Java"
-# local VIRTUALX_COMMAND="cmake-utils_src_test -I 364,365"
- virtualmake
-}
-
-src_install() {
- use web && webapp_src_preinst
- # install docs
- HTML_DOCS=( "${S}"/README.html )
-
- cmake-utils_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- dodoc "${S}"/Wrapping/Tcl/README
- fi
-
- # install examples
- if use examples; then
- insinto /usr/share/${PN}
- mv -v Examples examples || die
- doins -r examples
- fi
-
- #install big docs
- if use doc; then
- cd "${WORKDIR}"/html || die
- rm -f *.md5 || die "Failed to remove superfluous hashes"
- einfo "Installing API docs. This may take some time."
- docinto html
- dodoc -r ./*
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2016-11-06 20:15 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2016-11-06 20:15 UTC (permalink / raw
To: gentoo-commits
commit: ea95f9d08349311b5b546c0de3feb1fea970ae4c
Author: Harald Timeraider <timeraider <AT> gmx <DOT> at>
AuthorDate: Tue Oct 25 14:41:23 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 20:14:47 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea95f9d0
sci-libs/vtk: added support for qt5
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2663
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-libs/vtk/vtk-6.1.0-r4.ebuild | 390 +++++++++++++++++++++++++++++++++++++++
1 file changed, 390 insertions(+)
diff --git a/sci-libs/vtk/vtk-6.1.0-r4.ebuild b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
new file mode 100644
index 00000000..912030b
--- /dev/null
+++ b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
@@ -0,0 +1,390 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+CMAKE_MAKEFILE_GENERATOR=ninja
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="http://www.vtk.org/"
+SRC_URI="
+ http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
+ test? (
+ http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ http://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )
+ "
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost cg doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering smp tbb test theora tk tcl
+ video_cards_nvidia views web xdmf2 R +X"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ smp? ( ^^ ( kaapi tbb ) )
+ test? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )
+ "
+
+RDEPEND="
+ dev-libs/expat
+ dev-libs/jsoncpp
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ media-libs/libpng:0
+ media-libs/mesa
+ media-libs/libtheora
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ >=x11-libs/gl2ps-1.3.8
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( >=dev-libs/boost-1.40.0[mpi?] )
+ cg? ( media-gfx/nvidia-cg-toolkit )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ sci-libs/vtkdata
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jre-1.5:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ web? (
+ ${WEBAPP_DEPEND}
+ python? (
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ )
+ xdmf2? ( sci-libs/xdmf2 )
+ R? ( dev-lang/R )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )
+ java? ( >=virtual/jdk-1.5 )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-freetype.patch
+ "${FILESDIR}"/${P}-install.patch
+ "${FILESDIR}"/${P}-system.patch
+ "${FILESDIR}"/${P}-netcdf.patch
+ "${FILESDIR}"/${P}-web.patch
+ "${FILESDIR}"/${P}-glext.patch
+ "${FILESDIR}"/${P}-memset.patch
+ "${FILESDIR}"/${P}-gdal2.patch
+ )
+
+RESTRICT=test
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+}
+
+src_prepare() {
+ sed \
+ -e 's:libproj4:libproj:g' \
+ -e 's:lib_proj.h:lib_abi.h:g' \
+ -i CMake/FindLIBPROJ4.cmake || die
+
+ local x
+ # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/autobahn \
+ ThirdParty/Twisted/twisted \
+ ThirdParty/ZopeInterface/zope \
+ || die
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+# -DCMAKE_SKIP_RPATH=YES
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_DATA_ROOT:PATH="${EPREFIX}/usr/share/${PN}/data"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ -DVTK_USE_SYSTEM_GL2PS=ON
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+# -DLIBPROJ4_DIR="${EPREFIX}/usr"
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ )
+
+ mycmakeargs+=(
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ )
+
+ mycmakeargs+=(
+ $(cmake-utils_use_build doc DOCUMENTATION)
+ $(cmake-utils_use_build examples EXAMPLES)
+ $(cmake-utils_use_build test VTK_BUILD_ALL_MODULES_FOR_TESTS)
+ $(cmake-utils_use all-modules VTK_BUILD_ALL_MODULES)
+ $(cmake-utils_use doc DOCUMENTATION_HTML_HELP)
+ $(cmake-utils_use imaging VTK_Group_Imaging)
+ $(cmake-utils_use mpi VTK_Group_MPI)
+ $(cmake-utils_use rendering VTK_Group_Rendering)
+ $(cmake-utils_use tk VTK_Group_Tk)
+ $(cmake-utils_use views VTK_Group_Views)
+ $(cmake-utils_use web VTK_Group_Web)
+ $(cmake-utils_use web VTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}")
+ $(cmake-utils_use java VTK_WRAP_JAVA)
+ $(cmake-utils_use python VTK_WRAP_PYTHON)
+ $(cmake-utils_use python VTK_WRAP_PYTHON_SIP)
+ $(cmake-utils_use tcl VTK_WRAP_TCL)
+ )
+
+ mycmakeargs+=(
+ $(cmake-utils_use boost VTK_USE_BOOST)
+ $(cmake-utils_use cg VTK_USE_CG_SHADERS)
+ $(cmake-utils_use odbc VTK_USE_ODBC)
+ $(cmake-utils_use offscreen VTK_USE_OFFSCREEN)
+ $(cmake-utils_use offscreen VTK_OPENGL_HAS_OSMESA)
+ $(cmake-utils_use smp vtkFiltersSMP)
+ $(cmake-utils_use theora VTK_USE_OGGTHEORA_ENCODER)
+ $(cmake-utils_use video_cards_nvidia VTK_USE_NVCONTROL)
+ $(cmake-utils_use R Module_vtkFiltersStatisticsGnuR)
+ $(cmake-utils_use X VTK_USE_X)
+ )
+
+ # IO
+ mycmakeargs+=(
+ $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER)
+ $(cmake-utils_use gdal Module_vtkIOGDAL)
+ $(cmake-utils_use json Module_vtkIOGeoJSON)
+ $(cmake-utils_use xdmf2 Module_vtkIOXdmf2)
+ )
+ # Apple stuff, does it really work?
+ mycmakeargs+=( $(cmake-utils_use aqua VTK_USE_COCOA) )
+
+ if use examples || use test; then
+ mycmakeargs+=( -DBUILD_TESTING=ON )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use java; then
+# local _ejavahome=${EPREFIX}/etc/java-config-2/current-system-vm
+#
+# mycmakeargs+=(
+# -DJAVAC=${EPREFIX}/usr/bin/javac
+# -DJAVAC=$(java-config -c)
+# -DJAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
+# -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include
+# -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux
+# )
+#
+ if [ "${ARCH}" == "amd64" ]; then
+ mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so;${JAVA_HOME}/jre/lib/${ARCH}/xawt/libmawt.so" )
+ else
+ mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/i386/libjawt.so;${JAVA_HOME}/jre/lib/i386/xawt/libmawt.so" )
+ fi
+ fi
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${PREFIX} --root=${D}"
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt5/plugins/designer
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+# -DR_LIBRARY_BLAS=$($(tc-getPKG_CONFIG) --libs blas)
+# -DR_LIBRARY_LAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local tcllib
+ ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
+ for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
+ ln -sf $(basename "${tcllib}").1 "${tcllib/.so/-${SPV}.so}" || die
+ done
+ export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
+ local VIRTUALX_COMMAND="cmake-utils_src_test"
+# local VIRTUALX_COMMAND="cmake-utils_src_test -R Java"
+# local VIRTUALX_COMMAND="cmake-utils_src_test -I 364,365"
+ virtualmake
+}
+
+src_install() {
+ use web && webapp_src_preinst
+ # install docs
+ HTML_DOCS=( "${S}"/README.html )
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc "${S}"/Wrapping/Tcl/README
+ fi
+
+ # install examples
+ if use examples; then
+ insinto /usr/share/${PN}
+ mv -v Examples examples || die
+ doins -r examples
+ fi
+
+ #install big docs
+ if use doc; then
+ cd "${WORKDIR}"/html || die
+ rm -f *.md5 || die "Failed to remove superfluous hashes"
+ einfo "Installing API docs. This may take some time."
+ docinto html
+ dodoc -r ./*
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2016-12-20 19:16 Tobias Klausmann
0 siblings, 0 replies; 92+ messages in thread
From: Tobias Klausmann @ 2016-12-20 19:16 UTC (permalink / raw
To: gentoo-commits
commit: 1de7127f3f72b4d07aad29edb29ba9764197896c
Author: Tobias Klausmann <klausman <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 20 19:15:29 2016 +0000
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org>
CommitDate: Tue Dec 20 19:15:29 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1de7127f
sci-libs/vtk-6.1.0-r3: stable on amd64
Gentoo-Bug: 595654
sci-libs/vtk/vtk-6.1.0-r3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r3.ebuild b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
index 2065cc7..46f7a58 100644
--- a/sci-libs/vtk/vtk-6.1.0-r3.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
@@ -26,7 +26,7 @@ SRC_URI="
"
LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost cg doc examples imaging ffmpeg gdal java json kaapi mpi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-01-26 20:12 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2017-01-26 20:12 UTC (permalink / raw
To: gentoo-commits
commit: da863a9b28eea420ef790eef414fccffbc3f8190
Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
AuthorDate: Wed Jan 25 21:25:37 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 20:12:03 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da863a9b
sci-libs/vtk: Version bump to 7.1.0
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2936
sci-libs/vtk/Manifest | 6 +-
sci-libs/vtk/vtk-7.1.0.ebuild | 350 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 354 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index e65a809..e25d446 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,10 +1,12 @@
DIST VTK-6.1.0.tar.gz 27608882 SHA256 bd7df10a479606d529a8b71f466c44a2bdd11fd534c62ce0aa44fad91883fa34 SHA512 3ab922166502348e5cdd68e14dbf4717c0405c9d8881c04aa8be8f95d8516af39cd02aaca5171c6de8af1b462ca386399b7a87a843ec62999f0f32c11788a2dc WHIRLPOOL e387390efdc8cd2e413524794786369ba8a2bfe788913dfb161b82d9bc041e15ed5585286bebe38f955d1def3043481303d3bc74c648bbf5bf856e212ac9950c
DIST VTK-7.0.0.tar.gz 30659751 SHA256 78a990a15ead79cdc752e86b83cfab7dbf5b7ef51ba409db02570dbdd9ec32c3 SHA512 4ce51ff6ddf56f1fb45c1b09a09389bc43dffd892f80c833ea861537e02a61079e9cfd3931308f7d72f37d1977806ed2ce010a7b5c2c1a0c5bb1435e09e1f049 WHIRLPOOL 5b6aaf42440b27b6d46ceb5484266df84c7dd205eb87353faec034a080b0d2bc61dafaee05ff3d16e381fae8ec00ef093a93f422d531d7061250f4c15dd6be37
+DIST VTK-7.1.0.tar.gz 31171521 SHA256 5f3ea001204d4f714be972a810a62c0f2277fbb9d8d2f8df39562988ca37497a SHA512 83f0c9291cd2bc517a4bc449ad28a1d77e7ece169e846c7beab0b1140b9ef4b7bad30e3fa6e5a59826a707df78e2e336e07fa8bd30cf7498096ee80feef16534 WHIRLPOOL 7e52342bae6487f3cdede70a6b77da4c74b27d8e9eb45aef3065f12d4ff940093b4051b1d3bfb523ddbd2b9b4f18da5b78c32570c2d76dcc8ea1aebaa8987047
DIST VTKData-6.1.0.tar.gz 94452190 SHA256 aba27ac05d721e36b9424131f1d0f673448f2b31aac34e9e74590fdf208ad0c7 SHA512 4e23cc3de3b81a852458849f2bd4dfe2e84e9df4f77f5f0d4ac249b04a7f74144a483a91876bd748bb90685d1943071e9b36fce8dd618376621bc37e63365e65 WHIRLPOOL 1ee803055e3bbf0c8150807a77efce81406c8a512c40644c5ccc35279cb1098bb8f0382b5f2bb01f483c8a38a4e81ee70ed39145c52b4375a0545919faee2a28
DIST VTKData-7.0.0.tar.gz 183031503 SHA256 68260172ed85134a135a2a7ab2173f6e44640dc20de43fa0f286b545a53fae15 SHA512 a97fd3a3df96b09ee356f60bae190bbd5ca803d774fcfae5d788a897662ba1344990ca0981e41d2b3caa0750b08ed9e60905df2a1dfe29e4b9fba68e6e13c3de WHIRLPOOL dd1bf3faf428cfecb7f85b0b5239a11b48d4d3240c4b44bcb7bbeac91692d976a53a63d7705814d86450af93d5df8a570f612e67c3503d485d6f5522e33375c9
+DIST VTKData-7.1.0.tar.gz 249106922 SHA256 4e476a982b08de1ea8d6655ba6dde6ec3fdfa4720d093a184fba6978f8406795 SHA512 8f78fdce36fc683c8b8b7137a02fd727f322ceecce66f20a4b1b3f8d260e8e894c1ec1ed46eb2427e501239f12b02b1476ca3a302fa1f9287584110598972f9e WHIRLPOOL 1998bb07ab7c689033dd061b4d4fae96515521c80e81f7b3984b0990fcb692417fd2ffd27329c7024dd363595bc5ac9a4e03ce36efb8b088e8b10f093080f4b0
DIST VTKLargeData-6.1.0.tar.gz 166019220 SHA256 d8985508ff2b7fbfbae0aadedfbe2b293640cf6441d3cce41da5c3f591c96d4c SHA512 3663a124c16448882ad3aef0fb15f55f438863ba2176106803ad9c6fb561325accd74f2675d8b6e1de791babfa8b992e516d87640efedda4a6daeb5affc2cf3f WHIRLPOOL db62af365a5c1d71b209d21578184ff1ee7a5913aefd7e5729b7dc555bdd20a8f070ed83051387634bf6a9fc1141ab68a291ec0d557602fa5802e3e6020b7ae1
DIST VTKLargeData-7.0.0.tar.gz 166680081 SHA256 27db751b93480c0ea9362927a25d8ab5b2cb47532b1e898cdf77c1e41db29ecc SHA512 a17d7b883262c12a0cf0689eec02d92415746d3eea64d308e22d4945e0eaa2bef8eadafef995690c1e02d357c8887a62702c5eaf0f46fe19a66cb9993ce18624 WHIRLPOOL 1e19a68d3a4e7e00d417ddf7f460331179b26f9ef434beedfc52e31a4733892fbd11209c45763a69c775fcbd510971f6463f00e9dbc794945db5110fe646bf84
-DIST vtk-6.0.0.tar.gz 24170173 SHA256 426df543cffeacf21154dddcd2a6efbd91a586570a07a0db4c426d3e0acd10e4 SHA512 ac238e2d228df4fc4d324826b8729af9ab3274039d5abf834f013fb4deaddc116ba2b1b24fb93aaf4b1bfc4bb321d19bc05566883cf3db1f982c9650d77583e8 WHIRLPOOL b8619e254f97392dae01b8e2376bd70a07ce21504580d29844fcf1ab5621d85ba12bfd6047b4f90afd2b648d8b6c17e4ce5d789d6e1f84b5a4f847de5ee376b9
-DIST vtkDocHtml-6.0.0.tar.gz 204228463 SHA256 f5324c4c197b0cacd19bf1e5721bb012d753d49526e224d9f2dd7412f34e4434 SHA512 b6d5660f3ae6046c63b22b613cab6822f45f6b30a09522277e32f941c75dc48e8c92abc4d7f02b17e3f4d8e625de6dce7f000acc79e2d588a13d1577c139291a WHIRLPOOL b951c4ee62639c6bada2e02c2fceddbdb730c76d80c61a6ed013d8d9878b78a697158f41f53d68b5d62e4baa1f9ecb88e2437490da7610970622a40ecb14db1f
+DIST VTKLargeData-7.1.0.tar.gz 166680011 SHA256 dbf9e9a427e1183886ee7686272c571447491eb7179036f2401622ac7987c6b2 SHA512 79d058732932837f2873a14850e18375d6a43f07de7cf4b71570ae32cf7abb7651052378ff9cbd1e221c95f78e46c13c9852425a509ae02c826f5345e836e455 WHIRLPOOL 3dfb71273a3de14d046f42e8f19b96c04fa08ae5f91309b595143e8c3be7206115c71a87816ae6415bf17b4b739b41a618d79f6e5acbd06193e5114eb88c975d
DIST vtkDocHtml-6.1.0.tar.gz 230827905 SHA256 e35d0f5b7905e5c827d8daa71ee61b14dc080445efad91f97583a2b9303c1813 SHA512 fcae74a65157d87b39a162facdecbb0ab0a9b95b9f2555ed2b15d635b82034bfc62181eea441caf0b1edbe036b792a8231d409908b943398ce7f662c149d3a60 WHIRLPOOL bc1714223259953a605612c0da124ece60604989458b7de5cf24b37d0f4c339f50c07a13d899f218364e61a35f8e1ace126eda5e83acbc3fe4930b041df0f55d
DIST vtkDocHtml-7.0.0.tar.gz 114223726 SHA256 e2f5ff7b693880d6f7dd842428d212ea2739dd93f12f008adce3b9958125d65d SHA512 062a2d23df2c1330b2ef46758038cd222923d17c1f3bf810f6df30456729c2f33a921815cd501aa41aeb9739500f121a5b35538613365cbf30f3c7a483e4a235 WHIRLPOOL 853894c3a382dccb3f2947911b7b10fd76956fe48a4ba0ad71169e826a2e663bb965bbf4026c8874e4c9df1778ee5c6a0147fab7140169a9674c63daf7fc6f98
+DIST vtkDocHtml-7.1.0.tar.gz 128927849 SHA256 e69c15a247769437768d1904dd3e36eda1829ae2db5843929b3e64febb8bb35c SHA512 cac6d005262d3849f84c2632dd737c4dcd9f23d5015266d683bcc8c65fad0d88e87faf9b1d5f68fdabe7b2ed97927a9f907020cbeae2b6e7223a5ffee54f2679 WHIRLPOOL ac6c5c577151ab4b7cc832bfef06b4d4e5372bd0f31e89f80cd46afde44ba416bde3cc9e558c193ace0c79c27e46adb43d898b64d61dbc260d363517a49b0dce
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
new file mode 100644
index 00000000..ecf401e
--- /dev/null
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -0,0 +1,350 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="http://www.vtk.org/"
+SRC_URI="
+ http://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( http://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ test? (
+ http://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ http://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )
+ "
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering tbb test theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ test? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )
+ "
+
+RDEPEND="
+ boost? ( dev-libs/boost:=[mpi?] )
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ sci-libs/vtkdata
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ >=media-libs/freetype-2.5.4
+ media-libs/libpng:0=
+ media-libs/mesa
+ media-libs/libtheora
+ media-libs/tiff:0
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ R? ( dev-lang/R )
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ virtual/jpeg:0
+ virtual/opengl
+ web? (
+ ${WEBAPP_DEPEND}
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ xdmf2? ( sci-libs/xdmf2 )
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt"
+
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.0.0-glext.patch
+ "${FILESDIR}"/${PN}-6.1.0-memset.patch
+ )
+
+RESTRICT=test
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ sed \
+ -e 's:libproj4:libproj:g' \
+ -e 's:lib_proj.h:lib_abi.h:g' \
+ -i CMake/FindLIBPROJ4.cmake || die
+
+ local x
+ # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in expat freetype hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/autobahn \
+ ThirdParty/Twisted/twisted \
+ ThirdParty/ZopeInterface/zope \
+ || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=$(usex test)
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use examples || use test; then
+ mycmakeargs+=( -DBUILD_TESTING=ON )
+ fi
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local tcllib
+ ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
+ for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
+ ln -sf ${tcllib##*/}.1 "${tcllib/.so/-${SPV}.so}" || die
+ done
+ export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
+ virtx cmake-utils_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc Wrapping/Tcl/README
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ #install big docs
+ if use doc; then
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ einfo "Installing API docs. This may take some time."
+ dodoc -r "${WORKDIR}"/html
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-05-06 22:20 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2017-05-06 22:20 UTC (permalink / raw
To: gentoo-commits
commit: 909cba127b3fe89b8668e186654a2e26cd2a6d28
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 6 15:02:35 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 6 22:20:01 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=909cba12
sci-libs/vtk: Remove PREFIX setting for CMake
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4555
sci-libs/vtk/vtk-6.1.0-r3.ebuild | 2 +-
sci-libs/vtk/vtk-6.1.0-r4.ebuild | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r3.ebuild b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
index 6bac474feaf..7367f5ccbe6 100644
--- a/sci-libs/vtk/vtk-6.1.0-r3.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
@@ -291,7 +291,7 @@ src_configure() {
-DSIP_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${PREFIX} --root=${D}"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX}/usr --root=${D}"
)
fi
diff --git a/sci-libs/vtk/vtk-6.1.0-r4.ebuild b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
index 11c77033d08..9f22a8e6793 100644
--- a/sci-libs/vtk/vtk-6.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -290,7 +290,7 @@ src_configure() {
-DSIP_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${PREFIX} --root=${D}"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX}/usr --root=${D}"
)
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-07-04 10:17 Agostino Sarubbo
0 siblings, 0 replies; 92+ messages in thread
From: Agostino Sarubbo @ 2017-07-04 10:17 UTC (permalink / raw
To: gentoo-commits
commit: 3b374defc79a94b49246f832bef7834348fc3122
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 4 10:16:16 2017 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Jul 4 10:16:16 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b374def
sci-libs/vtk: amd64 stable wrt bug #620750
Package-Manager: Portage-2.3.6, Repoman-2.3.1
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
sci-libs/vtk/vtk-7.1.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index d235d8deaf3..59bac4ebf01 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -24,7 +24,7 @@ SRC_URI="
"
LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-07-04 15:49 Agostino Sarubbo
0 siblings, 0 replies; 92+ messages in thread
From: Agostino Sarubbo @ 2017-07-04 15:49 UTC (permalink / raw
To: gentoo-commits
commit: b9938efc5e1d3b33128d210b98e56e18c008cde9
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 4 15:48:14 2017 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Jul 4 15:48:14 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9938efc
sci-libs/vtk: x86 stable wrt bug #620750
Package-Manager: Portage-2.3.6, Repoman-2.3.1
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
sci-libs/vtk/vtk-7.1.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index 59bac4ebf01..b3324b6d7d7 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -24,7 +24,7 @@ SRC_URI="
"
LICENSE="BSD LGPL-2"
-KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-11-06 1:58 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2017-11-06 1:58 UTC (permalink / raw
To: gentoo-commits
commit: 0e0aa278fcc593b5168ce201e4c75ae19d350078
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 5 20:10:29 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 6 01:57:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e0aa278
sci-libs/vtk: Switch to https
Package-Manager: Portage-2.3.13, Repoman-2.3.4
sci-libs/vtk/vtk-6.1.0-r4.ebuild | 10 +++++-----
sci-libs/vtk/vtk-7.1.0.ebuild | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r4.ebuild b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
index 409b62823c8..d93b08dc870 100644
--- a/sci-libs/vtk/vtk-6.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
@@ -14,13 +14,13 @@ inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versiona
SPV="$(get_version_component_range 1-2)"
DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="http://www.vtk.org/"
+HOMEPAGE="https://www.vtk.org/"
SRC_URI="
- http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
+ https://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
test? (
- http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- http://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ https://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
)
"
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index b3324b6d7d7..0ed71fe076f 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -13,13 +13,13 @@ inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator too
SPV="$(get_version_component_range 1-2)"
DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="http://www.vtk.org/"
+HOMEPAGE="https://www.vtk.org/"
SRC_URI="
- http://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( http://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
test? (
- http://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- http://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
)
"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-11-06 1:58 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2017-11-06 1:58 UTC (permalink / raw
To: gentoo-commits
commit: 2894b945fd35ad9739d317b0abe5537715445ccf
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 5 20:15:38 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 6 01:57:18 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2894b945
sci-libs/vtk: Sort (R)DEPENDs
Package-Manager: Portage-2.3.13, Repoman-2.3.4
sci-libs/vtk/vtk-6.1.0-r4.ebuild | 14 ++++++++------
sci-libs/vtk/vtk-7.1.0.ebuild | 39 ++++++++++++++++++++-------------------
2 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r4.ebuild b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
index d93b08dc870..13badd6cfd5 100644
--- a/sci-libs/vtk/vtk-6.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
@@ -77,6 +77,7 @@ RDEPEND="
mpi? (
virtual/mpi[cxx,romio]
python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
mysql? ( virtual/mysql )
odbc? ( dev-db/unixODBC )
offscreen? ( media-libs/mesa[osmesa] )
@@ -84,7 +85,6 @@ RDEPEND="
python? (
${PYTHON_DEPS}
dev-python/sip[${PYTHON_USEDEP}]
- )
)
qt5? (
dev-qt/designer:5
@@ -94,7 +94,8 @@ RDEPEND="
dev-qt/qtsql:5
dev-qt/qtwebkit:5
python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
- )
+ )
+ R? ( dev-lang/R )
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
@@ -108,10 +109,11 @@ RDEPEND="
)
)
xdmf2? ( sci-libs/xdmf2 )
- R? ( dev-lang/R )"
+"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )
- java? ( >=virtual/jdk-1.5 )"
+ java? ( >=virtual/jdk-1.5 )
+"
S="${WORKDIR}"/VTK-${PV}
@@ -125,9 +127,9 @@ PATCHES=(
"${FILESDIR}"/${P}-memset.patch
"${FILESDIR}"/${P}-gdal2.patch
"${FILESDIR}"/${P}-gcc67.patch
- )
+)
-RESTRICT=test
+RESTRICT="test"
pkg_setup() {
use java && java-pkg-opt-2_pkg_setup
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index 0ed71fe076f..8c9bff9d54a 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -43,10 +43,24 @@ REQUIRED_USE="
"
RDEPEND="
- boost? ( dev-libs/boost:=[mpi?] )
dev-libs/expat
dev-libs/jsoncpp:=
dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
examples? (
dev-qt/qtcore:5
dev-qt/qtgui:5
@@ -56,11 +70,6 @@ RDEPEND="
gdal? ( sci-libs/gdal )
java? ( >=virtual/jdk-1.7:* )
kaapi? ( <sci-libs/xkaapi-3 )
- >=media-libs/freetype-2.5.4
- media-libs/libpng:0=
- media-libs/mesa
- media-libs/libtheora
- media-libs/tiff:0
mpi? (
virtual/mpi[cxx,romio]
python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
@@ -83,16 +92,10 @@ RDEPEND="
python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
)
R? ( dev-lang/R )
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
- virtual/jpeg:0
- virtual/opengl
web? (
${WEBAPP_DEPEND}
dev-python/autobahn[${PYTHON_USEDEP}]
@@ -100,21 +103,19 @@ RDEPEND="
dev-python/zope-interface[${PYTHON_USEDEP}]
)
xdmf2? ( sci-libs/xdmf2 )
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt"
-
+"
DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
+ doc? ( app-doc/doxygen )
+"
S="${WORKDIR}"/VTK-${PV}
PATCHES=(
"${FILESDIR}"/${PN}-7.0.0-glext.patch
"${FILESDIR}"/${PN}-6.1.0-memset.patch
- )
+)
-RESTRICT=test
+RESTRICT="test"
pkg_setup() {
use java && java-pkg-opt-2_pkg_setup
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-11-06 1:58 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2017-11-06 1:58 UTC (permalink / raw
To: gentoo-commits
commit: f65d777114375d66e7b4d7f44c74c3ff2111de79
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 6 00:02:55 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 6 01:57:16 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65d7771
sci-libs/vtk: Drop old
Package-Manager: Portage-2.3.13, Repoman-2.3.4
sci-libs/vtk/Manifest | 4 -
sci-libs/vtk/vtk-6.1.0-r3.ebuild | 390 ---------------------------------------
sci-libs/vtk/vtk-7.0.0.ebuild | 348 ----------------------------------
3 files changed, 742 deletions(-)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index e25d4468ada..adfbf858551 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,12 +1,8 @@
DIST VTK-6.1.0.tar.gz 27608882 SHA256 bd7df10a479606d529a8b71f466c44a2bdd11fd534c62ce0aa44fad91883fa34 SHA512 3ab922166502348e5cdd68e14dbf4717c0405c9d8881c04aa8be8f95d8516af39cd02aaca5171c6de8af1b462ca386399b7a87a843ec62999f0f32c11788a2dc WHIRLPOOL e387390efdc8cd2e413524794786369ba8a2bfe788913dfb161b82d9bc041e15ed5585286bebe38f955d1def3043481303d3bc74c648bbf5bf856e212ac9950c
-DIST VTK-7.0.0.tar.gz 30659751 SHA256 78a990a15ead79cdc752e86b83cfab7dbf5b7ef51ba409db02570dbdd9ec32c3 SHA512 4ce51ff6ddf56f1fb45c1b09a09389bc43dffd892f80c833ea861537e02a61079e9cfd3931308f7d72f37d1977806ed2ce010a7b5c2c1a0c5bb1435e09e1f049 WHIRLPOOL 5b6aaf42440b27b6d46ceb5484266df84c7dd205eb87353faec034a080b0d2bc61dafaee05ff3d16e381fae8ec00ef093a93f422d531d7061250f4c15dd6be37
DIST VTK-7.1.0.tar.gz 31171521 SHA256 5f3ea001204d4f714be972a810a62c0f2277fbb9d8d2f8df39562988ca37497a SHA512 83f0c9291cd2bc517a4bc449ad28a1d77e7ece169e846c7beab0b1140b9ef4b7bad30e3fa6e5a59826a707df78e2e336e07fa8bd30cf7498096ee80feef16534 WHIRLPOOL 7e52342bae6487f3cdede70a6b77da4c74b27d8e9eb45aef3065f12d4ff940093b4051b1d3bfb523ddbd2b9b4f18da5b78c32570c2d76dcc8ea1aebaa8987047
DIST VTKData-6.1.0.tar.gz 94452190 SHA256 aba27ac05d721e36b9424131f1d0f673448f2b31aac34e9e74590fdf208ad0c7 SHA512 4e23cc3de3b81a852458849f2bd4dfe2e84e9df4f77f5f0d4ac249b04a7f74144a483a91876bd748bb90685d1943071e9b36fce8dd618376621bc37e63365e65 WHIRLPOOL 1ee803055e3bbf0c8150807a77efce81406c8a512c40644c5ccc35279cb1098bb8f0382b5f2bb01f483c8a38a4e81ee70ed39145c52b4375a0545919faee2a28
-DIST VTKData-7.0.0.tar.gz 183031503 SHA256 68260172ed85134a135a2a7ab2173f6e44640dc20de43fa0f286b545a53fae15 SHA512 a97fd3a3df96b09ee356f60bae190bbd5ca803d774fcfae5d788a897662ba1344990ca0981e41d2b3caa0750b08ed9e60905df2a1dfe29e4b9fba68e6e13c3de WHIRLPOOL dd1bf3faf428cfecb7f85b0b5239a11b48d4d3240c4b44bcb7bbeac91692d976a53a63d7705814d86450af93d5df8a570f612e67c3503d485d6f5522e33375c9
DIST VTKData-7.1.0.tar.gz 249106922 SHA256 4e476a982b08de1ea8d6655ba6dde6ec3fdfa4720d093a184fba6978f8406795 SHA512 8f78fdce36fc683c8b8b7137a02fd727f322ceecce66f20a4b1b3f8d260e8e894c1ec1ed46eb2427e501239f12b02b1476ca3a302fa1f9287584110598972f9e WHIRLPOOL 1998bb07ab7c689033dd061b4d4fae96515521c80e81f7b3984b0990fcb692417fd2ffd27329c7024dd363595bc5ac9a4e03ce36efb8b088e8b10f093080f4b0
DIST VTKLargeData-6.1.0.tar.gz 166019220 SHA256 d8985508ff2b7fbfbae0aadedfbe2b293640cf6441d3cce41da5c3f591c96d4c SHA512 3663a124c16448882ad3aef0fb15f55f438863ba2176106803ad9c6fb561325accd74f2675d8b6e1de791babfa8b992e516d87640efedda4a6daeb5affc2cf3f WHIRLPOOL db62af365a5c1d71b209d21578184ff1ee7a5913aefd7e5729b7dc555bdd20a8f070ed83051387634bf6a9fc1141ab68a291ec0d557602fa5802e3e6020b7ae1
-DIST VTKLargeData-7.0.0.tar.gz 166680081 SHA256 27db751b93480c0ea9362927a25d8ab5b2cb47532b1e898cdf77c1e41db29ecc SHA512 a17d7b883262c12a0cf0689eec02d92415746d3eea64d308e22d4945e0eaa2bef8eadafef995690c1e02d357c8887a62702c5eaf0f46fe19a66cb9993ce18624 WHIRLPOOL 1e19a68d3a4e7e00d417ddf7f460331179b26f9ef434beedfc52e31a4733892fbd11209c45763a69c775fcbd510971f6463f00e9dbc794945db5110fe646bf84
DIST VTKLargeData-7.1.0.tar.gz 166680011 SHA256 dbf9e9a427e1183886ee7686272c571447491eb7179036f2401622ac7987c6b2 SHA512 79d058732932837f2873a14850e18375d6a43f07de7cf4b71570ae32cf7abb7651052378ff9cbd1e221c95f78e46c13c9852425a509ae02c826f5345e836e455 WHIRLPOOL 3dfb71273a3de14d046f42e8f19b96c04fa08ae5f91309b595143e8c3be7206115c71a87816ae6415bf17b4b739b41a618d79f6e5acbd06193e5114eb88c975d
DIST vtkDocHtml-6.1.0.tar.gz 230827905 SHA256 e35d0f5b7905e5c827d8daa71ee61b14dc080445efad91f97583a2b9303c1813 SHA512 fcae74a65157d87b39a162facdecbb0ab0a9b95b9f2555ed2b15d635b82034bfc62181eea441caf0b1edbe036b792a8231d409908b943398ce7f662c149d3a60 WHIRLPOOL bc1714223259953a605612c0da124ece60604989458b7de5cf24b37d0f4c339f50c07a13d899f218364e61a35f8e1ace126eda5e83acbc3fe4930b041df0f55d
-DIST vtkDocHtml-7.0.0.tar.gz 114223726 SHA256 e2f5ff7b693880d6f7dd842428d212ea2739dd93f12f008adce3b9958125d65d SHA512 062a2d23df2c1330b2ef46758038cd222923d17c1f3bf810f6df30456729c2f33a921815cd501aa41aeb9739500f121a5b35538613365cbf30f3c7a483e4a235 WHIRLPOOL 853894c3a382dccb3f2947911b7b10fd76956fe48a4ba0ad71169e826a2e663bb965bbf4026c8874e4c9df1778ee5c6a0147fab7140169a9674c63daf7fc6f98
DIST vtkDocHtml-7.1.0.tar.gz 128927849 SHA256 e69c15a247769437768d1904dd3e36eda1829ae2db5843929b3e64febb8bb35c SHA512 cac6d005262d3849f84c2632dd737c4dcd9f23d5015266d683bcc8c65fad0d88e87faf9b1d5f68fdabe7b2ed97927a9f907020cbeae2b6e7223a5ffee54f2679 WHIRLPOOL ac6c5c577151ab4b7cc832bfef06b4d4e5372bd0f31e89f80cd46afde44ba416bde3cc9e558c193ace0c79c27e46adb43d898b64d61dbc260d363517a49b0dce
diff --git a/sci-libs/vtk/vtk-6.1.0-r3.ebuild b/sci-libs/vtk/vtk-6.1.0-r3.ebuild
deleted file mode 100644
index 1345bde683e..00000000000
--- a/sci-libs/vtk/vtk-6.1.0-r3.ebuild
+++ /dev/null
@@ -1,390 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 )
-CMAKE_MAKEFILE_GENERATOR=ninja
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit eutils flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
-
-# Short package version
-SPV="$(get_version_component_range 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="http://www.vtk.org/"
-SRC_URI="
- http://www.${PN}.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( http://www.${PN}.org/files/release/${SPV}/${PN}DocHtml-${PV}.tar.gz )
- test? (
- http://www.${PN}.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- http://www.${PN}.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )
- "
-
-LICENSE="BSD LGPL-2"
-KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
-SLOT="0"
-IUSE="
- all-modules aqua boost cg doc examples imaging ffmpeg gdal java json kaapi mpi
- mysql odbc offscreen postgres python qt4 rendering smp tbb test theora tk tcl
- video_cards_nvidia views web xdmf2 R +X"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 )
- java? ( qt4 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- smp? ( ^^ ( kaapi tbb ) )
- test? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )
- "
-
-RDEPEND="
- dev-libs/expat
- dev-libs/jsoncpp
- dev-libs/libxml2:2
- >=media-libs/freetype-2.5.4
- media-libs/libpng:0
- media-libs/mesa
- media-libs/libtheora
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- >=x11-libs/gl2ps-1.3.8
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- boost? ( >=dev-libs/boost-1.40.0[mpi?] )
- cg? ( media-gfx/nvidia-cg-toolkit )
- examples? (
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- sci-libs/vtkdata
- )
- ffmpeg? ( virtual/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jre-1.5:* )
- kaapi? ( <sci-libs/xkaapi-3 )
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- mysql? ( virtual/mysql )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[${PYTHON_USEDEP}]
- )
- )
- qt4? (
- dev-qt/designer:4
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-qt/qtopengl:4
- dev-qt/qtsql:4
- dev-qt/qtwebkit:4
- python? ( dev-python/PyQt4[${PYTHON_USEDEP}] )
- )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
- web? (
- ${WEBAPP_DEPEND}
- python? (
- dev-python/autobahn[${PYTHON_USEDEP}]
- dev-python/twisted-core[${PYTHON_USEDEP}]
- dev-python/zope-interface[${PYTHON_USEDEP}]
- )
- )
- xdmf2? ( sci-libs/xdmf2 )
- R? ( dev-lang/R )"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )
- java? ( >=virtual/jdk-1.5 )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${P}-freetype.patch
- "${FILESDIR}"/${P}-install.patch
- "${FILESDIR}"/${P}-system.patch
- "${FILESDIR}"/${P}-netcdf.patch
- "${FILESDIR}"/${P}-web.patch
- "${FILESDIR}"/${P}-glext.patch
- "${FILESDIR}"/${P}-memset.patch
- "${FILESDIR}"/${P}-gdal2.patch
- "${FILESDIR}"/${P}-gcc67.patch
- )
-
-RESTRICT=test
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-}
-
-src_prepare() {
- sed \
- -e 's:libproj4:libproj:g' \
- -e 's:lib_proj.h:lib_abi.h:g' \
- -i CMake/FindLIBPROJ4.cmake || die
-
- local x
- # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- rm -r \
- ThirdParty/AutobahnPython/autobahn \
- ThirdParty/Twisted/twisted \
- ThirdParty/ZopeInterface/zope \
- || die
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
-# -DCMAKE_SKIP_RPATH=YES
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_DATA_ROOT:PATH="${EPREFIX}/usr/share/${PN}/data"
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- -DVTK_USE_SYSTEM_GL2PS=ON
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ4=OFF
-# -DLIBPROJ4_DIR="${EPREFIX}/usr"
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- )
-
- mycmakeargs+=(
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- )
-
- mycmakeargs+=(
- $(cmake-utils_use_build doc DOCUMENTATION)
- $(cmake-utils_use_build examples EXAMPLES)
- $(cmake-utils_use_build test VTK_BUILD_ALL_MODULES_FOR_TESTS)
- $(cmake-utils_use all-modules VTK_BUILD_ALL_MODULES)
- $(cmake-utils_use doc DOCUMENTATION_HTML_HELP)
- $(cmake-utils_use imaging VTK_Group_Imaging)
- $(cmake-utils_use mpi VTK_Group_MPI)
- $(cmake-utils_use qt4 VTK_Group_Qt)
- $(cmake-utils_use rendering VTK_Group_Rendering)
- $(cmake-utils_use tk VTK_Group_Tk)
- $(cmake-utils_use views VTK_Group_Views)
- $(cmake-utils_use web VTK_Group_Web)
- $(cmake-utils_use web VTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}")
- $(cmake-utils_use java VTK_WRAP_JAVA)
- $(cmake-utils_use python VTK_WRAP_PYTHON)
- $(cmake-utils_use python VTK_WRAP_PYTHON_SIP)
- $(cmake-utils_use tcl VTK_WRAP_TCL)
- )
-
- mycmakeargs+=(
- $(cmake-utils_use boost VTK_USE_BOOST)
- $(cmake-utils_use cg VTK_USE_CG_SHADERS)
- $(cmake-utils_use odbc VTK_USE_ODBC)
- $(cmake-utils_use offscreen VTK_USE_OFFSCREEN)
- $(cmake-utils_use offscreen VTK_OPENGL_HAS_OSMESA)
- $(cmake-utils_use smp vtkFiltersSMP)
- $(cmake-utils_use theora VTK_USE_OGGTHEORA_ENCODER)
- $(cmake-utils_use video_cards_nvidia VTK_USE_NVCONTROL)
- $(cmake-utils_use R Module_vtkFiltersStatisticsGnuR)
- $(cmake-utils_use X VTK_USE_X)
- )
-
- # IO
- mycmakeargs+=(
- $(cmake-utils_use ffmpeg VTK_USE_FFMPEG_ENCODER)
- $(cmake-utils_use gdal Module_vtkIOGDAL)
- $(cmake-utils_use json Module_vtkIOGeoJSON)
- $(cmake-utils_use xdmf2 Module_vtkIOXdmf2)
- )
- # Apple stuff, does it really work?
- mycmakeargs+=( $(cmake-utils_use aqua VTK_USE_COCOA) )
-
- if use examples || use test; then
- mycmakeargs+=( -DBUILD_TESTING=ON )
- fi
-
- if use kaapi; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
- elif use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- if use java; then
-# local _ejavahome=${EPREFIX}/etc/java-config-2/current-system-vm
-#
-# mycmakeargs+=(
-# -DJAVAC=${EPREFIX}/usr/bin/javac
-# -DJAVAC=$(java-config -c)
-# -DJAVA_AWT_INCLUDE_PATH=${JAVA_HOME}/include
-# -DJAVA_INCLUDE_PATH:PATH=${JAVA_HOME}/include
-# -DJAVA_INCLUDE_PATH2:PATH=${JAVA_HOME}/include/linux
-# )
-#
- if [ "${ARCH}" == "amd64" ]; then
- mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/${ARCH}/libjawt.so;${JAVA_HOME}/jre/lib/${ARCH}/xawt/libmawt.so" )
- else
- mycmakeargs+=( -DJAVA_AWT_LIBRARY="${JAVA_HOME}/jre/lib/i386/libjawt.so;${JAVA_HOME}/jre/lib/i386/xawt/libmawt.so" )
- fi
- fi
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX}/usr --root=${D}"
- )
- fi
-
- if use qt4; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR=/$(get_libdir)/qt4/plugins/designer
- -DDESIRED_QT_VERSION=4
- -DVTK_QT_VERSION=4
- -DQT_MOC_EXECUTABLE="$(qt4_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt4_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt4"
- -DQT_QMAKE_EXECUTABLE="$(qt4_get_bindir)/qmake"
- )
- fi
-
- if use R; then
- mycmakeargs+=(
-# -DR_LIBRARY_BLAS=$($(tc-getPKG_CONFIG) --libs blas)
-# -DR_LIBRARY_LAPACK=$($(tc-getPKG_CONFIG) --libs lapack)
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- cmake-utils_src_configure
-}
-
-src_test() {
- local tcllib
- ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
- for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
- ln -sf $(basename "${tcllib}").1 "${tcllib/.so/-${SPV}.so}" || die
- done
- export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
- local VIRTUALX_COMMAND="cmake-utils_src_test"
-# local VIRTUALX_COMMAND="cmake-utils_src_test -R Java"
-# local VIRTUALX_COMMAND="cmake-utils_src_test -I 364,365"
- virtualmake
-}
-
-src_install() {
- use web && webapp_src_preinst
- # install docs
- HTML_DOCS=( "${S}"/README.html )
-
- cmake-utils_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- dodoc "${S}"/Wrapping/Tcl/README
- fi
-
- # install examples
- if use examples; then
- insinto /usr/share/${PN}
- mv -v Examples examples || die
- doins -r examples
- fi
-
- #install big docs
- if use doc; then
- cd "${WORKDIR}"/html || die
- rm -f *.md5 || die "Failed to remove superfluous hashes"
- einfo "Installing API docs. This may take some time."
- docinto html
- dodoc -r ./*
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
diff --git a/sci-libs/vtk/vtk-7.0.0.ebuild b/sci-libs/vtk/vtk-7.0.0.ebuild
deleted file mode 100644
index b6db179c4bb..00000000000
--- a/sci-libs/vtk/vtk-7.0.0.ebuild
+++ /dev/null
@@ -1,348 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python2_7 )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
-
-# Short package version
-SPV="$(get_version_component_range 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="http://www.vtk.org/"
-SRC_URI="
- http://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( http://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- test? (
- http://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- http://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )
- "
-
-LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
-SLOT="0"
-IUSE="
- all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
- mysql odbc offscreen postgres python qt5 rendering tbb test theora tk tcl
- video_cards_nvidia views web xdmf2 R +X"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 boost )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- test? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )
- "
-
-RDEPEND="
- boost? ( dev-libs/boost:=[mpi?] )
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- sci-libs/vtkdata
- )
- ffmpeg? ( virtual/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.7:* )
- kaapi? ( <sci-libs/xkaapi-3 )
- >=media-libs/freetype-2.5.4
- media-libs/libpng:0=
- media-libs/mesa
- media-libs/libtheora
- media-libs/tiff:0
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- )
- mysql? ( virtual/mysql )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[${PYTHON_USEDEP}]
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtwebkit:5
- python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
- )
- R? ( dev-lang/R )
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf-cxx:0=
- sys-libs/zlib
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
- virtual/jpeg:0
- virtual/opengl
- web? (
- ${WEBAPP_DEPEND}
- dev-python/autobahn[${PYTHON_USEDEP}]
- dev-python/twisted-core[${PYTHON_USEDEP}]
- dev-python/zope-interface[${PYTHON_USEDEP}]
- )
- xdmf2? ( sci-libs/xdmf2 )
- >=x11-libs/gl2ps-1.3.8
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt"
-
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${P}-glext.patch
- "${FILESDIR}"/${PN}-6.1.0-memset.patch
- "${FILESDIR}"/${PN}-6.1.0-gdal2.patch
- )
-
-RESTRICT=test
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- sed \
- -e 's:libproj4:libproj:g' \
- -e 's:lib_proj.h:lib_abi.h:g' \
- -i CMake/FindLIBPROJ4.cmake || die
-
- local x
- # missing: VPIC alglib exodusII freerange ftgl libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in expat freetype gl2ps hdf5 jpeg jsoncpp libxml2 netcdf oggtheora png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- rm -r \
- ThirdParty/AutobahnPython/autobahn \
- ThirdParty/Twisted/twisted \
- ThirdParty/ZopeInterface/zope \
- || die
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- -DVTK_USE_SYSTEM_GL2PS=ON
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ4=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=$(usex test)
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex xdmf2)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use examples || use test; then
- mycmakeargs+=( -DBUILD_TESTING=ON )
- fi
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use kaapi; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
- elif use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake-utils_src_configure
-}
-
-src_test() {
- local tcllib
- ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
- for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
- ln -sf ${tcllib##*/}.1 "${tcllib/.so/-${SPV}.so}" || die
- done
- export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
- virtx cmake-utils_src_test
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake-utils_src_install
-
- use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- dodoc Wrapping/Tcl/README
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- #install big docs
- if use doc; then
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- einfo "Installing API docs. This may take some time."
- dodoc -r "${WORKDIR}"/html
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-11-17 18:47 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2017-11-17 18:47 UTC (permalink / raw
To: gentoo-commits
commit: 2c9f39647f523d4757bd0d7d8cf9d2abcf5648f1
Author: Bernd Waibel <waebbl <AT> gmail <DOT> com>
AuthorDate: Thu Nov 16 07:04:07 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Nov 17 18:39:23 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c9f3964
sci-libs/vtk: patch to use dev-python/twisted
Depending on dev-python/twisted-core and dev-python/autobahn produces
a block, because autobahn depends on dev-python/twisted.
Closes: https://bugs.gentoo.org/637646
Closes: https://bugs.gentoo.org/612702
Package-Manager: Portage-2.3.14, Repoman-2.3.5
Closes: https://github.com/gentoo/gentoo/pull/6200
sci-libs/vtk/vtk-7.1.0.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index 8c9bff9d54a..8ec4d6c05b1 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -98,8 +98,9 @@ RDEPEND="
video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
web? (
${WEBAPP_DEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
dev-python/autobahn[${PYTHON_USEDEP}]
- dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]
)
xdmf2? ( sci-libs/xdmf2 )
@@ -247,6 +248,7 @@ src_configure() {
-DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
-DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
)
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2017-12-22 10:55 Michael Weber
0 siblings, 0 replies; 92+ messages in thread
From: Michael Weber @ 2017-12-22 10:55 UTC (permalink / raw
To: gentoo-commits
commit: a5f8c3d3c443353c515e0c38915e3eeea0d10e87
Author: Michael Weber <xmw <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 22 10:51:35 2017 +0000
Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Fri Dec 22 10:54:57 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5f8c3d3
sci-libs/vtk: Add DEPEND on dev-qt/qtx11extras:5.
Closes: https://bugs.gentoo.org/641008
Package-Manager: Portage-2.3.19, Repoman-2.3.6
sci-libs/vtk/vtk-7.1.0.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index 8ec4d6c05b1..80be41eec4c 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -89,6 +89,7 @@ RDEPEND="
dev-qt/qtopengl:5
dev-qt/qtsql:5
dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
)
R? ( dev-lang/R )
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-01-24 19:53 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2018-01-24 19:53 UTC (permalink / raw
To: gentoo-commits
commit: f65d47fe4d9f73cbe3b88f9af08fa1fad859fb93
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
AuthorDate: Mon Jan 22 20:50:35 2018 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 19:52:54 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f65d47fe
sci-libs/vtk: version bump to 8.1.0
Closes: https://bugs.gentoo.org/638024
sci-libs/vtk/Manifest | 4 +
sci-libs/vtk/vtk-8.1.0.ebuild | 339 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 343 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 5ff4564e274..c71c0af2c89 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,8 +1,12 @@
DIST VTK-6.1.0.tar.gz 27608882 BLAKE2B 10cef62e2fc3bf7109f7b3e9858721850243a7798fe885c6a584dba9a6f74c526c58b009f2cba6c56512a6ec159dbf29ac965f9ae6533128f3a20e7224bdddc0 SHA512 3ab922166502348e5cdd68e14dbf4717c0405c9d8881c04aa8be8f95d8516af39cd02aaca5171c6de8af1b462ca386399b7a87a843ec62999f0f32c11788a2dc
DIST VTK-7.1.0.tar.gz 31171521 BLAKE2B e607aa8437b4b4546cf3be5fa1fd771d07e2c0e5f85faeeb4585aae139fc40564939ccd3ec5efd4e63711789de300cf70edede46bfb54228bf6ea783d9dec39b SHA512 83f0c9291cd2bc517a4bc449ad28a1d77e7ece169e846c7beab0b1140b9ef4b7bad30e3fa6e5a59826a707df78e2e336e07fa8bd30cf7498096ee80feef16534
+DIST VTK-8.1.0.tar.gz 33482506 BLAKE2B 82aecb497847254595f20294120ae793432348fc3fd881924b52c004335d9bae3d052f168bbe291b307af67845a80e740d8996d36991c38fbec7213438e2395d SHA512 3d5efd1a18939e21045278a387817421a98919cbaaa6ed65167c16999e1bb882b849b698d201a294da9920dbc96d1fbc987013462b1c7cbb12920bfff9b6f2a3
DIST VTKData-6.1.0.tar.gz 94452190 BLAKE2B 55e1af454f1c54c0a182552c41e08549781532b510bf29cb28fcd12510c1cef2c4e09274507d658b700f22d0da1961d7b4e6dc289d9ee39c6b1e1fac348ba153 SHA512 4e23cc3de3b81a852458849f2bd4dfe2e84e9df4f77f5f0d4ac249b04a7f74144a483a91876bd748bb90685d1943071e9b36fce8dd618376621bc37e63365e65
DIST VTKData-7.1.0.tar.gz 249106922 BLAKE2B 01505bd5e01c790d40be6966c6261de4eba2ec36b515580112b3291f894c9d2e361f31d20bb14faf40f125b82e5ea6a1b0002acbb598c79f11d541e0fe5de4df SHA512 8f78fdce36fc683c8b8b7137a02fd727f322ceecce66f20a4b1b3f8d260e8e894c1ec1ed46eb2427e501239f12b02b1476ca3a302fa1f9287584110598972f9e
+DIST VTKData-8.1.0.tar.gz 282986441 BLAKE2B 885f35c5386cc5db8db905a868a3ad79c246f1b0e41a3e5b81312b1f3de90483a1e34886d4764c60fe8006acaace2405b25acf047ec0e25a957f7a2d563d3380 SHA512 0a63f87896320aa38970932bf47c9e3f65a8bdd5413e51f95c53e321348b5b4e1eca2405d755eabb785c03939e1936245cc9f1b0f7ad0988c41362ac6f1e3047
DIST VTKLargeData-6.1.0.tar.gz 166019220 BLAKE2B 94180c9fd73655cbc08914a2309925d40ac2c99ce8652a7db37bb3ddc3b9dd654e8286be97a764c9029a6de21ae847f1f2c46c07ec974e5da802f23a7d277836 SHA512 3663a124c16448882ad3aef0fb15f55f438863ba2176106803ad9c6fb561325accd74f2675d8b6e1de791babfa8b992e516d87640efedda4a6daeb5affc2cf3f
DIST VTKLargeData-7.1.0.tar.gz 166680011 BLAKE2B 6b630d13a7cf22909f2fd42a89eccfe2ae79c16ec46b99229f349ff47d20e38cf22b9b63803087d319d43915fce116d2874e450c439727dde5a795d003cd1c4a SHA512 79d058732932837f2873a14850e18375d6a43f07de7cf4b71570ae32cf7abb7651052378ff9cbd1e221c95f78e46c13c9852425a509ae02c826f5345e836e455
+DIST VTKLargeData-8.1.0.tar.gz 166992034 BLAKE2B ac98861ccac2aacfab7547a4b56de5c9e611b8655f077bb85e6ab850fb0cfd79f4722a0486f73eafcde2cd77d6be305201857f3e729b1f60f710c45bcf0bb63f SHA512 9dfd64b5125205ba7d8cba5665da40874d0a9781f3bd2595058d939207d96980c9a68009ce9ed1476931e1b929199c4888ccf6d590f23d2412873ca6907abc31
DIST vtkDocHtml-6.1.0.tar.gz 230827905 BLAKE2B a323728450c5054d715dac137e54ed9b901019af595ea3abca9e7865d0b420d7b5f87789a9489df116f982633984d74721153dc3ab735e97455f64c2ffc4aa95 SHA512 fcae74a65157d87b39a162facdecbb0ab0a9b95b9f2555ed2b15d635b82034bfc62181eea441caf0b1edbe036b792a8231d409908b943398ce7f662c149d3a60
DIST vtkDocHtml-7.1.0.tar.gz 128927849 BLAKE2B 93ad088ec0578bf8008a789f71d7d70eff13899ab216af1499c88870189fe53c426fd23fea5f1c0ff5e8cfd9ec5c6fe03ad2b691edf88d0fbf55b7593778b3fd SHA512 cac6d005262d3849f84c2632dd737c4dcd9f23d5015266d683bcc8c65fad0d88e87faf9b1d5f68fdabe7b2ed97927a9f907020cbeae2b6e7223a5ffee54f2679
+DIST vtkDocHtml-8.1.0.tar.gz 132655967 BLAKE2B a27d9631fa9fe42e9b8076aa3b33e03b3835db0f348ed60cfdc866ffe7accd9c5d99b6525523113a4d628253e28d6d9121e78942d89b6ee281d5e7ecee7c289e SHA512 c49338ad2c121ab16098195e5a1f2c9539137a85ae5edaa64d4a887ece0c64efb8840162942f47b70ab2d82d341bba2e706a6ff007fe6bdfbce12ad92bca883c
diff --git a/sci-libs/vtk/vtk-8.1.0.ebuild b/sci-libs/vtk/vtk-8.1.0.ebuild
new file mode 100644
index 00000000000..eeafc5ca3c2
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.1.0.ebuild
@@ -0,0 +1,339 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ web? (
+ ${WEBAPP_DEPEND}
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/constantly[${PYTHON_USEDEP}]
+ dev-python/hyperlink[${PYTHON_USEDEP}]
+ dev-python/incremental[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/txaio[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ xdmf2? ( sci-libs/xdmf2 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in constantly expat freetype hdf5 hyperlink incremental jpeg jsoncpp libharu libxml2 lz4 netcdf oggtheora png tiff Twisted txaio zlib ZopeInterface; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/vtkAutobahn \
+ || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=ON
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ local tcllib
+ ln -sf "${BUILD_DIR}"/lib "${BUILD_DIR}"/lib/Release || die
+ for tcllib in "${BUILD_DIR}"/lib/lib*TCL*so; do
+ ln -sf ${tcllib##*/}.1 "${tcllib/.so/-${SPV}.so}" || die
+ done
+ export LD_LIBRARY_PATH="${BUILD_DIR}"/lib:"${JAVA_HOME}"/jre/lib/${ARCH}/:"${JAVA_HOME}"/jre/lib/${ARCH}/xawt/
+ virtx cmake-utils_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc Wrapping/Tcl/README
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ #install big docs
+ if use doc; then
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ einfo "Installing API docs. This may take some time."
+ dodoc -r "${WORKDIR}"/html
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-01-30 18:44 Jonathan Scruggs
0 siblings, 0 replies; 92+ messages in thread
From: Jonathan Scruggs @ 2018-01-30 18:44 UTC (permalink / raw
To: gentoo-commits
commit: 94c37b80b56ebc0689537c1996b2768aa57d88f5
Author: Jonathan Scruggs <j.scruggs <AT> gmail <DOT> com>
AuthorDate: Sat Jan 27 17:10:44 2018 +0000
Commit: Jonathan Scruggs <dracwyrm <AT> gentoo <DOT> org>
CommitDate: Tue Jan 30 18:43:39 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94c37b80
sci-libs/vtk: Fix building with doc and xdmf2 use flags
Closes: https://bugs.gentoo.org/645640
Closes: https://github.com/gentoo/gentoo/pull/6977
sci-libs/vtk/vtk-8.1.0-r1.ebuild | 332 +++++++++++++++++++++++++++++++++++++++
1 file changed, 332 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.1.0-r1.ebuild b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
new file mode 100644
index 00000000000..2ca414fc352
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
@@ -0,0 +1,332 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ web? (
+ ${WEBAPP_DEPEND}
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/constantly[${PYTHON_USEDEP}]
+ dev-python/hyperlink[${PYTHON_USEDEP}]
+ dev-python/incremental[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/txaio[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ xdmf2? ( sci-libs/xdmf2 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in constantly expat freetype hdf5 hyperlink incremental jpeg jsoncpp libharu libxml2 lz4 netcdf oggtheora png tiff Twisted txaio zlib ZopeInterface; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/vtkAutobahn \
+ || die
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc Wrapping/Tcl/README
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-02-28 18:48 Mart Raudsepp
0 siblings, 0 replies; 92+ messages in thread
From: Mart Raudsepp @ 2018-02-28 18:48 UTC (permalink / raw
To: gentoo-commits
commit: b10a911990d3390dbeee3b10f8632e2e40a57b91
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 28 18:46:46 2018 +0000
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Feb 28 18:48:02 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b10a9119
sci-libs/vtk-8.1.0: drop arm keywords due to unkeyworded new deps
Package-Manager: Portage-2.3.19, Repoman-2.3.6
sci-libs/vtk/vtk-8.1.0-r1.ebuild | 2 +-
sci-libs/vtk/vtk-8.1.0.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r1.ebuild b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
index 2ca414fc352..a2eaa5fe648 100644
--- a/sci-libs/vtk/vtk-8.1.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
@@ -23,7 +23,7 @@ SRC_URI="
)"
LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
diff --git a/sci-libs/vtk/vtk-8.1.0.ebuild b/sci-libs/vtk/vtk-8.1.0.ebuild
index eeafc5ca3c2..7a718420fbc 100644
--- a/sci-libs/vtk/vtk-8.1.0.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0.ebuild
@@ -23,7 +23,7 @@ SRC_URI="
)"
LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-09-09 19:10 Amy Liffey
0 siblings, 0 replies; 92+ messages in thread
From: Amy Liffey @ 2018-09-09 19:10 UTC (permalink / raw
To: gentoo-commits
commit: a6334d713989743f3f7ab7e8c7ea078a4ed7bfd5
Author: Amy Liffey <amynka <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 9 19:06:11 2018 +0000
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
CommitDate: Sun Sep 9 19:09:21 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6334d71
sci-libs/vtk: add python3 support
Closes: https://bugs.gentoo.org/658698
Suggested-by: Charles G. Waldman <cgw <AT> alum.mit.edu>
Package-Manager: Portage-2.3.40, Repoman-2.3.9
sci-libs/vtk/vtk-8.1.0-r2.ebuild | 332 +++++++++++++++++++++++++++++++++++++++
1 file changed, 332 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.1.0-r2.ebuild b/sci-libs/vtk/vtk-8.1.0-r2.ebuild
new file mode 100644
index 00000000000..6b84275f59c
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.1.0-r2.ebuild
@@ -0,0 +1,332 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_5,3_6} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ web? (
+ ${WEBAPP_DEPEND}
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/constantly[${PYTHON_USEDEP}]
+ dev-python/hyperlink[${PYTHON_USEDEP}]
+ dev-python/incremental[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/txaio[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ xdmf2? ( sci-libs/xdmf2 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in constantly expat freetype hdf5 hyperlink incremental jpeg jsoncpp libharu libxml2 lz4 netcdf oggtheora png tiff Twisted txaio zlib ZopeInterface; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/vtkAutobahn \
+ || die
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc Wrapping/Tcl/README
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-10-13 10:07 Mikle Kolyada
0 siblings, 0 replies; 92+ messages in thread
From: Mikle Kolyada @ 2018-10-13 10:07 UTC (permalink / raw
To: gentoo-commits
commit: 384a2d51d7e854def30bb3e89b18a90585dbbdf1
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 13 09:56:42 2018 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Sat Oct 13 10:07:15 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=384a2d51
sci-libs/vtk: Drop non-existing media-video/nvidia-settings
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
sci-libs/vtk/vtk-6.1.0-r4.ebuild | 4 ++--
sci-libs/vtk/vtk-7.1.0.ebuild | 4 ++--
sci-libs/vtk/vtk-8.1.0-r1.ebuild | 4 ++--
sci-libs/vtk/vtk-8.1.0-r2.ebuild | 4 ++--
sci-libs/vtk/vtk-8.1.0.ebuild | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/sci-libs/vtk/vtk-6.1.0-r4.ebuild b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
index 13badd6cfd5..a24386e16e6 100644
--- a/sci-libs/vtk/vtk-6.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-6.1.0-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -99,7 +99,7 @@ RDEPEND="
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
python? (
diff --git a/sci-libs/vtk/vtk-7.1.0.ebuild b/sci-libs/vtk/vtk-7.1.0.ebuild
index 80be41eec4c..7d06c7c1ccb 100644
--- a/sci-libs/vtk/vtk-7.1.0.ebuild
+++ b/sci-libs/vtk/vtk-7.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -96,7 +96,7 @@ RDEPEND="
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
dev-python/six[${PYTHON_USEDEP}]
diff --git a/sci-libs/vtk/vtk-8.1.0-r1.ebuild b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
index a2eaa5fe648..6524c600fab 100644
--- a/sci-libs/vtk/vtk-8.1.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -95,7 +95,7 @@ RDEPEND="
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
dev-python/autobahn[${PYTHON_USEDEP}]
diff --git a/sci-libs/vtk/vtk-8.1.0-r2.ebuild b/sci-libs/vtk/vtk-8.1.0-r2.ebuild
index 6b84275f59c..7cad42c1018 100644
--- a/sci-libs/vtk/vtk-8.1.0-r2.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -95,7 +95,7 @@ RDEPEND="
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
dev-python/autobahn[${PYTHON_USEDEP}]
diff --git a/sci-libs/vtk/vtk-8.1.0.ebuild b/sci-libs/vtk/vtk-8.1.0.ebuild
index 7a718420fbc..6604f443bb3 100644
--- a/sci-libs/vtk/vtk-8.1.0.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -95,7 +95,7 @@ RDEPEND="
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers[tools,static-libs] media-video/nvidia-settings ) )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
dev-python/autobahn[${PYTHON_USEDEP}]
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2018-10-27 14:09 Pacho Ramos
0 siblings, 0 replies; 92+ messages in thread
From: Pacho Ramos @ 2018-10-27 14:09 UTC (permalink / raw
To: gentoo-commits
commit: 16addbe1dac65999c0e93a7e74e05cf12c101855
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 27 14:08:21 2018 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Oct 27 14:08:21 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16addbe1
sci-libs/vtk: Relies also in netcdf:0=
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
sci-libs/vtk/vtk-8.1.0-r3.ebuild | 333 +++++++++++++++++++++++++++++++++++++++
1 file changed, 333 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.1.0-r3.ebuild b/sci-libs/vtk/vtk-8.1.0-r3.ebuild
new file mode 100644
index 00000000000..bfe60457d8c
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.1.0-r3.ebuild
@@ -0,0 +1,333 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_5,3_6} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(get_version_component_range 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json kaapi mpi
+ mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf:0=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( virtual/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ kaapi? ( <sci-libs/xkaapi-3 )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ web? (
+ ${WEBAPP_DEPEND}
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/constantly[${PYTHON_USEDEP}]
+ dev-python/hyperlink[${PYTHON_USEDEP}]
+ dev-python/incremental[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/txaio[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
+ )
+ xdmf2? ( sci-libs/xdmf2 )"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in constantly expat freetype hdf5 hyperlink incremental jpeg jsoncpp libharu libxml2 lz4 netcdf oggtheora png tiff Twisted txaio zlib ZopeInterface; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ rm -r \
+ ThirdParty/AutobahnPython/vtkAutobahn \
+ || die
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use kaapi; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Kaapi" )
+ elif use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ dodoc Wrapping/Tcl/README
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2019-09-14 16:33 Richard Yao
0 siblings, 0 replies; 92+ messages in thread
From: Richard Yao @ 2019-09-14 16:33 UTC (permalink / raw
To: gentoo-commits
commit: 3392cb00d613ed2c73e613e02cde30eaabadc693
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Sep 1 01:38:12 2019 +0000
Commit: Richard Yao <ryao <AT> gentoo <DOT> org>
CommitDate: Sat Sep 14 16:33:05 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3392cb00
sci-libs/vtk: Fix USE flag description typo
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/12837
Signed-off-by: Alessandro Barbieri <lssdrbarbieri <AT> gmail.com>
Signed-off-by: Richard Yao <ryao <AT> gentoo.org>
sci-libs/vtk/metadata.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index dbcdc25b234..9faa532b1c8 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -11,14 +11,14 @@
<flag name="cg">Use nvidia's cg shaders</flag>
<flag name="gdal">Support for gdal formated data</flag>
<flag name="imaging">Building Imaging modules</flag>
- <flag name="json">Support for json formated data</flag>
+ <flag name="json">Support for json formatted data</flag>
<flag name="kaapi">Use <pkg>sci-libs/xkaapi</pkg> to handle smp support</flag>
<flag name="offscreen">Offscreen rendering through OSMesa</flag>
<flag name="rendering">Building Redering modules</flag>
<flag name="tbb">Use <pkg>dev-cpp/tbb</pkg> to handle smp support</flag>
<flag name="views">Building Views modules</flag>
<flag name="web">Install web component</flag>
- <flag name="xdmf2">Support for xdmf2 formated data</flag>
+ <flag name="xdmf2">Support for xdmf2 formatted data</flag>
<flag name="R">Enable support for dev-lang/R</flag>
</use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-02-04 13:10 Michał Górny
0 siblings, 0 replies; 92+ messages in thread
From: Michał Górny @ 2020-02-04 13:10 UTC (permalink / raw
To: gentoo-commits
commit: bc7e0abcdeb70e6c1430456d90003076434bcbc7
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 4 13:06:15 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb 4 13:10:16 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc7e0abc
sci-libs/vtk: Remove py2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
sci-libs/vtk/vtk-8.1.0-r3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r3.ebuild b/sci-libs/vtk/vtk-8.1.0-r3.ebuild
index c5b14166c04..c2a250417f9 100644
--- a/sci-libs/vtk/vtk-8.1.0-r3.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r3.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_6} )
+PYTHON_COMPAT=( python3_6 )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-02-09 16:36 Michał Górny
0 siblings, 0 replies; 92+ messages in thread
From: Michał Górny @ 2020-02-09 16:36 UTC (permalink / raw
To: gentoo-commits
commit: d1cf307738d58b4509a32ea95900c032f8726ed6
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 7 19:09:05 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 9 16:35:34 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1cf3077
sci-libs/vtk: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../{vtk-8.1.0-r3.ebuild => vtk-8.1.0-r4.ebuild} | 58 ++++++++++++----------
1 file changed, 31 insertions(+), 27 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r3.ebuild b/sci-libs/vtk/vtk-8.1.0-r4.ebuild
similarity index 90%
rename from sci-libs/vtk/vtk-8.1.0-r3.ebuild
rename to sci-libs/vtk/vtk-8.1.0-r4.ebuild
index c2a250417f9..0618010649d 100644
--- a/sci-libs/vtk/vtk-8.1.0-r3.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r4.ebuild
@@ -69,28 +69,10 @@ RDEPEND="
ffmpeg? ( virtual/ffmpeg )
gdal? ( sci-libs/gdal )
java? ( >=virtual/jdk-1.7:* )
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- )
mysql? ( virtual/mysql )
odbc? ( dev-db/unixODBC )
offscreen? ( media-libs/mesa[osmesa] )
postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[${PYTHON_USEDEP}]
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtwebkit:5
- dev-qt/qtx11extras:5
- python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
- )
R? ( dev-lang/R )
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
@@ -98,16 +80,38 @@ RDEPEND="
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
web? (
${WEBAPP_DEPEND}
- dev-python/autobahn[${PYTHON_USEDEP}]
- dev-python/constantly[${PYTHON_USEDEP}]
- dev-python/hyperlink[${PYTHON_USEDEP}]
- dev-python/incremental[${PYTHON_USEDEP}]
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/twisted[${PYTHON_USEDEP}]
- dev-python/txaio[${PYTHON_USEDEP}]
- dev-python/zope-interface[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
+ dev-python/constantly[${PYTHON_MULTI_USEDEP}]
+ dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
+ dev-python/incremental[${PYTHON_MULTI_USEDEP}]
+ dev-python/six[${PYTHON_MULTI_USEDEP}]
+ dev-python/twisted[${PYTHON_MULTI_USEDEP}]
+ dev-python/txaio[${PYTHON_MULTI_USEDEP}]
+ dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
+ ')
)
- xdmf2? ( sci-libs/xdmf2 )"
+ xdmf2? ( sci-libs/xdmf2 )
+ $(python_gen_cond_dep "
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[\${PYTHON_MULTI_USEDEP}] )
+ )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[\${PYTHON_MULTI_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[\${PYTHON_MULTI_USEDEP}] )
+ )
+ ")"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-02-26 16:56 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-02-26 16:56 UTC (permalink / raw
To: gentoo-commits
commit: 2afb09999f2dd1bbf6e8e44c72eed9ad17b34192
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 26 16:56:03 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 26 16:56:20 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2afb0999
sci-libs/vtk: Hard-disable Qt5WebKit
Closes: https://bugs.gentoo.org/692866
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.1.0-r4.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r4.ebuild b/sci-libs/vtk/vtk-8.1.0-r4.ebuild
index 0618010649d..e0fa62ad1ca 100644
--- a/sci-libs/vtk/vtk-8.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r4.ebuild
@@ -107,7 +107,6 @@ RDEPEND="
dev-qt/qtgui:5
dev-qt/qtopengl:5
dev-qt/qtsql:5
- dev-qt/qtwebkit:5
dev-qt/qtx11extras:5
python? ( dev-python/PyQt5[\${PYTHON_MULTI_USEDEP}] )
)
@@ -263,6 +262,7 @@ src_configure() {
-DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
-DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
-DVTK_Group_Qt:BOOL=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
)
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-04-05 19:47 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-04-05 19:47 UTC (permalink / raw
To: gentoo-commits
commit: 4fbc459ab212e48ec010b22ce0601e72821bacf0
Author: Rafael Palomar <rafael.palomar <AT> rr-research <DOT> no>
AuthorDate: Fri Apr 3 19:27:04 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 5 19:47:16 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fbc459a
sci-libs/vtk: Fix wrong installation path for libQVTKWidgetPlugin.so
This fixes the wrong installation path of libQVTKWidgetPlugin.so. From
/usr/usr/... --> /usr/...
Closes: https://bugs.gentoo.org/646422
Signed-off-by: Rafael Palomar Ávalos <rafael.palomar <AT> rr-research.no>
Closes: https://github.com/gentoo/gentoo/pull/15218
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.1.0-r5.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r5.ebuild b/sci-libs/vtk/vtk-8.1.0-r5.ebuild
index 18c95fceeae..f1fe50fd32e 100644
--- a/sci-libs/vtk/vtk-8.1.0-r5.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r5.ebuild
@@ -255,7 +255,7 @@ src_configure() {
-DVTK_USE_QVTK_QTOPENGL=ON
-DQT_WRAP_CPP=ON
-DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(qt5_get_libdir)/qt5/plugins/designer"
+ -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
-DDESIRED_QT_VERSION=5
-DVTK_QT_VERSION=5
-DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-04-05 19:47 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-04-05 19:47 UTC (permalink / raw
To: gentoo-commits
commit: eb24981c0aba6f6458d5f82457890c0d343f5dac
Author: Rafael Palomar <rafael.palomar <AT> rr-research <DOT> no>
AuthorDate: Fri Apr 3 13:26:51 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Apr 5 19:47:16 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb24981c
sci-libs/vtk: Fix installation path for CMake files
On amd64, installation will drop files in /usr/lib64
except for CMake files which will be installed on /usr/lib.
This fixes the installation path for the CMake files (/usr/lib64).
Revision bump vtk-8.1.0-r4 --> vtk-8.1.0-r5
Signed-off-by: Rafael Palomar Ávalos <rafael.palomar <AT> rr-research.no>
Closes: https://github.com/gentoo/gentoo/pull/15213
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/{vtk-8.1.0-r4.ebuild => vtk-8.1.0-r5.ebuild} | 1 +
1 file changed, 1 insertion(+)
diff --git a/sci-libs/vtk/vtk-8.1.0-r4.ebuild b/sci-libs/vtk/vtk-8.1.0-r5.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-8.1.0-r4.ebuild
rename to sci-libs/vtk/vtk-8.1.0-r5.ebuild
index e0fa62ad1ca..18c95fceeae 100644
--- a/sci-libs/vtk/vtk-8.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r5.ebuild
@@ -152,6 +152,7 @@ src_configure() {
-Wno-dev
-DVTK_DIR="${S}"
-DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
-DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
-DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
-DVTK_CUSTOM_LIBRARY_SUFFIX=""
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-04-26 11:00 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2020-04-26 11:00 UTC (permalink / raw
To: gentoo-commits
commit: eb2852bf9143efdc50f7bd0bc1e8ef53ccd9564e
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 26 10:59:15 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Apr 26 10:59:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb2852bf
sci-libs/vtk: Replace virtual/ffmpeg
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-libs/vtk/{vtk-8.1.0-r5.ebuild => vtk-8.1.0-r6.ebuild} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r5.ebuild b/sci-libs/vtk/vtk-8.1.0-r6.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-8.1.0-r5.ebuild
rename to sci-libs/vtk/vtk-8.1.0-r6.ebuild
index f1fe50fd32e..06e69225f0f 100644
--- a/sci-libs/vtk/vtk-8.1.0-r5.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r6.ebuild
@@ -66,7 +66,7 @@ RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
)
- ffmpeg? ( virtual/ffmpeg )
+ ffmpeg? ( media-video/ffmpeg )
gdal? ( sci-libs/gdal )
java? ( >=virtual/jdk-1.7:* )
mysql? ( virtual/mysql )
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-05-01 16:48 Matthias Maier
0 siblings, 0 replies; 92+ messages in thread
From: Matthias Maier @ 2020-05-01 16:48 UTC (permalink / raw
To: gentoo-commits
commit: 0e3eb09b4a6e8b2cd18674f4290a911a2c1aeedc
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri May 1 14:54:18 2020 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri May 1 16:47:36 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e3eb09b
sci-libs/vtk: remove bogus dependency
Closes: https://bugs.gentoo.org/666058
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/vtk/{vtk-8.1.0-r6.ebuild => vtk-8.1.0-r7.ebuild} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r6.ebuild b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
similarity index 98%
rename from sci-libs/vtk/vtk-8.1.0-r6.ebuild
rename to sci-libs/vtk/vtk-8.1.0-r7.ebuild
index 9e5bc9d717c..3dc1db6da16 100644
--- a/sci-libs/vtk/vtk-8.1.0-r6.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
@@ -27,7 +27,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="
all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
- mysql odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ odbc offscreen postgres python qt5 rendering tbb theora tk tcl
video_cards_nvidia views web R +X xdmf2"
REQUIRED_USE="
@@ -69,7 +69,6 @@ RDEPEND="
ffmpeg? ( media-video/ffmpeg )
gdal? ( sci-libs/gdal )
java? ( >=virtual/jdk-1.7:* )
- mysql? ( virtual/mysql )
odbc? ( dev-db/unixODBC )
offscreen? ( media-libs/mesa[osmesa] )
postgres? ( dev-db/postgresql:= )
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-05-01 16:48 Matthias Maier
0 siblings, 0 replies; 92+ messages in thread
From: Matthias Maier @ 2020-05-01 16:48 UTC (permalink / raw
To: gentoo-commits
commit: 8943c6d7318281ff9e019c5f1f0bd7ca969babdb
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri May 1 15:04:02 2020 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri May 1 16:47:39 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8943c6d7
sci-libs/vtk: version bump to 8.2.0
Closes: https://bugs.gentoo.org/684008
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/vtk/Manifest | 4 +
sci-libs/vtk/vtk-8.2.0.ebuild | 336 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 340 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 4ac149f56f5..11d42271277 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,4 +1,8 @@
DIST VTK-8.1.0.tar.gz 33482506 BLAKE2B 82aecb497847254595f20294120ae793432348fc3fd881924b52c004335d9bae3d052f168bbe291b307af67845a80e740d8996d36991c38fbec7213438e2395d SHA512 3d5efd1a18939e21045278a387817421a98919cbaaa6ed65167c16999e1bb882b849b698d201a294da9920dbc96d1fbc987013462b1c7cbb12920bfff9b6f2a3
+DIST VTK-8.2.0.tar.gz 35511819 BLAKE2B 908ed9377d75da6d0bd84de0078ba90a1e9396fcc906ca2981102e2c79d9d3ba4b1297f98682cd2802c7c04f9dbec32ee70740e645c44180befd765f7cda34a6 SHA512 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
DIST VTKData-8.1.0.tar.gz 282986441 BLAKE2B 885f35c5386cc5db8db905a868a3ad79c246f1b0e41a3e5b81312b1f3de90483a1e34886d4764c60fe8006acaace2405b25acf047ec0e25a957f7a2d563d3380 SHA512 0a63f87896320aa38970932bf47c9e3f65a8bdd5413e51f95c53e321348b5b4e1eca2405d755eabb785c03939e1936245cc9f1b0f7ad0988c41362ac6f1e3047
+DIST VTKData-8.2.0.tar.gz 304287875 BLAKE2B 0292d84be40e11203326dcb1bf45f4a6ad2a785968130d4868a230f1cfbdcb600d0c03d4dae3519e2737dc7a964f29c51500c91b3da4291069608dd80a2bce45 SHA512 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
DIST VTKLargeData-8.1.0.tar.gz 166992034 BLAKE2B ac98861ccac2aacfab7547a4b56de5c9e611b8655f077bb85e6ab850fb0cfd79f4722a0486f73eafcde2cd77d6be305201857f3e729b1f60f710c45bcf0bb63f SHA512 9dfd64b5125205ba7d8cba5665da40874d0a9781f3bd2595058d939207d96980c9a68009ce9ed1476931e1b929199c4888ccf6d590f23d2412873ca6907abc31
+DIST VTKLargeData-8.2.0.tar.gz 247522878 BLAKE2B 68dc90548604fbbb8419f2b400aea5d26599b48208b4104f41eaa90f99483689cd928cb00e3a7def396d65db2f03c9294d132854a27af74f66eb118c8319c4ce SHA512 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588
DIST vtkDocHtml-8.1.0.tar.gz 132655967 BLAKE2B a27d9631fa9fe42e9b8076aa3b33e03b3835db0f348ed60cfdc866ffe7accd9c5d99b6525523113a4d628253e28d6d9121e78942d89b6ee281d5e7ecee7c289e SHA512 c49338ad2c121ab16098195e5a1f2c9539137a85ae5edaa64d4a887ece0c64efb8840162942f47b70ab2d82d341bba2e706a6ff007fe6bdfbce12ad92bca883c
+DIST vtkDocHtml-8.2.0.tar.gz 132516675 BLAKE2B 8651a3793f3326dee36c5ae8a280b00943067f973115697f34770eefd42b5534a7d7e439e7745b32c5fa83daf5a5292b854792d18951af236d0aa77c3aa2b564 SHA512 45e198bde82948d1d8e47a8bdb64a2792c2bfdfc0d939ffe40ded79092d7ac5f497008c00c805baa09d27eabb419cdf0787eee1caf2ac44c5e8759ecf709a317
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
new file mode 100644
index 00000000000..89b747861a8
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -0,0 +1,336 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_6 )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake-utils virtualx webapp
+
+# Short package version
+SPV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="
+ all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
+ odbc offscreen postgres python qt5 rendering tbb theora tk tcl
+ video_cards_nvidia views web R +X xdmf2"
+
+REQUIRED_USE="
+ all-modules? ( python xdmf2 boost )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=media-libs/freetype-2.5.4
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf:0=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( media-video/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.7:* )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ web? (
+ ${WEBAPP_DEPEND}
+ $(python_gen_cond_dep '
+ dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
+ dev-python/constantly[${PYTHON_MULTI_USEDEP}]
+ dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
+ dev-python/incremental[${PYTHON_MULTI_USEDEP}]
+ dev-python/six[${PYTHON_MULTI_USEDEP}]
+ dev-python/twisted[${PYTHON_MULTI_USEDEP}]
+ dev-python/txaio[${PYTHON_MULTI_USEDEP}]
+ dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+ xdmf2? ( sci-libs/xdmf2 )
+ $(python_gen_cond_dep "
+ mpi? (
+ virtual/mpi[cxx,romio]
+ python? ( dev-python/mpi4py[\${PYTHON_MULTI_USEDEP}] )
+ )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/sip[\${PYTHON_MULTI_USEDEP}]
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtx11extras:5
+ python? ( dev-python/PyQt5[\${PYTHON_MULTI_USEDEP}] )
+ )
+ ")"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/vtk-8.1.0-openmpi-4-compatibility.patch
+)
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
+ for x in expat freetype hdf5 jpeg jsoncpp libharu libxml2 lz4 netcdf png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex xdmf2)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake-utils_src_install
+
+ use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-05-01 17:58 Matthias Maier
0 siblings, 0 replies; 92+ messages in thread
From: Matthias Maier @ 2020-05-01 17:58 UTC (permalink / raw
To: gentoo-commits
commit: 17ddb90dc1a162611f41a8937b779a65501f4b7b
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Fri May 1 17:52:49 2020 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri May 1 17:57:55 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ddb90d
sci-libs/vtk: fix QA warnings
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/vtk/vtk-8.1.0-r7.ebuild | 4 ++--
sci-libs/vtk/vtk-8.2.0.ebuild | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r7.ebuild b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
index 3dc1db6da16..3743369e069 100644
--- a/sci-libs/vtk/vtk-8.1.0-r7.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
@@ -201,7 +201,7 @@ src_configure() {
-DVTK_Group_Tk=$(usex tk)
-DVTK_Group_Views=$(usex views)
-DVTK_Group_Web=$(usex web)
- -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
-DVTK_WRAP_JAVA=$(usex java)
-DVTK_WRAP_PYTHON=$(usex python)
-DVTK_WRAP_PYTHON_SIP=$(usex python)
@@ -299,7 +299,7 @@ src_install() {
cmake-utils_src_install
- use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
# Stop web page images from being compressed
use doc && docompress -x /usr/share/doc/${PF}/doxygen
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 89b747861a8..379e3ee5085 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -198,7 +198,7 @@ src_configure() {
-DVTK_Group_Tk=$(usex tk)
-DVTK_Group_Views=$(usex views)
-DVTK_Group_Web=$(usex web)
- -DVTK_WWW_DIR="${ED%/}/${MY_HTDOCSDIR}"
+ -DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
-DVTK_WRAP_JAVA=$(usex java)
-DVTK_WRAP_PYTHON=$(usex python)
-DVTK_WRAP_PYTHON_SIP=$(usex python)
@@ -296,7 +296,7 @@ src_install() {
cmake-utils_src_install
- use java && java-pkg_regjar "${ED%/}"/usr/$(get_libdir)/${PN}.jar
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
# Stop web page images from being compressed
use doc && docompress -x /usr/share/doc/${PF}/doxygen
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-05-12 5:58 Matthias Maier
0 siblings, 0 replies; 92+ messages in thread
From: Matthias Maier @ 2020-05-12 5:58 UTC (permalink / raw
To: gentoo-commits
commit: 8349b01939d7531d480059772674756fe4365d5d
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Tue May 12 05:58:09 2020 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Tue May 12 05:58:09 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8349b019
sci-libs/vtk: add python compat
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/vtk/vtk-8.1.0-r7.ebuild | 2 +-
sci-libs/vtk/vtk-8.2.0.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.1.0-r7.ebuild b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
index 3743369e069..dc399b3e2c5 100644
--- a/sci-libs/vtk/vtk-8.1.0-r7.ebuild
+++ b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 379e3ee5085..8f8191938e7 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-05-12 15:34 Matthias Maier
0 siblings, 0 replies; 92+ messages in thread
From: Matthias Maier @ 2020-05-12 15:34 UTC (permalink / raw
To: gentoo-commits
commit: 3f2c91135dfa6781d30f033979b5c751bb4a849b
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Tue May 12 13:57:45 2020 +0000
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Tue May 12 15:34:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f2c9113
sci-libs/vtk: fix 8.2.0 ebuild
- fix bundled libproj configuration. Thanks to Tiernan Hubble for
pointing this out
- use system mpi4py
Closes: https://bugs.gentoo.org/720372
Closes: https://bugs.gentoo.org/721412
Closes: https://bugs.gentoo.org/721802
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 8f8191938e7..ee000cf9d83 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -167,7 +167,7 @@ src_configure() {
-DVTK_USE_SYSTEM_GL2PS=OFF
-DVTK_USE_SYSTEM_HDF5=ON
-DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ4=OFF
+ -DVTK_USE_SYSTEM_LIBPROJ=OFF
-DVTK_USE_SYSTEM_LIBXML2=ON
-DVTK_USE_SYSTEM_LibXml2=ON
-DVTK_USE_SYSTEM_NETCDF=ON
@@ -198,6 +198,7 @@ src_configure() {
-DVTK_Group_Tk=$(usex tk)
-DVTK_Group_Views=$(usex views)
-DVTK_Group_Web=$(usex web)
+ -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
-DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
-DVTK_WRAP_JAVA=$(usex java)
-DVTK_WRAP_PYTHON=$(usex python)
@@ -230,10 +231,8 @@ src_configure() {
mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
fi
- if use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ if use mpi; then
+ mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
fi
if use python; then
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-05 21:15 Andreas K. Hüttel
0 siblings, 0 replies; 92+ messages in thread
From: Andreas K. Hüttel @ 2020-06-05 21:15 UTC (permalink / raw
To: gentoo-commits
commit: a71bd0dedf021dc8b868441cfa261ed50626f2bf
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 5 21:14:28 2020 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jun 5 21:15:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a71bd0de
sci-libs/vtk: Add missing dependency on dev-libs/pugixml
Closes: https://bugs.gentoo.org/722770
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index ee000cf9d83..3c32a015ddc 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -45,6 +45,7 @@ RDEPEND="
dev-libs/expat
dev-libs/jsoncpp:=
dev-libs/libxml2:2
+ dev-libs/pugixml
>=media-libs/freetype-2.5.4
>=media-libs/libharu-2.3.0-r2
media-libs/libpng:0=
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-05 21:53 Andreas K. Hüttel
0 siblings, 0 replies; 92+ messages in thread
From: Andreas K. Hüttel @ 2020-06-05 21:53 UTC (permalink / raw
To: gentoo-commits
commit: 1704e2aba90b98940a8cdef2dbb6d044a5af0fd2
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 5 21:52:47 2020 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Jun 5 21:53:22 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1704e2ab
sci-libs/vtk: Add missing dependencies
Closes: https://bugs.gentoo.org/723460
Closes: https://bugs.gentoo.org/727078
Closes: https://bugs.gentoo.org/727080
Closes: https://bugs.gentoo.org/723000
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 3c32a015ddc..3a04f54a0aa 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -42,10 +42,14 @@ REQUIRED_USE="
RDEPEND="
app-arch/lz4
+ dev-cpp/eigen
+ dev-db/sqlite
+ dev-libs/double-conversion:0=
dev-libs/expat
dev-libs/jsoncpp:=
dev-libs/libxml2:2
dev-libs/pugixml
+ media-libs/glew:0=
>=media-libs/freetype-2.5.4
>=media-libs/libharu-2.3.0-r2
media-libs/libpng:0=
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-06 9:42 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-06-06 9:42 UTC (permalink / raw
To: gentoo-commits
commit: 2bccff07900cb2a111e63ac6776041962a04dd6e
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 09:26:11 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 09:41:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bccff07
sci-libs/vtk: Switch to cmake.eclass
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 5a99e739fdd..3ad36f8c446 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -9,7 +9,7 @@ WEBAPP_MANUAL_SLOT=yes
# Short package version
SPV="$(ver_cut 1-2)"
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake-utils virtualx webapp
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
DESCRIPTION="The Visualization Toolkit"
HOMEPAGE="https://www.vtk.org/"
@@ -138,7 +138,7 @@ pkg_setup() {
}
src_prepare() {
- cmake-utils_src_prepare
+ cmake_src_prepare
local x
# missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
@@ -295,13 +295,13 @@ src_configure() {
export F77=mpif77
fi
- cmake-utils_src_configure
+ cmake_src_configure
}
src_install() {
use web && webapp_src_preinst
- cmake-utils_src_install
+ cmake_src_install
use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-06 9:42 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-06-06 9:42 UTC (permalink / raw
To: gentoo-commits
commit: d0b3e0b69b6c6c80ceff982ca8271b0f423cea16
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 09:24:18 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 09:41:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0b3e0b6
sci-libs/vtk: *Only* run cmake-utils_src_prepare in src_prepare
Because default was invoked as well, patches were applied twice...
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 0538637cc2a..5a99e739fdd 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -138,7 +138,7 @@ pkg_setup() {
}
src_prepare() {
- default
+ cmake-utils_src_prepare
local x
# missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
@@ -154,8 +154,6 @@ src_prepare() {
sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
-i Utilities/Doxygen/CMakeLists.txt || die
fi
-
- cmake-utils_src_prepare
}
src_configure() {
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-06 9:42 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-06-06 9:42 UTC (permalink / raw
To: gentoo-commits
commit: 9cc2b9ffedb5a5844feb9d499b14626d63b4fd2a
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 08:39:09 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 09:41:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc2b9ff
sci-libs/vtk: Fix EAPI-7 bump and break up python_gen_cond_dep scope
Sorting, BDEPEND, quotes and indendation
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 63 ++++++++++++++++++++++---------------------
1 file changed, 33 insertions(+), 30 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 3a04f54a0aa..c9ab9cf4bdb 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -7,10 +7,9 @@ PYTHON_COMPAT=( python3_{6,7} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake-utils virtualx webapp
-
# Short package version
SPV="$(ver_cut 1-2)"
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake-utils virtualx webapp
DESCRIPTION="The Visualization Toolkit"
HOMEPAGE="https://www.vtk.org/"
@@ -23,12 +22,11 @@ SRC_URI="
)"
LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
-IUSE="
- all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
- odbc offscreen postgres python qt5 rendering tbb theora tk tcl
- video_cards_nvidia views web R +X xdmf2"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
+ odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
+ video_cards_nvidia views web +X xdmf2"
REQUIRED_USE="
all-modules? ( python xdmf2 boost )
@@ -49,8 +47,8 @@ RDEPEND="
dev-libs/jsoncpp:=
dev-libs/libxml2:2
dev-libs/pugixml
- media-libs/glew:0=
>=media-libs/freetype-2.5.4
+ media-libs/glew:0=
>=media-libs/libharu-2.3.0-r2
media-libs/libpng:0=
media-libs/libtheora
@@ -74,9 +72,32 @@ RDEPEND="
ffmpeg? ( media-video/ffmpeg )
gdal? ( sci-libs/gdal )
java? ( >=virtual/jdk-1.7:* )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ $(python_gen_cond_dep '
+ python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
odbc? ( dev-db/unixODBC )
offscreen? ( media-libs/mesa[osmesa] )
postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/sip[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtx11extras:5
+ $(python_gen_cond_dep '
+ python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
R? ( dev-lang/R )
tbb? ( dev-cpp/tbb )
tcl? ( dev-lang/tcl:0= )
@@ -96,32 +117,14 @@ RDEPEND="
')
)
xdmf2? ( sci-libs/xdmf2 )
- $(python_gen_cond_dep "
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[\${PYTHON_MULTI_USEDEP}] )
- )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[\${PYTHON_MULTI_USEDEP}]
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- python? ( dev-python/PyQt5[\${PYTHON_MULTI_USEDEP}] )
- )
- ")"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
+"
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( app-doc/doxygen )"
S="${WORKDIR}"/VTK-${PV}
PATCHES=(
- "${FILESDIR}"/vtk-8.1.0-openmpi-4-compatibility.patch
+ "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
)
RESTRICT="test"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-06 9:42 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-06-06 9:42 UTC (permalink / raw
To: gentoo-commits
commit: 0237e3d652779dca69ab5ff9bd1afb09eb13c0e3
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 09:36:25 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 09:41:51 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0237e3d6
sci-libs/vtk: Drop 8.1.0-r7
8.2.0 is now very slightly less broken than this.
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/Manifest | 4 -
sci-libs/vtk/vtk-8.1.0-r7.ebuild | 340 ---------------------------------------
2 files changed, 344 deletions(-)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 11d42271277..2ea60d8ea77 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,8 +1,4 @@
-DIST VTK-8.1.0.tar.gz 33482506 BLAKE2B 82aecb497847254595f20294120ae793432348fc3fd881924b52c004335d9bae3d052f168bbe291b307af67845a80e740d8996d36991c38fbec7213438e2395d SHA512 3d5efd1a18939e21045278a387817421a98919cbaaa6ed65167c16999e1bb882b849b698d201a294da9920dbc96d1fbc987013462b1c7cbb12920bfff9b6f2a3
DIST VTK-8.2.0.tar.gz 35511819 BLAKE2B 908ed9377d75da6d0bd84de0078ba90a1e9396fcc906ca2981102e2c79d9d3ba4b1297f98682cd2802c7c04f9dbec32ee70740e645c44180befd765f7cda34a6 SHA512 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
-DIST VTKData-8.1.0.tar.gz 282986441 BLAKE2B 885f35c5386cc5db8db905a868a3ad79c246f1b0e41a3e5b81312b1f3de90483a1e34886d4764c60fe8006acaace2405b25acf047ec0e25a957f7a2d563d3380 SHA512 0a63f87896320aa38970932bf47c9e3f65a8bdd5413e51f95c53e321348b5b4e1eca2405d755eabb785c03939e1936245cc9f1b0f7ad0988c41362ac6f1e3047
DIST VTKData-8.2.0.tar.gz 304287875 BLAKE2B 0292d84be40e11203326dcb1bf45f4a6ad2a785968130d4868a230f1cfbdcb600d0c03d4dae3519e2737dc7a964f29c51500c91b3da4291069608dd80a2bce45 SHA512 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
-DIST VTKLargeData-8.1.0.tar.gz 166992034 BLAKE2B ac98861ccac2aacfab7547a4b56de5c9e611b8655f077bb85e6ab850fb0cfd79f4722a0486f73eafcde2cd77d6be305201857f3e729b1f60f710c45bcf0bb63f SHA512 9dfd64b5125205ba7d8cba5665da40874d0a9781f3bd2595058d939207d96980c9a68009ce9ed1476931e1b929199c4888ccf6d590f23d2412873ca6907abc31
DIST VTKLargeData-8.2.0.tar.gz 247522878 BLAKE2B 68dc90548604fbbb8419f2b400aea5d26599b48208b4104f41eaa90f99483689cd928cb00e3a7def396d65db2f03c9294d132854a27af74f66eb118c8319c4ce SHA512 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588
-DIST vtkDocHtml-8.1.0.tar.gz 132655967 BLAKE2B a27d9631fa9fe42e9b8076aa3b33e03b3835db0f348ed60cfdc866ffe7accd9c5d99b6525523113a4d628253e28d6d9121e78942d89b6ee281d5e7ecee7c289e SHA512 c49338ad2c121ab16098195e5a1f2c9539137a85ae5edaa64d4a887ece0c64efb8840162942f47b70ab2d82d341bba2e706a6ff007fe6bdfbce12ad92bca883c
DIST vtkDocHtml-8.2.0.tar.gz 132516675 BLAKE2B 8651a3793f3326dee36c5ae8a280b00943067f973115697f34770eefd42b5534a7d7e439e7745b32c5fa83daf5a5292b854792d18951af236d0aa77c3aa2b564 SHA512 45e198bde82948d1d8e47a8bdb64a2792c2bfdfc0d939ffe40ded79092d7ac5f497008c00c805baa09d27eabb419cdf0787eee1caf2ac44c5e8759ecf709a317
diff --git a/sci-libs/vtk/vtk-8.1.0-r7.ebuild b/sci-libs/vtk/vtk-8.1.0-r7.ebuild
deleted file mode 100644
index dc399b3e2c5..00000000000
--- a/sci-libs/vtk/vtk-8.1.0-r7.ebuild
+++ /dev/null
@@ -1,340 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_{6,7} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils versionator toolchain-funcs cmake-utils virtualx webapp
-
-# Short package version
-SPV="$(get_version_component_range 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )"
-
-LICENSE="BSD LGPL-2"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-SLOT="0"
-IUSE="
- all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
- odbc offscreen postgres python qt5 rendering tbb theora tk tcl
- video_cards_nvidia views web R +X xdmf2"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 boost )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- examples? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )"
-
-RDEPEND="
- app-arch/lz4
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- >=media-libs/freetype-2.5.4
- >=media-libs/libharu-2.3.0-r2
- media-libs/libpng:0=
- media-libs/libtheora
- media-libs/mesa
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf:0=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- boost? ( dev-libs/boost:=[mpi?] )
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- ffmpeg? ( media-video/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.7:* )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- web? (
- ${WEBAPP_DEPEND}
- $(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
- ')
- )
- xdmf2? ( sci-libs/xdmf2 )
- $(python_gen_cond_dep "
- mpi? (
- virtual/mpi[cxx,romio]
- python? ( dev-python/mpi4py[\${PYTHON_MULTI_USEDEP}] )
- )
- python? (
- ${PYTHON_DEPS}
- dev-python/sip[\${PYTHON_MULTI_USEDEP}]
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- python? ( dev-python/PyQt5[\${PYTHON_MULTI_USEDEP}] )
- )
- ")"
-DEPEND="${RDEPEND}
- doc? ( app-doc/doxygen )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/vtk-8.1.0-openmpi-4-compatibility.patch
-)
-
-RESTRICT="test"
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- default
-
- local x
- # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in constantly expat freetype hdf5 hyperlink incremental jpeg jsoncpp libharu libxml2 lz4 netcdf oggtheora png tiff Twisted txaio zlib ZopeInterface; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- rm -r \
- ThirdParty/AutobahnPython/vtkAutobahn \
- || die
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-
- cmake-utils_src_prepare
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
- -DVTK_USE_SYSTEM_GL2PS=OFF
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ4=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
- -DVTK_USE_SYSTEM_DIY2=OFF
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex xdmf2)
- -DBUILD_TESTING=$(usex examples)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
- -DVTK_USE_SYSTEM_SIX=ON
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake-utils_src_configure
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake-utils_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- # Stop web page images from being compressed
- use doc && docompress -x /usr/share/doc/${PF}/doxygen
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- dodoc Wrapping/Tcl/README
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-06-06 10:04 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-06-06 10:04 UTC (permalink / raw
To: gentoo-commits
commit: 6c333d93516c0e66fed2b4a7617b86ddaf45c1be
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 09:49:56 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 09:49:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c333d93
sci-libs/vtk: More IUSE sorting
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 6da25f5916c..127d1b0e81e 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -24,7 +24,7 @@ SRC_URI="
LICENSE="BSD LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="all-modules aqua boost doc examples imaging ffmpeg gdal java json mpi
+IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
video_cards_nvidia views web +X xdmf2"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-07-16 1:06 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2020-07-16 1:06 UTC (permalink / raw
To: gentoo-commits
commit: 8c3d3ae0a2dca18f265bfc1793db5496b18c3b67
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 16 00:59:10 2020 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jul 16 01:01:36 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c3d3ae0
sci-libs/vtk: arm keyworded (bug #649054)
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index ea05c1e5549..b0aa1a26e40 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -23,7 +23,7 @@ SRC_URI="
LICENSE="BSD LGPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
video_cards_nvidia views web +X xdmf2"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-12-26 23:46 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-12-26 23:46 UTC (permalink / raw
To: gentoo-commits
commit: 694ea56635c8bf70407885cca15095fa6694d0fe
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Nov 12 01:09:22 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 26 23:46:02 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=694ea566
sci-libs/vtk: dev-libs/pegtl as dependency
needed by USE="all-modules"
Closes: https://bugs.gentoo.org/754687
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18228
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index d0d4b52214c..2902ddb123b 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -64,6 +64,7 @@ RDEPEND="
x11-libs/libX11
x11-libs/libXmu
x11-libs/libXt
+ all-modules? ( dev-libs/pegtl )
boost? ( dev-libs/boost:=[mpi?] )
examples? (
dev-qt/qtcore:5
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-12-27 0:17 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-12-27 0:17 UTC (permalink / raw
To: gentoo-commits
commit: 5a000a1ec8313930d98551f604e075465ff7b1a9
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 00:16:09 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 00:17:32 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a000a1e
sci-libs/vtk: Revert "dev-libs/pegtl as dependency"
This reverts commit 694ea56635c8bf70407885cca15095fa6694d0fe.
IUSE=all-modules can be considered broken anyway, so there is time for
~arm keywording dev-libs/pegtl.
Bug: https://bugs.gentoo.org/754687
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 1 -
1 file changed, 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index 2902ddb123b..d0d4b52214c 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -64,7 +64,6 @@ RDEPEND="
x11-libs/libX11
x11-libs/libXmu
x11-libs/libXt
- all-modules? ( dev-libs/pegtl )
boost? ( dev-libs/boost:=[mpi?] )
examples? (
dev-qt/qtcore:5
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2020-12-27 0:48 Andreas Sturmlechner
0 siblings, 0 replies; 92+ messages in thread
From: Andreas Sturmlechner @ 2020-12-27 0:48 UTC (permalink / raw
To: gentoo-commits
commit: 07a6353a8971c4c8b6e86b8fc1f118230862ddf2
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Nov 12 01:09:22 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 00:48:07 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07a6353a
sci-libs/vtk: dev-libs/pegtl as dependency
needed by USE="all-modules"
Closes: https://bugs.gentoo.org/754687
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18228
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index d0d4b52214c..2902ddb123b 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -64,6 +64,7 @@ RDEPEND="
x11-libs/libX11
x11-libs/libXmu
x11-libs/libXt
+ all-modules? ( dev-libs/pegtl )
boost? ( dev-libs/boost:=[mpi?] )
examples? (
dev-qt/qtcore:5
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-02-22 18:57 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-02-22 18:57 UTC (permalink / raw
To: gentoo-commits
commit: 225be8f1132fe4094845af3b64066bd2826d6fd1
Author: Roy Bamford <neddyseagoon <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 15 15:10:58 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 22 18:57:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=225be8f1
sci-libs/vtk: added ~arm64
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Roy Bamford <neddyseagoon <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index b3c0061ee4e..12dba470d8a 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -23,7 +23,7 @@ SRC_URI="
LICENSE="BSD LGPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
video_cards_nvidia views web +X xdmf2"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-03-26 0:57 Michael Orlitzky
0 siblings, 0 replies; 92+ messages in thread
From: Michael Orlitzky @ 2021-03-26 0:57 UTC (permalink / raw
To: gentoo-commits
commit: 228d6b6db2105f56271f66434d329edc19afb852
Author: Alexei Colin <ac <AT> alexeicolin <DOT> com>
AuthorDate: Tue Feb 16 15:12:06 2021 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 00:56:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=228d6b6d
sci-libs/vtk: 8.2.0: update deprecated var for setting Python site-dir
Problem: On some platforms (ppc64le), Python modules are installed into
$EPREFIX/usr/lib64/pythonX.Y/site-packages
instead of
$EPREFIX/usr/lib/pythonX.Y/site-packages
Reason: The ebuild sets VTK_INSTALL_PYTHON_MODULE_DIR, but it has
been deprecated and thus has no effect. Thus, the install directory
used is the default install directory, and for some reason it's
/usr/lib64 instead of /usr/lib. The only reference to the deprecated
var in v8.2.0 is to print the deprecation warning:
./CMake/vtkDirectories.cmake:29:if(DEFINED VTK_INSTALL_PYTHON_MODULE_DIR)
./CMake/vtkDirectories.cmake-30- message(WARNING
./CMake/vtkDirectories.cmake:31: "VTK_INSTALL_PYTHON_MODULE_DIR is no longer supported. "
./CMake/vtkDirectories.cmake-32- "Set `VTK_PYTHON_SITE_PACKAGES_SUFFIX` instead, although not needed in most cases.")
./CMake/vtkDirectories.cmake-33-endif()
Note that in versions >8.2.0, this warning has been removed, too.
The fix: VTK_INSTALL_PYTHON_MODULES_DIR is still honored, including in >8.2.0,
so use it instead.
Note that VTK_PYTHON_SITE_PACKAGES_SUFFIX does not help because it
is appended after the lib directory in the path.
Perhaps a deeper fix might be to figure out why the default lib dir
is set to lib64 instead of lib. I didn't investigate this further.
The ebuild already intends to override the default, and this commit just
fixes that override.
I don't know if the default dir is still broken in >8.2.0, i.e. whether
it is still necessary for the >8.2.0 ebuilds to override the default
installation directory. There have been related changes, though, see at
least this commit that's not in 8.2.0 but is in master:
commit 4c42ff417c209087bf0058a9eb2614928943156b
Author: Ben Boeckel <ben.boeckel <AT> kitware.com>
Date: Thu Oct 18 13:17:11 2018 -0400
vtkPython: expose VTK_PYTHONPATH to consumers of VTK
Signed-off-by: Alexei Colin <ac <AT> alexeicolin.com>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 2 +-
sci-libs/vtk/vtk-8.2.0.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index 12dba470d8a..9ab67fa0c1e 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -254,7 +254,7 @@ src_configure() {
if use python; then
mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON_LIBRARY="$(python_get_library_path)"
-DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
index 0c4458bbb7f..0eab965aa3f 100644
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0.ebuild
@@ -248,7 +248,7 @@ src_configure() {
if use python; then
mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULE_DIR="$(python_get_sitedir)"
+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
-DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON_LIBRARY="$(python_get_library_path)"
-DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-02 1:24 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-02 1:24 UTC (permalink / raw
To: gentoo-commits
commit: 4342b5087bd84cbe64de318c152b5425ec7f8d7b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 2 01:23:23 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 2 01:23:23 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4342b508
sci-libs/vtk: delete README from bundled vtkm for now
Avoids collision with paraview. We'll ideally try to get paraview
building with system VTK again but VTK takes a while to build so
anything to prevent collisions for users now is important while
we investigate that possibility.
Bug: https://bugs.gentoo.org/253881
Bug: https://bugs.gentoo.org/793221
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.1.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild
index 848e2fce63d..8c86ad38458 100644
--- a/sci-libs/vtk/vtk-9.0.1.ebuild
+++ b/sci-libs/vtk/vtk-9.0.1.ebuild
@@ -515,6 +515,11 @@ src_install() {
doenvd "${T}"/40${PN}
use web && webapp_src_install
+
+ # Temporary!
+ # Avoid collision with paraview.
+ # bug #793221
+ rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
}
# webapp.eclass exports these but we want it optional #534036
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-10 3:38 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-10 3:38 UTC (permalink / raw
To: gentoo-commits
commit: 4578daf387523650389985ad579c9578f0a4bd64
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Jun 2 15:48:32 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 03:37:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4578daf3
sci-libs/vtk: add python-3.9 support
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
index 9ab67fa0c1e..4d29ebbccca 100644
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{7,8,9} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
@@ -216,7 +216,7 @@ src_configure() {
-DVTK_Group_Views=$(usex views)
-DVTK_Group_Web=$(usex web)
-DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
- -DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
+ -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
-DVTK_WRAP_JAVA=$(usex java)
-DVTK_WRAP_PYTHON=$(usex python)
-DVTK_WRAP_PYTHON_SIP=$(usex python)
@@ -261,7 +261,7 @@ src_configure() {
-DSIP_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
-DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
+# -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
-DVTK_USE_SYSTEM_SIX=ON
)
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-15 14:42 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-15 14:42 UTC (permalink / raw
To: gentoo-commits
commit: fd37ff618d5b4cee09c665c60f36a1a455670049
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Jun 15 14:31:07 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 14:39:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd37ff61
sci-libs/vtk: update dependency on dev-python/sip
Use slotted dev-python/sip package
Remove obsolete commented cmake variable
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r3.ebuild | 381 +++++++++++++++++++++++++++++++++++++++
1 file changed, 381 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.2.0-r3.ebuild b/sci-libs/vtk/vtk-8.2.0-r3.ebuild
new file mode 100644
index 00000000000..63e8d2b3d60
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.2.0-r3.ebuild
@@ -0,0 +1,381 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+# Short package version
+SPV="$(ver_cut 1-2)"
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
+ mysql odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
+ video_cards_nvidia views web +X"
+
+REQUIRED_USE="
+ all-modules? ( boost ffmpeg gdal mpi mysql odbc postgres python qt5 )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-cpp/eigen
+ dev-db/sqlite
+ dev-libs/double-conversion:0=
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=dev-libs/pugixml-1.11
+ >=media-libs/freetype-2.5.4
+ media-libs/glew:0=
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf:0=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ all-modules? (
+ !sci-libs/xdmf2
+ <dev-libs/pegtl-3
+ sci-libs/kissfft
+ )
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( media-video/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.8:* )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ $(python_gen_cond_dep '
+ python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
+ mysql? ( dev-db/mysql-connector-c )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/sip:5[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtx11extras:5
+ $(python_gen_cond_dep '
+ python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ web? (
+ ${WEBAPP_DEPEND}
+ $(python_gen_cond_dep '
+ dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
+ dev-python/constantly[${PYTHON_MULTI_USEDEP}]
+ dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
+ dev-python/incremental[${PYTHON_MULTI_USEDEP}]
+ dev-python/six[${PYTHON_MULTI_USEDEP}]
+ dev-python/twisted[${PYTHON_MULTI_USEDEP}]
+ dev-python/txaio[${PYTHON_MULTI_USEDEP}]
+ dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ doc? ( app-doc/doxygen )
+ mpi? ( app-admin/chrpath )
+"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
+ "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
+ "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
+ "${FILESDIR}"/${P}-fno-common.patch # bug 721048
+ "${FILESDIR}"/${P}-py38.patch
+ "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
+ "${FILESDIR}"/${P}-pugixml.patch
+ "${FILESDIR}"/${P}-0001-fix-library-installation-dir-for-xdmf3.patch
+)
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3 zfp
+ for x in expat freetype hdf5 jpeg jsoncpp kissfft libharu libxml2 lz4 netcdf pugixml png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+
+ sed -i -e '/add_subdirectory(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
+ sed -i -e '/vtk_target_export(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
+
+ # my_bool is no longer used in MySQL and MariaDB isn't supported in vtk-8
+ sed -e 's/my_bool/bool/' -i IO/MySQL/vtkMySQL{Database,Query}.cxx || die
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PUGIXML=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
+ -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex all-modules)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON
+ # we don't have a package for zfp yet
+ -DVTK_USE_SYSTEM_ZFP=OFF
+ )
+ fi
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ if use tcl; then
+ # install Tcl docs
+ docinto vtk_tcl
+ docinto .
+ fi
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # with MPI, rpaths are not deleted properly
+ if use mpi; then
+ chrpath -d "${ED}"/usr/$(get_libdir)/*.so.* || die
+ if use python; then
+ chrpath -d "${ED}"/$(python_get_sitedir)/vtkmodules/*.so || die
+ chrpath -d "${ED}"/usr/bin/{,p}vtkpython || die
+ fi
+ fi
+
+ use python && python_optimize
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-15 14:42 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-15 14:42 UTC (permalink / raw
To: gentoo-commits
commit: 99c1fe7f18a1b2aee9b2a873a8312001bd48bdf4
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Jun 15 13:29:36 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 14:39:26 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99c1fe7f
sci-libs/vtk: drop 8.2.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0.ebuild | 346 ------------------------------------------
1 file changed, 346 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0.ebuild b/sci-libs/vtk/vtk-8.2.0.ebuild
deleted file mode 100644
index 0eab965aa3f..00000000000
--- a/sci-libs/vtk/vtk-8.2.0.ebuild
+++ /dev/null
@@ -1,346 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-# Short package version
-SPV="$(ver_cut 1-2)"
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )"
-
-LICENSE="BSD LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
-IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
- odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
- video_cards_nvidia views web +X xdmf2"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 boost )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- examples? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )"
-
-RDEPEND="
- app-arch/lz4
- dev-cpp/eigen
- dev-db/sqlite
- dev-libs/double-conversion:0=
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- dev-libs/pugixml
- >=media-libs/freetype-2.5.4
- media-libs/glew:0=
- >=media-libs/libharu-2.3.0-r2
- media-libs/libpng:0=
- media-libs/libtheora
- media-libs/mesa
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf:0=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- boost? ( dev-libs/boost:=[mpi?] )
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- ffmpeg? ( media-video/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.7:* )
- mpi? (
- virtual/mpi[cxx,romio]
- $(python_gen_cond_dep '
- python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/sip[${PYTHON_MULTI_USEDEP}]
- ')
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- $(python_gen_cond_dep '
- python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- web? (
- ${WEBAPP_DEPEND}
- $(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
- ')
- )
- xdmf2? ( sci-libs/xdmf2 )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="doc? ( app-doc/doxygen )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
- "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
- "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
- "${FILESDIR}"/${P}-fno-common.patch # bug 721048
- "${FILESDIR}"/${P}-py38.patch
- "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
-)
-
-RESTRICT="test"
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- cmake_src_prepare
-
- local x
- # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in expat freetype hdf5 jpeg jsoncpp libharu libxml2 lz4 netcdf png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
- -DVTK_USE_SYSTEM_GL2PS=OFF
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
- -DVTK_USE_SYSTEM_DIY2=OFF
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
- -DVTK_WWW_DIR="${ED}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex xdmf2)
- -DBUILD_TESTING=$(usex examples)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use mpi; then
- mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
- -DVTK_USE_SYSTEM_SIX=ON
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- # Stop web page images from being compressed
- use doc && docompress -x /usr/share/doc/${PF}/doxygen
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-15 14:42 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-15 14:42 UTC (permalink / raw
To: gentoo-commits
commit: 784747f9dd700fa7fd9c7bf9aac18c8da607f1cd
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Jun 15 14:33:02 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 14:39:29 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=784747f9
sci-libs/vtk: drop 8.2.0-r2
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/21252
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r2.ebuild | 382 ---------------------------------------
1 file changed, 382 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r2.ebuild b/sci-libs/vtk/vtk-8.2.0-r2.ebuild
deleted file mode 100644
index 4335d1c44a2..00000000000
--- a/sci-libs/vtk/vtk-8.2.0-r2.ebuild
+++ /dev/null
@@ -1,382 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-# Short package version
-SPV="$(ver_cut 1-2)"
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )"
-
-LICENSE="BSD LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
- mysql odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
- video_cards_nvidia views web +X"
-
-REQUIRED_USE="
- all-modules? ( boost ffmpeg gdal mpi mysql odbc postgres python qt5 )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- examples? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )"
-
-RDEPEND="
- app-arch/lz4
- dev-cpp/eigen
- dev-db/sqlite
- dev-libs/double-conversion:0=
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- >=dev-libs/pugixml-1.11
- >=media-libs/freetype-2.5.4
- media-libs/glew:0=
- >=media-libs/libharu-2.3.0-r2
- media-libs/libpng:0=
- media-libs/libtheora
- media-libs/mesa
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf:0=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- all-modules? (
- !sci-libs/xdmf2
- <dev-libs/pegtl-3
- sci-libs/kissfft
- )
- boost? ( dev-libs/boost:=[mpi?] )
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- ffmpeg? ( media-video/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.8:* )
- mpi? (
- virtual/mpi[cxx,romio]
- $(python_gen_cond_dep '
- python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- mysql? ( dev-db/mysql-connector-c )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/sip[${PYTHON_MULTI_USEDEP}]
- ')
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- $(python_gen_cond_dep '
- python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- web? (
- ${WEBAPP_DEPEND}
- $(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
- ')
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- doc? ( app-doc/doxygen )
- mpi? ( app-admin/chrpath )
-"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
- "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
- "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
- "${FILESDIR}"/${P}-fno-common.patch # bug 721048
- "${FILESDIR}"/${P}-py38.patch
- "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
- "${FILESDIR}"/${P}-pugixml.patch
- "${FILESDIR}"/${P}-0001-fix-library-installation-dir-for-xdmf3.patch
-)
-
-RESTRICT="test"
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- cmake_src_prepare
-
- local x
- # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3 zfp
- for x in expat freetype hdf5 jpeg jsoncpp kissfft libharu libxml2 lz4 netcdf pugixml png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
-
- sed -i -e '/add_subdirectory(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
- sed -i -e '/vtk_target_export(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
-
- # my_bool is no longer used in MySQL and MariaDB isn't supported in vtk-8
- sed -e 's/my_bool/bool/' -i IO/MySQL/vtkMySQL{Database,Query}.cxx || die
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
- -DVTK_USE_SYSTEM_GL2PS=OFF
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PUGIXML=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
- -DVTK_USE_SYSTEM_DIY2=OFF
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
- -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex all-modules)
- -DBUILD_TESTING=$(usex examples)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use all-modules; then
- mycmakeargs+=(
- -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON
- # we don't have a package for zfp yet
- -DVTK_USE_SYSTEM_ZFP=OFF
- )
- fi
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use mpi; then
- mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
-# -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
- -DVTK_USE_SYSTEM_SIX=ON
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- # Stop web page images from being compressed
- use doc && docompress -x /usr/share/doc/${PF}/doxygen
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- # with MPI, rpaths are not deleted properly
- if use mpi; then
- chrpath -d "${ED}"/usr/$(get_libdir)/*.so.* || die
- if use python; then
- chrpath -d "${ED}"/$(python_get_sitedir)/vtkmodules/*.so || die
- chrpath -d "${ED}"/usr/bin/{,p}vtkpython || die
- fi
- fi
-
- use python && python_optimize
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-15 14:42 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-06-15 14:42 UTC (permalink / raw
To: gentoo-commits
commit: 2b9af8181527696693dba967875bea4397aa0fe0
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Jun 15 14:28:15 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 14:39:27 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b9af818
sci-libs/vtk: drop 8.2.0-r1
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/metadata.xml | 1 -
sci-libs/vtk/vtk-8.2.0-r1.ebuild | 352 ---------------------------------------
2 files changed, 353 deletions(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index b7fedcbd916..8fc9a950f8f 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -27,7 +27,6 @@
<flag name="tbb">Use <pkg>dev-cpp/tbb</pkg> to handle smp support</flag>
<flag name="views">Building Views modules</flag>
<flag name="web">Install web component</flag>
- <flag name="xdmf2">Support for xdmf2 formatted data</flag>
<flag name="R">Enable support for dev-lang/R</flag>
</use>
</pkgmetadata>
diff --git a/sci-libs/vtk/vtk-8.2.0-r1.ebuild b/sci-libs/vtk/vtk-8.2.0-r1.ebuild
deleted file mode 100644
index 4d29ebbccca..00000000000
--- a/sci-libs/vtk/vtk-8.2.0-r1.ebuild
+++ /dev/null
@@ -1,352 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-# Short package version
-SPV="$(ver_cut 1-2)"
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )"
-
-LICENSE="BSD LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
- odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
- video_cards_nvidia views web +X xdmf2"
-
-REQUIRED_USE="
- all-modules? ( python xdmf2 boost )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- examples? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )"
-
-RDEPEND="
- app-arch/lz4
- dev-cpp/eigen
- dev-db/sqlite
- dev-libs/double-conversion:0=
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- >=dev-libs/pugixml-1.11
- >=media-libs/freetype-2.5.4
- media-libs/glew:0=
- >=media-libs/libharu-2.3.0-r2
- media-libs/libpng:0=
- media-libs/libtheora
- media-libs/mesa
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf:0=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- all-modules? ( dev-libs/pegtl )
- boost? ( dev-libs/boost:=[mpi?] )
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- ffmpeg? ( media-video/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.7:* )
- mpi? (
- virtual/mpi[cxx,romio]
- $(python_gen_cond_dep '
- python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/sip[${PYTHON_MULTI_USEDEP}]
- ')
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- $(python_gen_cond_dep '
- python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- web? (
- ${WEBAPP_DEPEND}
- $(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
- ')
- )
- xdmf2? ( sci-libs/xdmf2 )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="doc? ( app-doc/doxygen )"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
- "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
- "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
- "${FILESDIR}"/${P}-fno-common.patch # bug 721048
- "${FILESDIR}"/${P}-py38.patch
- "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
- "${FILESDIR}"/${P}-pugixml.patch
-)
-
-RESTRICT="test"
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- cmake_src_prepare
-
- local x
- # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3
- for x in expat freetype hdf5 jpeg jsoncpp libharu libxml2 lz4 netcdf pugixml png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
-
- sed -i -e '/add_subdirectory(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
- sed -i -e '/vtk_target_export(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
- -DVTK_USE_SYSTEM_GL2PS=OFF
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PUGIXML=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
- -DVTK_USE_SYSTEM_DIY2=OFF
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
- -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex xdmf2)
- -DBUILD_TESTING=$(usex examples)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use mpi; then
- mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
-# -DVTK_PYTHON_SETUP_ARGS:STRING="--prefix=${EPREFIX} --root=${D}"
- -DVTK_USE_SYSTEM_SIX=ON
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- # Stop web page images from being compressed
- use doc && docompress -x /usr/share/doc/${PF}/doxygen
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-25 13:05 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2021-06-25 13:05 UTC (permalink / raw
To: gentoo-commits
commit: a4f2a634a69b0d1b7315af5238136b335acb558e
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Jun 23 14:37:58 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Jun 25 13:05:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4f2a634
sci-libs/vtk: solve RUNPATH issue
- fix issue with NULL DT_RUNPATH when USE=mpi
- remove obsolete docinto with USE=tcl
- bug #727338 is not reproducible
Bug: https://bugs.gentoo.org/727338
Closes: https://bugs.gentoo.org/778170
Closes: https://bugs.gentoo.org/795840
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r4.ebuild | 375 +++++++++++++++++++++++++++++++++++++++
1 file changed, 375 insertions(+)
diff --git a/sci-libs/vtk/vtk-8.2.0-r4.ebuild b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
new file mode 100644
index 00000000000..5573bf1a4a7
--- /dev/null
+++ b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
@@ -0,0 +1,375 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+# Short package version
+SPV="$(ver_cut 1-2)"
+inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ )"
+
+LICENSE="BSD LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
+ mysql odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
+ video_cards_nvidia views web +X"
+
+REQUIRED_USE="
+ all-modules? ( boost ffmpeg gdal mpi mysql odbc postgres python qt5 )
+ java? ( qt5 )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ tcl? ( rendering )
+ examples? ( python )
+ tk? ( tcl )
+ web? ( python )
+ ^^ ( X aqua offscreen )"
+
+RDEPEND="
+ app-arch/lz4
+ dev-cpp/eigen
+ dev-db/sqlite
+ dev-libs/double-conversion:0=
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ >=dev-libs/pugixml-1.11
+ >=media-libs/freetype-2.5.4
+ media-libs/glew:0=
+ >=media-libs/libharu-2.3.0-r2
+ media-libs/libpng:0=
+ media-libs/libtheora
+ media-libs/mesa
+ media-libs/tiff:0
+ sci-libs/exodusii
+ sci-libs/hdf5:=
+ sci-libs/netcdf:0=
+ sci-libs/netcdf-cxx:3
+ sys-libs/zlib
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXmu
+ x11-libs/libXt
+ all-modules? (
+ !sci-libs/xdmf2
+ <dev-libs/pegtl-3
+ sci-libs/kissfft
+ )
+ boost? ( dev-libs/boost:=[mpi?] )
+ examples? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ )
+ ffmpeg? ( media-video/ffmpeg )
+ gdal? ( sci-libs/gdal )
+ java? ( >=virtual/jdk-1.8:* )
+ mpi? (
+ virtual/mpi[cxx,romio]
+ $(python_gen_cond_dep '
+ python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
+ mysql? ( dev-db/mysql-connector-c )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/sip:5[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+ qt5? (
+ dev-qt/designer:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtsql:5
+ dev-qt/qtx11extras:5
+ $(python_gen_cond_dep '
+ python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
+ ')
+ )
+ R? ( dev-lang/R )
+ tbb? ( dev-cpp/tbb )
+ tcl? ( dev-lang/tcl:0= )
+ tk? ( dev-lang/tk:0= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ web? (
+ ${WEBAPP_DEPEND}
+ $(python_gen_cond_dep '
+ dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
+ dev-python/constantly[${PYTHON_MULTI_USEDEP}]
+ dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
+ dev-python/incremental[${PYTHON_MULTI_USEDEP}]
+ dev-python/six[${PYTHON_MULTI_USEDEP}]
+ dev-python/twisted[${PYTHON_MULTI_USEDEP}]
+ dev-python/txaio[${PYTHON_MULTI_USEDEP}]
+ dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
+ ')
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ doc? ( app-doc/doxygen )
+ mpi? ( app-admin/chrpath )
+"
+
+S="${WORKDIR}"/VTK-${PV}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
+ "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
+ "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
+ "${FILESDIR}"/${P}-fno-common.patch # bug 721048
+ "${FILESDIR}"/${P}-py38.patch
+ "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
+ "${FILESDIR}"/${P}-pugixml.patch
+ "${FILESDIR}"/${P}-0001-fix-library-installation-dir-for-xdmf3.patch
+)
+
+RESTRICT="test"
+
+pkg_setup() {
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ local x
+ # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3 zfp
+ for x in expat freetype hdf5 jpeg jsoncpp kissfft libharu libxml2 lz4 netcdf pugixml png tiff zlib; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+
+ sed -i -e '/add_subdirectory(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
+ sed -i -e '/vtk_target_export(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
+
+ # my_bool is no longer used in MySQL and MariaDB isn't supported in vtk-8
+ sed -e 's/my_bool/bool/' -i IO/MySQL/vtkMySQL{Database,Query}.cxx || die
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ # general configuration
+ local mycmakeargs=(
+ -Wno-dev
+ -DVTK_DIR="${S}"
+ -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
+ -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
+ -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
+ -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
+ -DVTK_CUSTOM_LIBRARY_SUFFIX=""
+ -DBUILD_SHARED_LIBS=ON
+ -DVTK_USE_SYSTEM_AUTOBAHN=ON
+ -DVTK_USE_SYSTEM_EXPAT=ON
+ -DVTK_USE_SYSTEM_FREETYPE=ON
+ -DVTK_USE_SYSTEM_FreeType=ON
+ # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
+ -DVTK_USE_SYSTEM_GL2PS=OFF
+ -DVTK_USE_SYSTEM_HDF5=ON
+ -DVTK_USE_SYSTEM_JPEG=ON
+ -DVTK_USE_SYSTEM_LIBPROJ=OFF
+ -DVTK_USE_SYSTEM_LIBXML2=ON
+ -DVTK_USE_SYSTEM_LibXml2=ON
+ -DVTK_USE_SYSTEM_NETCDF=ON
+ -DVTK_USE_SYSTEM_OGGTHEORA=ON
+ -DVTK_USE_SYSTEM_PUGIXML=ON
+ -DVTK_USE_SYSTEM_PNG=ON
+ -DVTK_USE_SYSTEM_TIFF=ON
+ -DVTK_USE_SYSTEM_TWISTED=ON
+ -DVTK_USE_SYSTEM_XDMF2=OFF
+ -DVTK_USE_SYSTEM_XDMF3=OFF
+ -DVTK_USE_SYSTEM_ZLIB=ON
+ -DVTK_USE_SYSTEM_ZOPE=ON
+ -DVTK_USE_SYSTEM_LIBRARIES=ON
+ # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
+ -DVTK_USE_SYSTEM_DIY2=OFF
+ -DVTK_USE_GL2PS=ON
+ -DVTK_USE_LARGE_DATA=ON
+ -DVTK_USE_PARALLEL=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_Group_StandAlone=ON
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_EXAMPLES=$(usex examples)
+ -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
+ -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
+ -DVTK_Group_Imaging=$(usex imaging)
+ -DVTK_Group_MPI=$(usex mpi)
+ -DVTK_Group_Rendering=$(usex rendering)
+ -DVTK_Group_Tk=$(usex tk)
+ -DVTK_Group_Views=$(usex views)
+ -DVTK_Group_Web=$(usex web)
+ -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
+ -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
+ -DVTK_WRAP_JAVA=$(usex java)
+ -DVTK_WRAP_PYTHON=$(usex python)
+ -DVTK_WRAP_PYTHON_SIP=$(usex python)
+ -DVTK_WRAP_TCL=$(usex tcl)
+ -DVTK_USE_BOOST=$(usex boost)
+ -DUSE_VTK_USE_BOOST=$(usex boost)
+ -DModule_vtkInfovisBoost=$(usex boost)
+ -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
+ -DVTK_USE_ODBC=$(usex odbc)
+ -DModule_vtkIOODBC=$(usex odbc)
+ -DVTK_USE_OFFSCREEN=$(usex offscreen)
+ -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
+ -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
+ -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
+ -DModule_vtkFiltersStatisticsGnuR=$(usex R)
+ -DVTK_USE_X=$(usex X)
+ # IO
+ -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
+ -DModule_vtkIOGDAL=$(usex gdal)
+ -DModule_vtkIOGeoJSON=$(usex json)
+ -DModule_vtkIOXdmf2=$(usex all-modules)
+ -DBUILD_TESTING=$(usex examples)
+ # Apple stuff, does it really work?
+ -DVTK_USE_COCOA=$(usex aqua)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON
+ # we don't have a package for zfp yet
+ -DVTK_USE_SYSTEM_ZFP=OFF
+ )
+ fi
+
+ if use java; then
+ local javacargs=$(java-pkg_javac-args)
+ mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DPYTHON_LIBRARY="$(python_get_library_path)"
+ -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
+ -DSIP_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
+ -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
+ -DVTK_USE_SYSTEM_SIX=ON
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=(
+ -DVTK_USE_QVTK=ON
+ -DVTK_USE_QVTK_OPENGL=ON
+ -DVTK_USE_QVTK_QTOPENGL=ON
+ -DQT_WRAP_CPP=ON
+ -DQT_WRAP_UI=ON
+ -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
+ -DDESIRED_QT_VERSION=5
+ -DVTK_QT_VERSION=5
+ -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
+ -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
+ -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
+ -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
+ -DVTK_Group_Qt:BOOL=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
+ )
+ fi
+
+ if use R; then
+ mycmakeargs+=(
+ -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
+ -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
+ )
+ fi
+
+ append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake_src_configure
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
+
+ # Stop web page images from being compressed
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # with MPI, rpaths are not deleted properly
+ if use mpi; then
+ chrpath -d "${ED}"/usr/$(get_libdir)/*.so* || die
+ chrpath -d "${ED}"/usr/bin/* || die
+ if use python; then
+ chrpath -d "${ED}"/$(python_get_sitedir)/vtkmodules/*.so || die
+ fi
+ fi
+
+ use python && python_optimize
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-06-25 13:05 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2021-06-25 13:05 UTC (permalink / raw
To: gentoo-commits
commit: 52effe67330e028d7ac8b194cc7215c211e6f6d8
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Jun 23 14:40:30 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Jun 25 13:05:10 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52effe67
sci-libs/vtk: drop 8.2.0-r3
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/21391
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r3.ebuild | 381 ---------------------------------------
1 file changed, 381 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r3.ebuild b/sci-libs/vtk/vtk-8.2.0-r3.ebuild
deleted file mode 100644
index 63e8d2b3d60..00000000000
--- a/sci-libs/vtk/vtk-8.2.0-r3.ebuild
+++ /dev/null
@@ -1,381 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7,8,9} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-# Short package version
-SPV="$(ver_cut 1-2)"
-inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
- )"
-
-LICENSE="BSD LGPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
- mysql odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
- video_cards_nvidia views web +X"
-
-REQUIRED_USE="
- all-modules? ( boost ffmpeg gdal mpi mysql odbc postgres python qt5 )
- java? ( qt5 )
- python? ( ${PYTHON_REQUIRED_USE} )
- tcl? ( rendering )
- examples? ( python )
- tk? ( tcl )
- web? ( python )
- ^^ ( X aqua offscreen )"
-
-RDEPEND="
- app-arch/lz4
- dev-cpp/eigen
- dev-db/sqlite
- dev-libs/double-conversion:0=
- dev-libs/expat
- dev-libs/jsoncpp:=
- dev-libs/libxml2:2
- >=dev-libs/pugixml-1.11
- >=media-libs/freetype-2.5.4
- media-libs/glew:0=
- >=media-libs/libharu-2.3.0-r2
- media-libs/libpng:0=
- media-libs/libtheora
- media-libs/mesa
- media-libs/tiff:0
- sci-libs/exodusii
- sci-libs/hdf5:=
- sci-libs/netcdf:0=
- sci-libs/netcdf-cxx:3
- sys-libs/zlib
- virtual/jpeg:0
- virtual/opengl
- x11-libs/libX11
- x11-libs/libXmu
- x11-libs/libXt
- all-modules? (
- !sci-libs/xdmf2
- <dev-libs/pegtl-3
- sci-libs/kissfft
- )
- boost? ( dev-libs/boost:=[mpi?] )
- examples? (
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- )
- ffmpeg? ( media-video/ffmpeg )
- gdal? ( sci-libs/gdal )
- java? ( >=virtual/jdk-1.8:* )
- mpi? (
- virtual/mpi[cxx,romio]
- $(python_gen_cond_dep '
- python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- mysql? ( dev-db/mysql-connector-c )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep '
- dev-python/sip:5[${PYTHON_MULTI_USEDEP}]
- ')
- )
- qt5? (
- dev-qt/designer:5
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtopengl:5
- dev-qt/qtsql:5
- dev-qt/qtx11extras:5
- $(python_gen_cond_dep '
- python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
- ')
- )
- R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
- tcl? ( dev-lang/tcl:0= )
- tk? ( dev-lang/tk:0= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- web? (
- ${WEBAPP_DEPEND}
- $(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
- ')
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- doc? ( app-doc/doxygen )
- mpi? ( app-admin/chrpath )
-"
-
-S="${WORKDIR}"/VTK-${PV}
-
-PATCHES=(
- "${FILESDIR}"/${PN}-8.1.0-openmpi-4-compatibility.patch
- "${FILESDIR}"/${P}-qt-5.15.patch # bug 726960
- "${FILESDIR}"/${P}-gcc-10.patch # bug 723374
- "${FILESDIR}"/${P}-fno-common.patch # bug 721048
- "${FILESDIR}"/${P}-py38.patch
- "${FILESDIR}"/${P}-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch # bug #751088
- "${FILESDIR}"/${P}-pugixml.patch
- "${FILESDIR}"/${P}-0001-fix-library-installation-dir-for-xdmf3.patch
-)
-
-RESTRICT="test"
-
-pkg_setup() {
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- cmake_src_prepare
-
- local x
- # missing: VPIC freerange libproj4 mrmpi sqlite utf8 verdict xmdf2 xmdf3 zfp
- for x in expat freetype hdf5 jpeg jsoncpp kissfft libharu libxml2 lz4 netcdf pugixml png tiff zlib; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
-
- sed -i -e '/add_subdirectory(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
- sed -i -e '/vtk_target_export(vtkpugixml)/d' ThirdParty/pugixml/CMakeLists.txt || die
-
- # my_bool is no longer used in MySQL and MariaDB isn't supported in vtk-8
- sed -e 's/my_bool/bool/' -i IO/MySQL/vtkMySQL{Database,Query}.cxx || die
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-}
-
-src_configure() {
- # general configuration
- local mycmakeargs=(
- -Wno-dev
- -DVTK_DIR="${S}"
- -DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
- -DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
- -DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
- -DVTK_CUSTOM_LIBRARY_SUFFIX=""
- -DBUILD_SHARED_LIBS=ON
- -DVTK_USE_SYSTEM_AUTOBAHN=ON
- -DVTK_USE_SYSTEM_EXPAT=ON
- -DVTK_USE_SYSTEM_FREETYPE=ON
- -DVTK_USE_SYSTEM_FreeType=ON
- # Use bundled gl2ps (bundled version is a patched version of 1.3.9. Post 1.3.9 versions should be compatible)
- -DVTK_USE_SYSTEM_GL2PS=OFF
- -DVTK_USE_SYSTEM_HDF5=ON
- -DVTK_USE_SYSTEM_JPEG=ON
- -DVTK_USE_SYSTEM_LIBPROJ=OFF
- -DVTK_USE_SYSTEM_LIBXML2=ON
- -DVTK_USE_SYSTEM_LibXml2=ON
- -DVTK_USE_SYSTEM_NETCDF=ON
- -DVTK_USE_SYSTEM_OGGTHEORA=ON
- -DVTK_USE_SYSTEM_PUGIXML=ON
- -DVTK_USE_SYSTEM_PNG=ON
- -DVTK_USE_SYSTEM_TIFF=ON
- -DVTK_USE_SYSTEM_TWISTED=ON
- -DVTK_USE_SYSTEM_XDMF2=OFF
- -DVTK_USE_SYSTEM_XDMF3=OFF
- -DVTK_USE_SYSTEM_ZLIB=ON
- -DVTK_USE_SYSTEM_ZOPE=ON
- -DVTK_USE_SYSTEM_LIBRARIES=ON
- # Use bundled diy2 (no gentoo package / upstream does not provide a Finddiy2.cmake or diy2Config.cmake / diy2-config.cmake)
- -DVTK_USE_SYSTEM_DIY2=OFF
- -DVTK_USE_GL2PS=ON
- -DVTK_USE_LARGE_DATA=ON
- -DVTK_USE_PARALLEL=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_Group_StandAlone=ON
- -DBUILD_DOCUMENTATION=$(usex doc)
- -DBUILD_EXAMPLES=$(usex examples)
- -DBUILD_VTK_BUILD_ALL_MODULES_FOR_TESTS=off
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules)
- -DUSE_DOCUMENTATION_HTML_HELP=$(usex doc)
- -DVTK_Group_Imaging=$(usex imaging)
- -DVTK_Group_MPI=$(usex mpi)
- -DVTK_Group_Rendering=$(usex rendering)
- -DVTK_Group_Tk=$(usex tk)
- -DVTK_Group_Views=$(usex views)
- -DVTK_Group_Web=$(usex web)
- -DVTK_SMP_IMPLEMENTATION_TYPE="$(usex tbb TBB Sequential)"
- -DVTK_WWW_DIR="${EPREFIX}/${MY_HTDOCSDIR}"
- -DVTK_WRAP_JAVA=$(usex java)
- -DVTK_WRAP_PYTHON=$(usex python)
- -DVTK_WRAP_PYTHON_SIP=$(usex python)
- -DVTK_WRAP_TCL=$(usex tcl)
- -DVTK_USE_BOOST=$(usex boost)
- -DUSE_VTK_USE_BOOST=$(usex boost)
- -DModule_vtkInfovisBoost=$(usex boost)
- -DModule_vtkInfovisBoostGraphAlgorithms=$(usex boost)
- -DVTK_USE_ODBC=$(usex odbc)
- -DModule_vtkIOODBC=$(usex odbc)
- -DVTK_USE_OFFSCREEN=$(usex offscreen)
- -DVTK_OPENGL_HAS_OSMESA=$(usex offscreen)
- -DVTK_USE_OGGTHEORA_ENCODER=$(usex theora)
- -DVTK_USE_NVCONTROL=$(usex video_cards_nvidia)
- -DModule_vtkFiltersStatisticsGnuR=$(usex R)
- -DVTK_USE_X=$(usex X)
- # IO
- -DVTK_USE_FFMPEG_ENCODER=$(usex ffmpeg)
- -DModule_vtkIOGDAL=$(usex gdal)
- -DModule_vtkIOGeoJSON=$(usex json)
- -DModule_vtkIOXdmf2=$(usex all-modules)
- -DBUILD_TESTING=$(usex examples)
- # Apple stuff, does it really work?
- -DVTK_USE_COCOA=$(usex aqua)
- )
-
- if use all-modules; then
- mycmakeargs+=(
- -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON
- # we don't have a package for zfp yet
- -DVTK_USE_SYSTEM_ZFP=OFF
- )
- fi
-
- if use java; then
- local javacargs=$(java-pkg_javac-args)
- mycmakeargs+=( -DJAVAC_OPTIONS=${javacargs// /;} )
- fi
-
- if use mpi; then
- mycmakeargs+=( -DVTK_USE_SYSTEM_MPI4PY=ON )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_INSTALL_PYTHON_MODULES_DIR="$(python_get_sitedir)"
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DPYTHON_LIBRARY="$(python_get_library_path)"
- -DSIP_PYQT_DIR="${EPREFIX}/usr/share/sip"
- -DSIP_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_INCLUDE_DIR="$(python_get_includedir)"
- -DVTK_PYTHON_LIBRARY="$(python_get_library_path)"
- -DVTK_USE_SYSTEM_SIX=ON
- )
- fi
-
- if use qt5; then
- mycmakeargs+=(
- -DVTK_USE_QVTK=ON
- -DVTK_USE_QVTK_OPENGL=ON
- -DVTK_USE_QVTK_QTOPENGL=ON
- -DQT_WRAP_CPP=ON
- -DQT_WRAP_UI=ON
- -DVTK_INSTALL_QT_DIR="$(basename $(qt5_get_libdir))/qt5/plugins/designer"
- -DDESIRED_QT_VERSION=5
- -DVTK_QT_VERSION=5
- -DQT_MOC_EXECUTABLE="$(qt5_get_bindir)/moc"
- -DQT_UIC_EXECUTABLE="$(qt5_get_bindir)/uic"
- -DQT_INCLUDE_DIR="${EPREFIX}/usr/include/qt5"
- -DQT_QMAKE_EXECUTABLE="$(qt5_get_bindir)/qmake"
- -DVTK_Group_Qt:BOOL=ON
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON
- )
- fi
-
- if use R; then
- mycmakeargs+=(
- -DR_LIBRARY_BLAS=/usr/$(get_libdir)/R/lib/libR.so
- -DR_LIBRARY_LAPACK=/usr/$(get_libdir)/R/lib/libR.so
- )
- fi
-
- append-cppflags -D__STDC_CONSTANT_MACROS -D_UNICODE
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/$(get_libdir)/${PN}.jar
-
- # Stop web page images from being compressed
- use doc && docompress -x /usr/share/doc/${PF}/doxygen
-
- if use tcl; then
- # install Tcl docs
- docinto vtk_tcl
- docinto .
- fi
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
- fi
-
- # with MPI, rpaths are not deleted properly
- if use mpi; then
- chrpath -d "${ED}"/usr/$(get_libdir)/*.so.* || die
- if use python; then
- chrpath -d "${ED}"/$(python_get_sitedir)/vtkmodules/*.so || die
- chrpath -d "${ED}"/usr/bin/{,p}vtkpython || die
- fi
- fi
-
- use python && python_optimize
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-07-07 20:05 Ionen Wolkens
0 siblings, 0 replies; 92+ messages in thread
From: Ionen Wolkens @ 2021-07-07 20:05 UTC (permalink / raw
To: gentoo-commits
commit: 33e9d55403254a688035003145520574f27f1b7d
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Jul 6 19:25:15 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Jul 7 20:04:44 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33e9d554
sci-libs/vtk: add subslot
Add a subslot to trigger automatic rebuilds on consumers on up- or
downgrades of the package.
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r4.ebuild | 16 ++++++++--------
sci-libs/vtk/vtk-9.0.1.ebuild | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r4.ebuild b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
index 5573bf1a4a7..2051e4d46bd 100644
--- a/sci-libs/vtk/vtk-8.2.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
@@ -8,21 +8,21 @@ WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
# Short package version
-SPV="$(ver_cut 1-2)"
+MY_PV="$(ver_cut 1-2)"
inherit flag-o-matic java-pkg-opt-2 python-single-r1 qmake-utils toolchain-funcs cmake virtualx webapp
DESCRIPTION="The Visualization Toolkit"
HOMEPAGE="https://www.vtk.org/"
SRC_URI="
- https://www.vtk.org/files/release/${SPV}/VTK-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${SPV}/vtkDocHtml-${PV}.tar.gz )
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
examples? (
- https://www.vtk.org/files/release/${SPV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${SPV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
)"
LICENSE="BSD LGPL-2"
-SLOT="0"
+SLOT="0/${MY_PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="all-modules aqua boost doc examples ffmpeg gdal imaging java json mpi
mysql odbc offscreen postgres python qt5 R rendering tbb tcl theora tk
@@ -181,7 +181,7 @@ src_configure() {
-Wno-dev
-DVTK_DIR="${S}"
-DVTK_INSTALL_LIBRARY_DIR=$(get_libdir)
- -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${SPV}"
+ -DVTK_INSTALL_PACKAGE_DIR="$(get_libdir)/cmake/${PN}-${MY_PV}"
-DVTK_INSTALL_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
-DVTK_DATA_ROOT="${EPREFIX}/usr/share/${PN}/data"
-DVTK_CUSTOM_LIBRARY_SUFFIX=""
@@ -357,7 +357,7 @@ src_install() {
# environment
cat >> "${T}"/40${PN} <<- EOF || die
VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${SPV}
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}-${MY_PV}
VTKHOME=${EPREFIX}/usr
EOF
doenvd "${T}"/40${PN}
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild
index 8c86ad38458..fde829fd737 100644
--- a/sci-libs/vtk/vtk-9.0.1.ebuild
+++ b/sci-libs/vtk/vtk-9.0.1.ebuild
@@ -30,7 +30,7 @@ SRC_URI="
S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
-SLOT="0"
+SLOT="0/${MY_PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# Note: external xdmf2 has no recognized target
IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-07-17 18:18 David Seifert
0 siblings, 0 replies; 92+ messages in thread
From: David Seifert @ 2021-07-17 18:18 UTC (permalink / raw
To: gentoo-commits
commit: 5c2fe7c8a0c22b766f7da750daa2caf6881393fa
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 17 18:17:05 2021 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jul 17 18:17:05 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c2fe7c8
sci-libs/vtk: PYTHON_MULTI_USEDEP -> PYTHON_USEDEP
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-libs/vtk/vtk-8.2.0-r4.ebuild | 24 ++++++++++++------------
sci-libs/vtk/vtk-9.0.1.ebuild | 8 ++++----
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r4.ebuild b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
index 2051e4d46bd..2cfd6476f0a 100644
--- a/sci-libs/vtk/vtk-8.2.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r4.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8,9} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
@@ -80,7 +80,7 @@ RDEPEND="
mpi? (
virtual/mpi[cxx,romio]
$(python_gen_cond_dep '
- python? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
+ python? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
')
)
mysql? ( dev-db/mysql-connector-c )
@@ -90,7 +90,7 @@ RDEPEND="
python? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
- dev-python/sip:5[${PYTHON_MULTI_USEDEP}]
+ dev-python/sip:5[${PYTHON_USEDEP}]
')
)
qt5? (
@@ -101,7 +101,7 @@ RDEPEND="
dev-qt/qtsql:5
dev-qt/qtx11extras:5
$(python_gen_cond_dep '
- python? ( dev-python/PyQt5[${PYTHON_MULTI_USEDEP}] )
+ python? ( dev-python/PyQt5[${PYTHON_USEDEP}] )
')
)
R? ( dev-lang/R )
@@ -112,14 +112,14 @@ RDEPEND="
web? (
${WEBAPP_DEPEND}
$(python_gen_cond_dep '
- dev-python/autobahn[${PYTHON_MULTI_USEDEP}]
- dev-python/constantly[${PYTHON_MULTI_USEDEP}]
- dev-python/hyperlink[${PYTHON_MULTI_USEDEP}]
- dev-python/incremental[${PYTHON_MULTI_USEDEP}]
- dev-python/six[${PYTHON_MULTI_USEDEP}]
- dev-python/twisted[${PYTHON_MULTI_USEDEP}]
- dev-python/txaio[${PYTHON_MULTI_USEDEP}]
- dev-python/zope-interface[${PYTHON_MULTI_USEDEP}]
+ dev-python/autobahn[${PYTHON_USEDEP}]
+ dev-python/constantly[${PYTHON_USEDEP}]
+ dev-python/hyperlink[${PYTHON_USEDEP}]
+ dev-python/incremental[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/txaio[${PYTHON_USEDEP}]
+ dev-python/zope-interface[${PYTHON_USEDEP}]
')
)
"
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild
index fde829fd737..6e0717f814c 100644
--- a/sci-libs/vtk/vtk-9.0.1.ebuild
+++ b/sci-libs/vtk/vtk-9.0.1.ebuild
@@ -7,7 +7,7 @@ EAPI=7
# - add USE flag for remote modules? Those modules can be downloaded
# properly before building.
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8,9} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
@@ -107,9 +107,9 @@ RDEPEND="
web? ( ${WEBAPP_DEPEND} )
$(python_gen_cond_dep '
python? (
- boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_MULTI_USEDEP}] )
- gdal? ( sci-libs/gdal:=[python?,${PYTHON_MULTI_USEDEP}] )
- mpi? ( dev-python/mpi4py[${PYTHON_MULTI_USEDEP}] )
+ boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
+ gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
+ mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
)
')
"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-08-02 20:52 Ionen Wolkens
0 siblings, 0 replies; 92+ messages in thread
From: Ionen Wolkens @ 2021-08-02 20:52 UTC (permalink / raw
To: gentoo-commits
commit: 582031cbf749c6a79ba6b0b6f09b6754857c5915
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sun Aug 1 14:56:15 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Aug 2 20:49:46 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=582031cb
sci-libs/vtk: fix auto-detection of CUDA arch
In some cases, the CUDA architecture is not successfully detected,
when 'native' is passed to the build system. For this, check for the
environment variable VTK_CUDA_ARCH to be exported and pass that
value from the environment instead, if it's a valid CUDA architecture
name.
This ignores the 'fermi' architecture, as it's no longer supported by
current dev-util/nvidia-cuda-toolkit-11* versions.
Closes: https://bugs.gentoo.org/803818
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/21855
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.1.ebuild | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild
index 6e0717f814c..a38e3f1c327 100644
--- a/sci-libs/vtk/vtk-9.0.1.ebuild
+++ b/sci-libs/vtk/vtk-9.0.1.ebuild
@@ -41,7 +41,7 @@ RESTRICT="!test? ( test )"
REQUIRED_USE="
all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering theora views )
- cuda? ( X )
+ cuda? ( X video_cards_nvidia )
java? ( rendering )
python? ( ${PYTHON_REQUIRED_USE} )
qt5? ( X rendering )
@@ -294,7 +294,28 @@ src_configure() {
fi
if use cuda; then
- mycmakeargs+=( -DVTKm_CUDA_Architecture="native" )
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+ native)
+ ewarn "If auto detection fails for you, please try and export the"
+ ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+ ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+ cuda_arch=native
+ ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
fi
if use ffmpeg; then
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-08-27 20:23 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2021-08-27 20:23 UTC (permalink / raw
To: gentoo-commits
commit: 0df6c00546a4096f2702623024a232f2da484cc9
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 20:21:11 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 20:23:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0df6c005
sci-libs/vtk: add version 9.0.3
Bug: https://bugs.gentoo.org/809209
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/Manifest | 4 +
sci-libs/vtk/vtk-9.0.3.ebuild | 558 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 562 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 38838374c4f..44f8bccde53 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,8 +1,12 @@
DIST VTK-8.2.0.tar.gz 35511819 BLAKE2B 908ed9377d75da6d0bd84de0078ba90a1e9396fcc906ca2981102e2c79d9d3ba4b1297f98682cd2802c7c04f9dbec32ee70740e645c44180befd765f7cda34a6 SHA512 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
DIST VTK-9.0.1.tar.gz 34687900 BLAKE2B 2c1cc2a35eb6f05d23ec49d8c3c8d787134ce840f940d948da1e03d6875c15e2660c52776218fc3dbccf77959d9affaef051cba14991e6dd150ef5d50b5ae2eb SHA512 eb2508e2409ad302cc5db65282a9c1ff4477ac8a93e0fee898ad8f0974d72decc7d5d444dc825a3c2f7952ebf59853616097ebe0d134649cab0d49a9619065bf
+DIST VTK-9.0.3.tar.gz 34684378 BLAKE2B 6862ab2df95bbefe9d3970757af6521cfa874476f6ee8e64c4e6e279f2e0cbb8a8299bc3b0b8bb9b7254d01a169644e7927b67b11b2ce934ddc87bce0a9e4c26 SHA512 00528011f9206444d09fc6cea05c46930745bb70ea02be6244ab3eb510ae82af772157c025157b1761dc4c6a9ab538b57f814c03a708f30aa3598a421fdc6ae2
DIST VTKData-8.2.0.tar.gz 304287875 BLAKE2B 0292d84be40e11203326dcb1bf45f4a6ad2a785968130d4868a230f1cfbdcb600d0c03d4dae3519e2737dc7a964f29c51500c91b3da4291069608dd80a2bce45 SHA512 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
DIST VTKData-9.0.1.tar.gz 413680549 BLAKE2B 2804f8261763553408c1de8b0d47091875a262cf670604289879253922932f260d4ce8d1586e9b2a8ef3a1286c90e8a61c6472fafcddbd9b40090818eb310d49 SHA512 2fc418a6e15bd4e30ce181bb209c39666982645dbdbe2d6491683497662b72712689e58cf54b7af91865d0e3d0cb3f9ab66606b02964d57bf88d769d292dd938
+DIST VTKData-9.0.3.tar.gz 413854066 BLAKE2B 84c2fa0ae5df8567cc06022262fe3ea1202c553168757c94aa4a0a258360deccdf349d474c2f6585fc2054ee8e0468df4c80ec835cecf6b2391efa639f479eaa SHA512 28ab2ecb32860d820f736e9ceb4345bcd03471f0a35b90f8c9ccbe05454f7a95a4de3c99bae2f4b9db87a27ef8fe50159cd283f5e921f4e6e69b06a50a0570c6
DIST VTKLargeData-8.2.0.tar.gz 247522878 BLAKE2B 68dc90548604fbbb8419f2b400aea5d26599b48208b4104f41eaa90f99483689cd928cb00e3a7def396d65db2f03c9294d132854a27af74f66eb118c8319c4ce SHA512 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588
DIST VTKLargeData-9.0.1.tar.gz 247522733 BLAKE2B a1d603f7560cf2cd7d1f355fd30fa5b638f2559259f09a6cbbe80da8c2937b1c50cfa2c3b2c6adf99b5bbf537678f817e44bc72962f36364913ae6cc524ae8a8 SHA512 b3303d633f063a6f3bfcc61b441f445611ff7cff6f006c77d8452eb5a3af89a18b2a1201a2dbd230af085b9e45b9abb70319d2f41db0f1e19c632286e7b02ec2
+DIST VTKLargeData-9.0.3.tar.gz 247523270 BLAKE2B f4011292957454da5d8c9e515bcd0972af4299cef3928098d745be96559a1e0080297871c6e11fdd98498c8786a30a6674bc650368adcbcdbc6260e0938d21a1 SHA512 ebd6cb5f2935b77961dd68d0c0da2ea5ab900cec8c2eb641c785a604c65702e40a3e44d32bf3f2acfce9ec28dd89f41bf29f93a4f89d5b36c713f3743d7125b1
DIST vtkDocHtml-8.2.0.tar.gz 132516675 BLAKE2B 8651a3793f3326dee36c5ae8a280b00943067f973115697f34770eefd42b5534a7d7e439e7745b32c5fa83daf5a5292b854792d18951af236d0aa77c3aa2b564 SHA512 45e198bde82948d1d8e47a8bdb64a2792c2bfdfc0d939ffe40ded79092d7ac5f497008c00c805baa09d27eabb419cdf0787eee1caf2ac44c5e8759ecf709a317
DIST vtkDocHtml-9.0.1.tar.gz 138707547 BLAKE2B 1493d21a41b5f8fd43c3503cb4f98905c6d8d0c39e3245a97141bb1baa59ef0054b52595b48fe2b1c1579b02da0dd1f660e5ef7fefd3c7a9cfdbed42f923a234 SHA512 9997fb73ab46d28f107f5a7ef31a86f6948cd3ff88184fd4f1b0cc14dff1b8b6395e420ae2b2a42e772b90b84d8e077cc4543b8b8c9495481c3f8271949f11e4
+DIST vtkDocHtml-9.0.3.tar.gz 132650096 BLAKE2B 45fc1a6942df3e79e500a552c3b3cda2099b9451191559d471e3a2e785a8c52b2c6273cfd2cc4a3f3f65582e607d9414475f58d243fde96a4f985bed479e53db SHA512 9b5fef43f3c2b92aa1fe6a9ba9458d6677874b09b167654db7f26df6feffdc34ed1a8fb4e59d64b75625063a774af77fe57f275903602a5f7daa74e1a2e71800
diff --git a/sci-libs/vtk/vtk-9.0.3.ebuild b/sci-libs/vtk/vtk-9.0.3.ebuild
new file mode 100644
index 00000000000..df3fa636198
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.0.3.ebuild
@@ -0,0 +1,558 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+
+PYTHON_COMPAT=( python3_{8,9} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda flag-o-matic java-pkg-opt-2 python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? ( https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# Note: external xdmf2 has no recognized target
+IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
+ +json kits mpi mysql odbc offscreen openmp pegtl postgres python
+ qt5 +rendering tbb theora tk video_cards_nvidia views web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering theora views )
+ cuda? ( X video_cards_nvidia )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( X rendering )
+ tk? ( X rendering python )
+ web? ( python )
+"
+
+RDEPEND="
+ app-arch/lz4
+ app-arch/xz-utils
+ dev-db/sqlite
+ dev-cpp/eigen[cuda?,openmp?]
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/libxml2:2
+ dev-libs/pugixml
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libpng
+ media-libs/libtheora
+ media-libs/tiff
+ <sci-libs/hdf5-1.12:=[mpi=]
+ sci-libs/kissfft[openmp?]
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ virtual/jpeg
+ all-modules? ( sci-geosciences/liblas[gdal] )
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ json? ( dev-libs/jsoncpp:= )
+ mpi? (
+ sci-libs/h5part
+ sys-cluster/openmpi[cxx,romio]
+ )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ rendering? (
+ media-libs/freeglut
+ media-libs/glew:=
+ sci-libs/proj:=
+ virtual/opengl
+ x11-libs/gl2ps
+ )
+ tbb? ( dev-cpp/tbb )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+ $(python_gen_cond_dep '
+ python? (
+ boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
+ gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
+ mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ ')
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/jsoncpp
+ dev-libs/utfcpp
+ pegtl? ( <dev-libs/pegtl-3 )
+"
+BDEPEND="
+ mpi? ( app-admin/chrpath )
+ openmp? (
+ || (
+ sys-devel/gcc[openmp(+)]
+ sys-devel/clang-runtime[openmp(+)]
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.0.1-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch
+ "${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch
+ "${FILESDIR}"/${PN}-9.0.1-limits-include-gcc11.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+CHECKREQS_DISK_BUILD="3G"
+
+pkg_pretend() {
+ if use examples; then
+ CHECKREQS_DISK_BUILD="4G"
+ fi
+ if use cuda; then
+ # NOTE: This should actually equal to (number of build jobs)*7G,
+ # as any of the cuda compile tasks can take up 7G!
+ # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+ check-reqs_pkg_setup
+}
+
+pkg_setup() {
+ if use examples; then
+ CHECKREQS_DISK_BUILD="4G"
+ fi
+ if use cuda; then
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+ check-reqs_pkg_setup
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ # If we have system libraries available use these and delete
+ # the respecting files in ${S}/ThirdParty to save some space.
+ # Note: libharu is omitted: vtk needs an updated version (2.4.0)
+ # Note: no valid xdmf2 targets are found for system xdmf2
+ # Note: no valid target found for h5part and mpi4py
+ # TODO: diy2 exodusII h5part libharu verdict vpic vtkm xdmf2 xdmf3 zfp
+ local -a DROPS=( doubleconversion eigen expat freetype gl2ps glew
+ hdf5 jpeg jsoncpp libproj libxml2 lz4 lzma netcdf ogg png pugixml
+ sqlite theora tiff utf8 zlib )
+ use pegtl && DROPS+=( pegtl )
+
+ local x
+ for x in ${DROPS[@]}; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ unset x
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ if use test; then
+ if use java; then
+ eapply "${FILESDIR}/${P}-0004-disable-failing-java-test.patch"
+ fi
+ if use examples; then
+ eapply "${FILESDIR}/${P}-0005-disable-failing-tests.patch"
+ fi
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+# TODO: defaults for some variables to consider as USE flags
+# -DVTK_ANDROID_BUILD=OFF
+# -DVTK_BUILD_COMPILE_TOOLS_ONLY=OFF
+# -DVTK_ENABLE_LOGGING=ON
+# -DVTK_ENABLE_REMOTE_MODULES=ON
+# -DVTK_INSTALL_SDK=ON
+# -DVTK_IOS_BUILD=OFF
+# -DVTK_LEGACY_REMOVE=OFF
+# -DVTK_LEGACY_SILENT=OFF
+# -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ -DVTK_ENABLE_KITS=$(usex kits ON OFF)
+ # default to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ -DVTK_DATA_STORE="${S}/.ExternalData"
+
+ # Use upstream default, where USE flags are not given.
+ # Passing "DONT_WANT" will restrict building of modules from
+ # those groups and will severly limit the built libraries.
+ # Exceptions are MPI, where the default is "DONT_WANT" and
+ # StandAlone using "WANT".
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="WANT"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "WANT" "DEFAULT")
+
+ -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKm="WANT"
+
+ -DVTK_PYTHON_VERSION="3"
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=$(usex X ON OFF)
+
+ -DVTK_VERSIONED_INSTALL=ON
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+ native)
+ ewarn "If auto detection fails for you, please try and export the"
+ ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+ ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+ cuda_arch=native
+ ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ fi
+
+ if use gdal; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT" )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ )
+ fi
+
+ if use json; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT" )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTKm_ENABLE_MPI=ON
+ )
+ if use python; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ fi
+ fi
+
+ if use mysql; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use odbc; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ fi
+
+ if use offscreen; then
+ mycmakeargs+=(
+ -DVTK_OPENGL_HAS_OSMESA=ON
+ -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
+ -DVTK_DEFAULT_RENDER_WINDOW_HEADLESS=ON
+ )
+ fi
+
+ if use openmp; then
+ if use tbb; then
+ einfo "NOTE: You have specified both openmp and tbb USE flags."
+ einfo "NOTE: Tbb will take precedence. Disabling OpenMP"
+ # Sequential is default SMP implementation, nothing special to do
+ else
+ mycmakeargs+=(
+ -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP"
+ -DVTKm_ENABLE_OPENMP=ON
+ )
+ fi
+ fi
+
+ if use pegtl; then
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON )
+ else
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF )
+ fi
+
+ if use postgres; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_WRAPPING=ON
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering || use web || use all-modules; then
+ # needs patched version
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF )
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON
+ -DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON
+ -DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON
+ )
+ fi
+
+ if use tbb; then
+ mycmakeargs+=(
+ -DVTK_SMP_IMPLEMENTATION_TYPE="TBB"
+ -DVTKm_ENABLE_TBB=ON
+ )
+ fi
+
+ if use test; then
+ ewarn "Testing requires VTK_FORBID_DOWNLOADS=OFF by upstream."
+ ewarn "Care has been taken to pre-download all required files."
+ ewarn "In case you find missing files, please inform me."
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+ -DVTK_FORBID_DOWNLOADS=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=OFF
+ -DVTK_FORBID_DOWNLOADS=ON
+ )
+ fi
+
+ if use theora; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT" )
+ fi
+
+ if use all-modules; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_MomentInvariants="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_PoissonReconstruction="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_Powercrust="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_SignedTensor="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkDICOM="DONT_WANT"
+ -DVTK_MODULE_USE_EXTERNAL_vtkkissfft=ON
+ )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake_src_configure
+}
+
+src_test() {
+ nonfatal virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ # with MPI runpath's are not deleted properly
+ if use mpi; then
+ chrpath -d "${ED}"/usr/$(get_libdir)/*.so.${PV} || die
+ fi
+
+ use python && python_optimize
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+
+ # Temporary!
+ # Avoid collision with paraview.
+ # bug #793221
+ rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-08-27 20:23 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2021-08-27 20:23 UTC (permalink / raw
To: gentoo-commits
commit: 3bea1198277db50dd5c6b87004df29ad1a0743a8
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 20:21:59 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 20:23:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bea1198
sci-libs/vtk: drop version 9.0.1
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/Manifest | 4 -
sci-libs/vtk/vtk-9.0.1.ebuild | 558 ------------------------------------------
2 files changed, 562 deletions(-)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 44f8bccde53..f9b3188226e 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,12 +1,8 @@
DIST VTK-8.2.0.tar.gz 35511819 BLAKE2B 908ed9377d75da6d0bd84de0078ba90a1e9396fcc906ca2981102e2c79d9d3ba4b1297f98682cd2802c7c04f9dbec32ee70740e645c44180befd765f7cda34a6 SHA512 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
-DIST VTK-9.0.1.tar.gz 34687900 BLAKE2B 2c1cc2a35eb6f05d23ec49d8c3c8d787134ce840f940d948da1e03d6875c15e2660c52776218fc3dbccf77959d9affaef051cba14991e6dd150ef5d50b5ae2eb SHA512 eb2508e2409ad302cc5db65282a9c1ff4477ac8a93e0fee898ad8f0974d72decc7d5d444dc825a3c2f7952ebf59853616097ebe0d134649cab0d49a9619065bf
DIST VTK-9.0.3.tar.gz 34684378 BLAKE2B 6862ab2df95bbefe9d3970757af6521cfa874476f6ee8e64c4e6e279f2e0cbb8a8299bc3b0b8bb9b7254d01a169644e7927b67b11b2ce934ddc87bce0a9e4c26 SHA512 00528011f9206444d09fc6cea05c46930745bb70ea02be6244ab3eb510ae82af772157c025157b1761dc4c6a9ab538b57f814c03a708f30aa3598a421fdc6ae2
DIST VTKData-8.2.0.tar.gz 304287875 BLAKE2B 0292d84be40e11203326dcb1bf45f4a6ad2a785968130d4868a230f1cfbdcb600d0c03d4dae3519e2737dc7a964f29c51500c91b3da4291069608dd80a2bce45 SHA512 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
-DIST VTKData-9.0.1.tar.gz 413680549 BLAKE2B 2804f8261763553408c1de8b0d47091875a262cf670604289879253922932f260d4ce8d1586e9b2a8ef3a1286c90e8a61c6472fafcddbd9b40090818eb310d49 SHA512 2fc418a6e15bd4e30ce181bb209c39666982645dbdbe2d6491683497662b72712689e58cf54b7af91865d0e3d0cb3f9ab66606b02964d57bf88d769d292dd938
DIST VTKData-9.0.3.tar.gz 413854066 BLAKE2B 84c2fa0ae5df8567cc06022262fe3ea1202c553168757c94aa4a0a258360deccdf349d474c2f6585fc2054ee8e0468df4c80ec835cecf6b2391efa639f479eaa SHA512 28ab2ecb32860d820f736e9ceb4345bcd03471f0a35b90f8c9ccbe05454f7a95a4de3c99bae2f4b9db87a27ef8fe50159cd283f5e921f4e6e69b06a50a0570c6
DIST VTKLargeData-8.2.0.tar.gz 247522878 BLAKE2B 68dc90548604fbbb8419f2b400aea5d26599b48208b4104f41eaa90f99483689cd928cb00e3a7def396d65db2f03c9294d132854a27af74f66eb118c8319c4ce SHA512 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588
-DIST VTKLargeData-9.0.1.tar.gz 247522733 BLAKE2B a1d603f7560cf2cd7d1f355fd30fa5b638f2559259f09a6cbbe80da8c2937b1c50cfa2c3b2c6adf99b5bbf537678f817e44bc72962f36364913ae6cc524ae8a8 SHA512 b3303d633f063a6f3bfcc61b441f445611ff7cff6f006c77d8452eb5a3af89a18b2a1201a2dbd230af085b9e45b9abb70319d2f41db0f1e19c632286e7b02ec2
DIST VTKLargeData-9.0.3.tar.gz 247523270 BLAKE2B f4011292957454da5d8c9e515bcd0972af4299cef3928098d745be96559a1e0080297871c6e11fdd98498c8786a30a6674bc650368adcbcdbc6260e0938d21a1 SHA512 ebd6cb5f2935b77961dd68d0c0da2ea5ab900cec8c2eb641c785a604c65702e40a3e44d32bf3f2acfce9ec28dd89f41bf29f93a4f89d5b36c713f3743d7125b1
DIST vtkDocHtml-8.2.0.tar.gz 132516675 BLAKE2B 8651a3793f3326dee36c5ae8a280b00943067f973115697f34770eefd42b5534a7d7e439e7745b32c5fa83daf5a5292b854792d18951af236d0aa77c3aa2b564 SHA512 45e198bde82948d1d8e47a8bdb64a2792c2bfdfc0d939ffe40ded79092d7ac5f497008c00c805baa09d27eabb419cdf0787eee1caf2ac44c5e8759ecf709a317
-DIST vtkDocHtml-9.0.1.tar.gz 138707547 BLAKE2B 1493d21a41b5f8fd43c3503cb4f98905c6d8d0c39e3245a97141bb1baa59ef0054b52595b48fe2b1c1579b02da0dd1f660e5ef7fefd3c7a9cfdbed42f923a234 SHA512 9997fb73ab46d28f107f5a7ef31a86f6948cd3ff88184fd4f1b0cc14dff1b8b6395e420ae2b2a42e772b90b84d8e077cc4543b8b8c9495481c3f8271949f11e4
DIST vtkDocHtml-9.0.3.tar.gz 132650096 BLAKE2B 45fc1a6942df3e79e500a552c3b3cda2099b9451191559d471e3a2e785a8c52b2c6273cfd2cc4a3f3f65582e607d9414475f58d243fde96a4f985bed479e53db SHA512 9b5fef43f3c2b92aa1fe6a9ba9458d6677874b09b167654db7f26df6feffdc34ed1a8fb4e59d64b75625063a774af77fe57f275903602a5f7daa74e1a2e71800
diff --git a/sci-libs/vtk/vtk-9.0.1.ebuild b/sci-libs/vtk/vtk-9.0.1.ebuild
deleted file mode 100644
index a38e3f1c327..00000000000
--- a/sci-libs/vtk/vtk-9.0.1.ebuild
+++ /dev/null
@@ -1,558 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-# TODO:
-# - add USE flag for remote modules? Those modules can be downloaded
-# properly before building.
-
-PYTHON_COMPAT=( python3_{8,9} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit check-reqs cmake cuda flag-o-matic java-pkg-opt-2 python-single-r1 toolchain-funcs virtualx webapp
-
-# Short package version
-MY_PV="$(ver_cut 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
- examples? ( https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz )
- test? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- )
-"
-S="${WORKDIR}/VTK-${PV}"
-
-LICENSE="BSD LGPL-2"
-SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-# Note: external xdmf2 has no recognized target
-IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
- +json kits mpi mysql odbc offscreen openmp pegtl postgres python
- qt5 +rendering tbb theora tk video_cards_nvidia views web"
-
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering theora views )
- cuda? ( X video_cards_nvidia )
- java? ( rendering )
- python? ( ${PYTHON_REQUIRED_USE} )
- qt5? ( X rendering )
- tk? ( X rendering python )
- web? ( python )
-"
-
-RDEPEND="
- app-arch/lz4
- app-arch/xz-utils
- dev-db/sqlite
- dev-cpp/eigen[cuda?,openmp?]
- dev-libs/double-conversion:=
- dev-libs/expat
- dev-libs/icu:=
- dev-libs/libxml2:2
- dev-libs/pugixml
- media-libs/freetype
- media-libs/libogg
- media-libs/libpng
- media-libs/libtheora
- media-libs/tiff
- sci-libs/hdf5:=[mpi=]
- sci-libs/kissfft[openmp?]
- sci-libs/netcdf:=[mpi=]
- sys-libs/zlib
- virtual/jpeg
- all-modules? ( sci-geosciences/liblas[gdal] )
- boost? ( dev-libs/boost:=[mpi?] )
- cuda? ( dev-util/nvidia-cuda-toolkit:= )
- ffmpeg? ( media-video/ffmpeg:= )
- gdal? ( sci-libs/gdal:= )
- java? ( >=virtual/jdk-1.8:* )
- json? ( dev-libs/jsoncpp:= )
- mpi? (
- sci-libs/h5part
- sys-cluster/openmpi[cxx,romio]
- )
- mysql? ( dev-db/mariadb-connector-c )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? ( ${PYTHON_DEPS} )
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtsql:5
- dev-qt/qtwidgets:5
- )
- rendering? (
- media-libs/freeglut
- media-libs/glew:=
- sci-libs/proj:=
- virtual/opengl
- x11-libs/gl2ps
- )
- tbb? ( dev-cpp/tbb )
- tk? ( dev-lang/tk:= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- views? (
- x11-libs/libICE
- x11-libs/libXext
- )
- web? ( ${WEBAPP_DEPEND} )
- $(python_gen_cond_dep '
- python? (
- boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
- gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
- mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- )
- ')
-"
-DEPEND="
- ${RDEPEND}
- dev-libs/jsoncpp
- dev-libs/utfcpp
- pegtl? ( <dev-libs/pegtl-3 )
-"
-BDEPEND="
- mpi? ( app-admin/chrpath )
- openmp? (
- || (
- sys-devel/gcc[openmp(+)]
- sys-devel/clang-runtime[openmp(+)]
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/${P}-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch
- "${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch
- "${FILESDIR}"/${PN}-9.0.1-limits-include-gcc11.patch
-)
-
-DOCS=( CONTRIBUTING.md README.md )
-
-CHECKREQS_DISK_BUILD="3G"
-
-pkg_pretend() {
- if use examples; then
- CHECKREQS_DISK_BUILD="4G"
- fi
- if use cuda; then
- # NOTE: This should actually equal to (number of build jobs)*7G,
- # as any of the cuda compile tasks can take up 7G!
- # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
- CHECKREQS_MEMORY="7G"
- CHECKREQS_DISK_BUILD="14G"
- fi
- check-reqs_pkg_setup
-}
-
-pkg_setup() {
- if use examples; then
- CHECKREQS_DISK_BUILD="4G"
- fi
- if use cuda; then
- CHECKREQS_MEMORY="7G"
- CHECKREQS_DISK_BUILD="14G"
- fi
- check-reqs_pkg_setup
-
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- # If we have system libraries available use these and delete
- # the respecting files in ${S}/ThirdParty to save some space.
- # Note: libharu is omitted: vtk needs an updated version (2.4.0)
- # Note: no valid xdmf2 targets are found for system xdmf2
- # Note: no valid target found for h5part and mpi4py
- # TODO: diy2 exodusII h5part libharu verdict vpic vtkm xdmf2 xdmf3 zfp
- local -a DROPS=( doubleconversion eigen expat freetype gl2ps glew
- hdf5 jpeg jsoncpp libproj libxml2 lz4 lzma netcdf ogg png pugixml
- sqlite theora tiff utf8 zlib )
- use pegtl && DROPS+=( pegtl )
-
- local x
- for x in ${DROPS[@]}; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- unset x
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-
- if use test; then
- if use java; then
- eapply "${FILESDIR}/${P}-0004-disable-failing-java-test.patch"
- fi
- if use examples; then
- eapply "${FILESDIR}/${P}-0005-disable-failing-tests.patch"
- fi
- fi
-
- cmake_src_prepare
-
- if use cuda; then
- cuda_add_sandbox -w
- cuda_src_prepare
- fi
-
- if use test; then
- ebegin "Copying data files to ${BUILD_DIR}"
- mkdir -p "${BUILD_DIR}/ExternalData" || die
- pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
- ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
- ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
- popd >/dev/null || die
- eend "$?"
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
-# TODO: defaults for some variables to consider as USE flags
-# -DVTK_ANDROID_BUILD=OFF
-# -DVTK_BUILD_COMPILE_TOOLS_ONLY=OFF
-# -DVTK_ENABLE_LOGGING=ON
-# -DVTK_ENABLE_REMOTE_MODULES=ON
-# -DVTK_INSTALL_SDK=ON
-# -DVTK_IOS_BUILD=OFF
-# -DVTK_LEGACY_REMOVE=OFF
-# -DVTK_LEGACY_SILENT=OFF
-# -DVTK_WHEEL_BUILD=OFF
-
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
- # we use the pre-built documentation and install these with USE=doc
- -DVTK_BUILD_DOCUMENTATION=OFF
- -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
-
- -DVTK_ENABLE_KITS=$(usex kits ON OFF)
- # default to ON: USE flag for this?
- -DVTK_ENABLE_REMOTE_MODULES=OFF
-
- -DVTK_DATA_STORE="${S}/.ExternalData"
-
- # Use upstream default, where USE flags are not given.
- # Passing "DONT_WANT" will restrict building of modules from
- # those groups and will severly limit the built libraries.
- # Exceptions are MPI, where the default is "DONT_WANT" and
- # StandAlone using "WANT".
- -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_StandAlone="WANT"
- -DVTK_GROUP_ENABLE_Views=$(usex views "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Web=$(usex web "WANT" "DEFAULT")
-
- -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKm="WANT"
-
- -DVTK_PYTHON_VERSION="3"
- -DVTK_RELOCATABLE_INSTALL=ON
-
- -DVTK_USE_CUDA=$(usex cuda ON OFF)
- # use system libraries where possible
- -DVTK_USE_EXTERNAL=ON
- -DVTK_USE_MPI=$(usex mpi ON OFF)
- -DVTK_USE_TK=$(usex tk ON OFF)
- -DVTK_USE_X=$(usex X ON OFF)
-
- -DVTK_VERSIONED_INSTALL=ON
-
- -DVTK_WRAP_JAVA=$(usex java ON OFF)
- -DVTK_WRAP_PYTHON=$(usex python ON OFF)
- )
-
- if use examples || use test; then
- mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
- fi
-
- if ! use java && ! use python; then
- # defaults to ON
- mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
- fi
-
- if use boost; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
- -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
- )
- fi
-
- if use cuda; then
- local cuda_arch=
- case ${VTK_CUDA_ARCH:-native} in
- # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
- # no longer supports it
- kepler|maxwell|pascal|volta|turing|ampere|all)
- cuda_arch=${VTK_CUDA_ARCH}
- ;;
- native)
- ewarn "If auto detection fails for you, please try and export the"
- ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
- ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
- cuda_arch=native
- ;;
- *)
- eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
- eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
- die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
- ;;
- esac
- ewarn "Using CUDA architecture '${cuda_arch}'"
-
- mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
- fi
-
- if use ffmpeg; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
- fi
-
- if use gdal; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT" )
- fi
-
- if use java; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_JARDIR="share/${PN}"
- -DVTK_ENABLE_WRAPPING=ON
- )
- fi
-
- if use json; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT" )
- fi
-
- if use mpi; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_MPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
- -DVTKm_ENABLE_MPI=ON
- )
- if use python; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
- fi
- fi
-
- if use mysql; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
- )
- fi
-
- if use odbc; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
- fi
-
- if use offscreen; then
- mycmakeargs+=(
- -DVTK_OPENGL_HAS_OSMESA=ON
- -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
- -DVTK_DEFAULT_RENDER_WINDOW_HEADLESS=ON
- )
- fi
-
- if use openmp; then
- if use tbb; then
- einfo "NOTE: You have specified both openmp and tbb USE flags."
- einfo "NOTE: Tbb will take precedence. Disabling OpenMP"
- # Sequential is default SMP implementation, nothing special to do
- else
- mycmakeargs+=(
- -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP"
- -DVTKm_ENABLE_OPENMP=ON
- )
- fi
- fi
-
- if use pegtl; then
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON )
- else
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF )
- fi
-
- if use postgres; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
- )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_ENABLE_WRAPPING=ON
- -DPython3_EXECUTABLE="${PYTHON}"
- -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
- )
- fi
-
- if use qt5; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
- if use mysql || use postgres; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
- fi
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
- fi
- if use views; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
- fi
- fi
-
- if use rendering || use web || use all-modules; then
- # needs patched version
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF )
- fi
-
- if use rendering; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
- -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON
- -DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON
- -DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON
- )
- fi
-
- if use tbb; then
- mycmakeargs+=(
- -DVTK_SMP_IMPLEMENTATION_TYPE="TBB"
- -DVTKm_ENABLE_TBB=ON
- )
- fi
-
- if use test; then
- ewarn "Testing requires VTK_FORBID_DOWNLOADS=OFF by upstream."
- ewarn "Care has been taken to pre-download all required files."
- ewarn "In case you find missing files, please inform me."
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=ON
- -DVTK_DATA_EXCLUDE_FROM_ALL=ON
- -DVTK_FORBID_DOWNLOADS=OFF
- )
- else
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=OFF
- -DVTK_FORBID_DOWNLOADS=ON
- )
- fi
-
- if use theora; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT" )
- fi
-
- if use all-modules; then
- mycmakeargs+=(
- -DVTK_ENABLE_OSPRAY=OFF
- -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_IOADIOS2="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_IOPDAL="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_MomentInvariants="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_PoissonReconstruction="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_Powercrust="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_SignedTensor="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_vtkDICOM="DONT_WANT"
- -DVTK_MODULE_USE_EXTERNAL_vtkkissfft=ON
- )
- fi
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_test() {
- nonfatal virtx cmake_src_test
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- # Stop web page images from being compressed
- if use doc; then
- HTML_DOCS=( "${WORKDIR}/html/." )
- fi
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
-
- einfo "Installing datafiles"
- insinto /usr/share/${PN}/data
- doins -r "${S}/.ExternalData"
- fi
-
- # with MPI runpath's are not deleted properly
- if use mpi; then
- chrpath -d "${ED}"/usr/$(get_libdir)/*.so.${PV} || die
- fi
-
- use python && python_optimize
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-
- # Temporary!
- # Avoid collision with paraview.
- # bug #793221
- rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-
- if use examples; then
- einfo "You can get more and updated examples at"
- einfo "https://kitware.github.io/vtk-examples/site/"
- fi
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-09-05 9:54 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2021-09-05 9:54 UTC (permalink / raw
To: gentoo-commits
commit: 0af4ed288f375e018308f04b5979589bc926c49f
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 5 08:03:27 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Sep 5 09:54:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af4ed28
sci-libs/vtk: drop missing patches
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3.ebuild | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.3.ebuild b/sci-libs/vtk/vtk-9.0.3.ebuild
index df3fa636198..b6d4fdcea02 100644
--- a/sci-libs/vtk/vtk-9.0.3.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3.ebuild
@@ -195,15 +195,6 @@ src_prepare() {
-i Utilities/Doxygen/CMakeLists.txt || die
fi
- if use test; then
- if use java; then
- eapply "${FILESDIR}/${P}-0004-disable-failing-java-test.patch"
- fi
- if use examples; then
- eapply "${FILESDIR}/${P}-0005-disable-failing-tests.patch"
- fi
- fi
-
cmake_src_prepare
if use cuda; then
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-10-27 15:09 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-10-27 15:09 UTC (permalink / raw
To: gentoo-commits
commit: 99328bfb5c353a60de6a577a71e460cf3d2bab07
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 27 15:08:55 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 27 15:08:55 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99328bfb
sci-libs/vtk: depend on < PROJ 8 for now
Should be fixed in 9.1.0 anyway.
Bug: https://bugs.gentoo.org/820521
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-9.0.3.ebuild => vtk-9.0.3-r1.ebuild} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.0.3.ebuild b/sci-libs/vtk/vtk-9.0.3-r1.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.0.3.ebuild
rename to sci-libs/vtk/vtk-9.0.3-r1.ebuild
index b6d4fdcea02..169b983aea2 100644
--- a/sci-libs/vtk/vtk-9.0.3.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r1.ebuild
@@ -93,7 +93,7 @@ RDEPEND="
rendering? (
media-libs/freeglut
media-libs/glew:=
- sci-libs/proj:=
+ <sci-libs/proj-8:=
virtual/opengl
x11-libs/gl2ps
)
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-10-29 22:23 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-10-29 22:23 UTC (permalink / raw
To: gentoo-commits
commit: 65c92e4a8a3ccba6f4c8a9715b2f497131b73491
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 29 22:18:00 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 29 22:22:45 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c92e4a
sci-libs/vtk: add tbb subslot operator
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-8.2.0-r4.ebuild => vtk-8.2.0-r5.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.0.3-r1.ebuild => vtk-9.0.3-r2.ebuild} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r4.ebuild b/sci-libs/vtk/vtk-8.2.0-r5.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-8.2.0-r4.ebuild
rename to sci-libs/vtk/vtk-8.2.0-r5.ebuild
index 2cfd6476f0a..20a38a74ce6 100644
--- a/sci-libs/vtk/vtk-8.2.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r5.ebuild
@@ -105,7 +105,7 @@ RDEPEND="
')
)
R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb )
+ tbb? ( dev-cpp/tbb:= )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
diff --git a/sci-libs/vtk/vtk-9.0.3-r1.ebuild b/sci-libs/vtk/vtk-9.0.3-r2.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.0.3-r1.ebuild
rename to sci-libs/vtk/vtk-9.0.3-r2.ebuild
index 169b983aea2..4bbb3680acf 100644
--- a/sci-libs/vtk/vtk-9.0.3-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r2.ebuild
@@ -97,7 +97,7 @@ RDEPEND="
virtual/opengl
x11-libs/gl2ps
)
- tbb? ( dev-cpp/tbb )
+ tbb? ( dev-cpp/tbb:= )
tk? ( dev-lang/tk:= )
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
views? (
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-12-02 1:25 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2021-12-02 1:25 UTC (permalink / raw
To: gentoo-commits
commit: 5bf40ce3dbc7cf0c6202ef54b8adec666155df57
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 2 01:24:02 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 2 01:24:02 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bf40ce3
sci-libs/vtk: pin to older TBB
Bug: https://bugs.gentoo.org/827310
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-8.2.0-r5.ebuild => vtk-8.2.0-r6.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.0.3-r2.ebuild => vtk-9.0.3-r3.ebuild} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-8.2.0-r5.ebuild b/sci-libs/vtk/vtk-8.2.0-r6.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-8.2.0-r5.ebuild
rename to sci-libs/vtk/vtk-8.2.0-r6.ebuild
index 20a38a74ce64..6cbd67167e03 100644
--- a/sci-libs/vtk/vtk-8.2.0-r5.ebuild
+++ b/sci-libs/vtk/vtk-8.2.0-r6.ebuild
@@ -105,7 +105,7 @@ RDEPEND="
')
)
R? ( dev-lang/R )
- tbb? ( dev-cpp/tbb:= )
+ tbb? ( <dev-cpp/tbb-2021:= )
tcl? ( dev-lang/tcl:0= )
tk? ( dev-lang/tk:0= )
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
diff --git a/sci-libs/vtk/vtk-9.0.3-r2.ebuild b/sci-libs/vtk/vtk-9.0.3-r3.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.0.3-r2.ebuild
rename to sci-libs/vtk/vtk-9.0.3-r3.ebuild
index 4bbb3680acf4..db7df9ecb55d 100644
--- a/sci-libs/vtk/vtk-9.0.3-r2.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r3.ebuild
@@ -97,7 +97,7 @@ RDEPEND="
virtual/opengl
x11-libs/gl2ps
)
- tbb? ( dev-cpp/tbb:= )
+ tbb? ( <dev-cpp/tbb-2021:= )
tk? ( dev-lang/tk:= )
video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
views? (
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2021-12-14 8:36 Joonas Niilola
0 siblings, 0 replies; 92+ messages in thread
From: Joonas Niilola @ 2021-12-14 8:36 UTC (permalink / raw
To: gentoo-commits
commit: 6010f1d0f545b9ddf5f2ee3fd673332d8342821a
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Fri Nov 5 19:34:22 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Dec 14 08:36:16 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6010f1d0
sci-libs/vtk: bump to 9.1.0
Bug: https://bugs.gentoo.org/820593
Closes: https://bugs.gentoo.org/822780
Closes: https://bugs.gentoo.org/820521
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sci-libs/vtk/Manifest | 6 +
sci-libs/vtk/vtk-9.1.0.ebuild | 596 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 602 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index f9b3188226ed..d345d4831ee0 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,8 +1,14 @@
DIST VTK-8.2.0.tar.gz 35511819 BLAKE2B 908ed9377d75da6d0bd84de0078ba90a1e9396fcc906ca2981102e2c79d9d3ba4b1297f98682cd2802c7c04f9dbec32ee70740e645c44180befd765f7cda34a6 SHA512 521bd4dabedbc24b0e80a314a34ecd7554b04af28a7973245e3a9cf99a09b995d1b8ac42305c8e53369f226a0a6da3cdb29105ba2c90b46492736ef717760286
DIST VTK-9.0.3.tar.gz 34684378 BLAKE2B 6862ab2df95bbefe9d3970757af6521cfa874476f6ee8e64c4e6e279f2e0cbb8a8299bc3b0b8bb9b7254d01a169644e7927b67b11b2ce934ddc87bce0a9e4c26 SHA512 00528011f9206444d09fc6cea05c46930745bb70ea02be6244ab3eb510ae82af772157c025157b1761dc4c6a9ab538b57f814c03a708f30aa3598a421fdc6ae2
+DIST VTK-9.1.0.tar.gz 47871165 BLAKE2B 68cebc0879737a519b53e73f198356208b047c301d38ee2d62b9a14539cdb9aa76bd7174baa29592c7b1cfd1cc9700d01e98519a207d67a232d16ad37295ac31 SHA512 b2c4be8795fa082e0776e6ffdb9a3fd88dbb235841a8369a34ebe26cf4c5fcb1610fcca987be314510629da3edc74ee76c0ce2cc88d5ef4b099ac550ac892b0a
DIST VTKData-8.2.0.tar.gz 304287875 BLAKE2B 0292d84be40e11203326dcb1bf45f4a6ad2a785968130d4868a230f1cfbdcb600d0c03d4dae3519e2737dc7a964f29c51500c91b3da4291069608dd80a2bce45 SHA512 517d0f6dfdb0c61f59df933f06d3a28c8a48ea684aaff311456213fe493e2a20128886144325fc4edfa376b2d375a2dae6c60ad6e3d5d2f4a7b0ac1d8545c87b
DIST VTKData-9.0.3.tar.gz 413854066 BLAKE2B 84c2fa0ae5df8567cc06022262fe3ea1202c553168757c94aa4a0a258360deccdf349d474c2f6585fc2054ee8e0468df4c80ec835cecf6b2391efa639f479eaa SHA512 28ab2ecb32860d820f736e9ceb4345bcd03471f0a35b90f8c9ccbe05454f7a95a4de3c99bae2f4b9db87a27ef8fe50159cd283f5e921f4e6e69b06a50a0570c6
+DIST VTKData-9.1.0.tar.gz 590185633 BLAKE2B 7451d57bc507571afa8a8f9ba541010e1924849759f228318b6390aabb07a68341b84b38b82cd504844194544c569b040c9fad1858e6e35e172e4e18000d338e SHA512 134a8dd2b029d3a4959b601987e68a0caa5d050532655b6786b5b67dfc77d3639628b2b957511f8998e63864c247c501a11a6aed248c762f13e860d878778e1a
+DIST VTKDataFiles-9.1.0.tar.gz 605163184 BLAKE2B 968e2fed1e17bb57da4f8dd38e17e128779e50dfce81fc31c6ef75a2f3fe46675dd77ab7343b609998b8ddd3927e256d1ea4117c2719ad76f61db435b5f1c34f SHA512 f56ebd087753e2d2805e2f5954197de4e9933ec90648956780525d83149277a7bca42ce376c4355a53fca71ec78510fed155955af71b70e1b26de27851252e36
DIST VTKLargeData-8.2.0.tar.gz 247522878 BLAKE2B 68dc90548604fbbb8419f2b400aea5d26599b48208b4104f41eaa90f99483689cd928cb00e3a7def396d65db2f03c9294d132854a27af74f66eb118c8319c4ce SHA512 8a7ea3d5870b1e4ccb31c77b4c270d00208349da1b2938e957210db3ec1449b678c66edc2faee1d4514aca6d725f642abc91e10ab0c151f6743cad1c53485588
DIST VTKLargeData-9.0.3.tar.gz 247523270 BLAKE2B f4011292957454da5d8c9e515bcd0972af4299cef3928098d745be96559a1e0080297871c6e11fdd98498c8786a30a6674bc650368adcbcdbc6260e0938d21a1 SHA512 ebd6cb5f2935b77961dd68d0c0da2ea5ab900cec8c2eb641c785a604c65702e40a3e44d32bf3f2acfce9ec28dd89f41bf29f93a4f89d5b36c713f3743d7125b1
+DIST VTKLargeData-9.1.0.tar.gz 247517666 BLAKE2B 1b47829ad51f246ff26c8b6d16c9fa431e53ca33fec99e8aa78ee156a82e4b3351e32ee36674d9d345f346efad085ae1e2d3186a144911d2210a31a259e69f1f SHA512 0760dfd4e92bbfec10fec9d783f548a8ca5464b1a1744dfa575d4ed4592756335dbfcf28249d2da964aa6b41933ff1ac98458e4a32484ee4bb91b5e7cfaa78c9
+DIST VTKLargeDataFiles-9.1.0.tar.gz 247504557 BLAKE2B a05892347a1a5cf5cb0df3f1c1d94efcdb68c28bcd0391617602565fddc4277ac44accec6f1b3ae2822a860f3d5f5642a56e36171b5d81bef137561182051d08 SHA512 10abc287256c7ec5fb7114f4054eda5cde1b75a8d2bbe70375fb96d31b7c4164be936489ce2fc9b5c33225f494d9b7f5f7bed648828661b17d6f66acb70eeddc
DIST vtkDocHtml-8.2.0.tar.gz 132516675 BLAKE2B 8651a3793f3326dee36c5ae8a280b00943067f973115697f34770eefd42b5534a7d7e439e7745b32c5fa83daf5a5292b854792d18951af236d0aa77c3aa2b564 SHA512 45e198bde82948d1d8e47a8bdb64a2792c2bfdfc0d939ffe40ded79092d7ac5f497008c00c805baa09d27eabb419cdf0787eee1caf2ac44c5e8759ecf709a317
DIST vtkDocHtml-9.0.3.tar.gz 132650096 BLAKE2B 45fc1a6942df3e79e500a552c3b3cda2099b9451191559d471e3a2e785a8c52b2c6273cfd2cc4a3f3f65582e607d9414475f58d243fde96a4f985bed479e53db SHA512 9b5fef43f3c2b92aa1fe6a9ba9458d6677874b09b167654db7f26df6feffdc34ed1a8fb4e59d64b75625063a774af77fe57f275903602a5f7daa74e1a2e71800
+DIST vtkDocHtml-9.1.0.tar.gz 152767166 BLAKE2B 9163b6b1bf55810a310ca8bc211e067827b1f9907efd2a378363d8e6296d4bf07b25371b66c00cab3576fb06f0cb63fdf2ffea044033e2c42e9087819a3736ba SHA512 036daba5eb6503b5eb3e9323a4ab3ea0f27c09d8fef411dd2ed154c24d5a37d9f19d57db07576c8af404bfdb7178e95b137a3c27bfedb3f9cb72c04f717da80a
diff --git a/sci-libs/vtk/vtk-9.1.0.ebuild b/sci-libs/vtk/vtk-9.1.0.ebuild
new file mode 100644
index 000000000000..0cc9587af0cf
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.1.0.ebuild
@@ -0,0 +1,596 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+# - replace usex by usev once we bump to EAPI 8
+
+PYTHON_COMPAT=( python3_{8..10} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda java-pkg-opt-2 python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# TODO: Like to simplifiy these. Mostly the flags related to Groups, plus
+# maybe some flags related to Kits and a few other needed flags.
+IUSE="all-modules +boost cuda debug doc examples +ffmpeg +gdal imaging java
+ mpi mysql odbc openmp postgres python qt5 +rendering tbb test +threads
+ tk video_cards_nvidia views web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering views )
+ cuda? ( video_cards_nvidia )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( rendering )
+ tk? ( rendering python )
+ web? ( python )
+"
+
+RDEPEND="
+ app-arch/lz4:=
+ app-arch/xz-utils
+ dev-db/sqlite:3
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/jsoncpp:=
+ dev-libs/libxml2:2
+ dev-libs/pugixml
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libpng:=
+ media-libs/libtheora
+ media-libs/tiff
+ <sci-libs/hdf5-1.12:=[mpi=]
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ virtual/jpeg
+ all-modules? ( sci-geosciences/liblas[gdal] )
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ mpi? (
+ media-libs/glew:=
+ sys-cluster/openmpi[cxx,romio]
+ virtual/opengl
+ )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ rendering? (
+ media-libs/freeglut
+ media-libs/glew:=
+ media-libs/libsdl2
+ sci-libs/proj:=
+ virtual/opengl
+ x11-libs/gl2ps
+ x11-libs/libXcursor
+ )
+ tbb? ( <dev-cpp/tbb-2021.4.0:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+ $(python_gen_cond_dep '
+ python? (
+ boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
+ gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
+ mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ )
+ ')
+"
+
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/eigen
+ <dev-libs/pegtl-3
+ dev-libs/utfcpp
+"
+BDEPEND="
+ virtual/pkgconfig
+ mpi? ( app-admin/chrpath )
+ test? (
+ media-libs/glew
+ virtual/opengl
+ x11-libs/libXcursor
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.0.1-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch
+ "${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+# based on default settings
+CHECKREQS_DISK_BUILD="4G"
+# we want the EAPI 8 default
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use examples || use doc; then
+ CHECKREQS_DISK_BUILD="7G"
+ fi
+
+ if use examples && use doc; then
+ CHECKREQS_DISK_BUILD="10G"
+ fi
+
+ if use cuda; then
+ # NOTE: This should actually equal to (number of build jobs)*7G,
+ # as any of the cuda compile tasks can take up 7G!
+ # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+
+ check-reqs_pkg_setup
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use examples || use doc; then
+ CHECKREQS_DISK_BUILD="7G"
+ fi
+
+ if use examples && use doc; then
+ CHECKREQS_DISK_BUILD="10G"
+ fi
+
+ if use cuda; then
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+
+ check-reqs_pkg_setup
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ # If we have system libraries available use these and delete
+ # the respecting files in ${S}/ThirdParty to save some space.
+ # Note: The following libraries are marked as internal by kitware
+ # and can currently not unbundled:
+ # diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
+ # vtkm, xdmf{2,3}, zfp
+ # Note: libharu is omitted: vtk needs an updated version (2.4.0)
+ # Note: fmt is ommited, >=libfmt-8.1.0 needed
+ # Note: cgns is ommited, >=cgnslib-4.1 needed
+ # Note: no valid mpi4py target found with system library
+ # TODO: cgns (4.1), cli11 (::guru), exprtk, ioss, libfmt (8.1.0)
+ local -a DROPS=( doubleconversion eigen expat freetype hdf5 jpeg jsoncpp
+ libxml2 lz4 lzma netcdf ogg pegtl png pugixml sqlite theora tiff utf8
+ zlib )
+ use rendering && DROPS+=( gl2ps glew libproj )
+
+ local x
+ for x in ${DROPS[@]}; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ unset x
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+src_configure() {
+# TODO: check these and consider to use them
+# VTK_BUILD_SCALED_SOA_ARRAYS
+# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
+
+ local mycmakeargs=(
+ -DVTK_ANDROID_BUILD=OFF
+ -DVTK_IOS_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ -DVTK_ENABLE_KITS=ON
+ # defaults to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DONT_WANT")
+ -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "YES" "DONT_WANT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DONT_WANT")
+ -DVTK_GROUP_ENABLE_StandAlone="YES"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DONT_WANT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DONT_WANT")
+
+ -DVTK_INSTALL_SDK=ON
+
+ -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+
+ # TODO: update one cgnslib-4.1.1 is packaged
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cgns=OFF
+ # not packaged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ # TODO: update once libfmt-8.1.0 has been packaged
+ -DVTK_MODULE_USE_EXTERNAL_VTK_fmt=OFF
+ # not pacakged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
+ -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
+ -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=ON
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+ # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
+ # option. Check whether we can download them clean and enable
+ # them.
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_fides="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOFides="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOpenVDB="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="DONT_WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ fi
+
+ # TODO: consider removing USE flags and enable by default
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ # TODO: checks this on updates of nvidia-cuda-toolkit and update
+ # the list of available arches if necessary, i.e. add new arches
+ # once they are released at the end of the list before all.
+ # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+ native)
+ ewarn "If auto detection fails for you, please try and export the"
+ ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+ ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+ cuda_arch=native
+ ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use debug; then
+ mycmakeargs+=(
+ -DVTK_DEBUG_LEAKS=ON
+ -DVTK_DEBUG_MODULE=ON
+ -DVTK_DEBUG_MODLE_ALL=ON
+ -DVTK_ENABLE_SANITIZER=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_WARN_ON_DISPATCH_FAILURE=ON
+ )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
+ fi
+ fi
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ # TODO: consider removing the USE flag and enable by default
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ fi
+
+ # TODO: consider removing the USE flag and enable by default
+ if use gdal; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT" )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="YES"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTKm_ENABLE_MPI=ON
+ )
+ if use python; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ fi
+ fi
+
+ if use mysql; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use odbc; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ fi
+
+ if use postgres; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_WRAPPING=ON
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering || use test || use web || use all-modules; then
+ # needs patched version
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF )
+ fi
+
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT" )
+ fi
+
+ if use test; then
+ ewarn "Testing requires VTK_FORBID_DOWNLOADS=OFF by upstream."
+ ewarn "Care has been taken to pre-download all required files."
+ ewarn "In case you find missing files, please inform me."
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ -DVTK_FORBID_DOWNLOADS=OFF
+
+ -DVTK_MODULE_ENABLE_VTK_octree="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=OFF
+ -DVTK_FORBID_DOWNLOADS=ON
+ )
+ fi
+
+ # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
+ # sequential, stdthread, openmp and tbb. AFAICS all of them can be
+ # enabled at the same time. Sequential and Stdthread are enabled by
+ # default. The default selected type for the build is sequential.
+ # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
+ # this is dependent on the actual scenario where threading is used.
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ elif use openmp; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
+ elif use threads; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake_src_configure
+}
+
+# FIXME: avoid nonfatal?
+# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
+src_test() {
+# nonfatal virtx cmake_src_test
+ virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ # with MPI runpath's are not deleted properly
+ if use mpi; then
+ chrpath -d "${ED}"/usr/$(get_libdir)/*.so.${PV} || die
+ fi
+
+ use python && python_optimize
+
+ # environment
+# cat >> "${T}"/40${PN} <<- EOF || die
+# VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+# VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
+# VTKHOME=${EPREFIX}/usr
+# EOF
+# doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+
+ # Temporary!
+ # Avoid collision with paraview.
+ # bug #793221
+ rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-01-28 7:53 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-01-28 7:53 UTC (permalink / raw
To: gentoo-commits
commit: 1f693e0323f6bf0be380c1dfbedab4fe22561ac7
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Wed Jan 26 17:03:21 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 28 07:53:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f693e03
sci-libs/vtk: fix build with USE=offscreen
The package can be built with either USE=offscreen, or with USE=X
enabled, but not with both simultaneously.
Closes: https://bugs.gentoo.org/830774
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/23970
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-9.0.3-r3.ebuild => vtk-9.0.3-r4.ebuild} | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r3.ebuild b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.0.3-r3.ebuild
rename to sci-libs/vtk/vtk-9.0.3-r4.ebuild
index db7df9ecb55d..578cf8ade8fb 100644
--- a/sci-libs/vtk/vtk-9.0.3-r3.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -47,6 +47,7 @@ REQUIRED_USE="
qt5? ( X rendering )
tk? ( X rendering python )
web? ( python )
+ ^^ ( X offscreen )
"
RDEPEND="
@@ -358,9 +359,9 @@ src_configure() {
if use offscreen; then
mycmakeargs+=(
- -DVTK_OPENGL_HAS_OSMESA=ON
-DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
-DVTK_DEFAULT_RENDER_WINDOW_HEADLESS=ON
+ -DVTK_OPENGL_HAS_OSMESA=ON
)
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-03-06 0:00 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-03-06 0:00 UTC (permalink / raw
To: gentoo-commits
commit: 643ee5d9612eb37bf71c05f0d08da9834acf50fa
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sat Mar 5 01:46:01 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 5 23:56:45 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643ee5d9
sci-libs/vtk: select desired Qt version
If both, Qt5 and Qt6 are installed and found, Qt6 is preferred. The
ebuild, however, does not build against Qt6. To ensure Qt5 is selected
we pass VTK_QT_VERSION to cmake.
Closes: https://bugs.gentoo.org/834595
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/24405
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-9.1.0.ebuild | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.1.0.ebuild b/sci-libs/vtk/vtk-9.1.0.ebuild
index ee1a824bac00..7be370c13c6a 100644
--- a/sci-libs/vtk/vtk-9.1.0.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0.ebuild
@@ -457,7 +457,10 @@ src_configure() {
fi
if use qt5; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DVTK_QT_VERSION="5"
+ )
if use mysql || use postgres; then
mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
fi
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-04-06 17:30 Piotr Karbowski
0 siblings, 0 replies; 92+ messages in thread
From: Piotr Karbowski @ 2022-04-06 17:30 UTC (permalink / raw
To: gentoo-commits
commit: 59445f0f4102464a72da7947dbdc1b0a314114ba
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 6 17:28:44 2022 +0000
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
CommitDate: Wed Apr 6 17:29:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59445f0f
sci-libs/vtk: 9.0.3-r4: Python 3.10 support added.
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r4.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r4.ebuild b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
index 0e926465c515..0848a5f8b4e5 100644
--- a/sci-libs/vtk/vtk-9.0.3-r4.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
@@ -7,7 +7,7 @@ EAPI=7
# - add USE flag for remote modules? Those modules can be downloaded
# properly before building.
-PYTHON_COMPAT=( python3_{8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-05-15 17:11 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2022-05-15 17:11 UTC (permalink / raw
To: gentoo-commits
commit: 497ca726b40aecc0d3187bc69044b40b2f22ede8
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun May 15 17:08:44 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun May 15 17:11:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=497ca726
sci-libs/vtk: correct dep on gdal
gdal-3.5.0 now uses python-single-r1, we have
to correct the dependency here to avoid a very
confusing blocker
Correct the dep on jpeg while we are at it, following
the deprecation of the virtual
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/{vtk-9.1.0.ebuild => vtk-9.1.0-r1.ebuild} | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.1.0.ebuild b/sci-libs/vtk/vtk-9.1.0-r1.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.1.0.ebuild
rename to sci-libs/vtk/vtk-9.1.0-r1.ebuild
index 9a6ebbdaac51..a6ac2ea19bcb 100644
--- a/sci-libs/vtk/vtk-9.1.0.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r1.ebuild
@@ -74,7 +74,7 @@ RDEPEND="
<sci-libs/hdf5-1.12:=[mpi=]
sci-libs/netcdf:=[mpi=]
sys-libs/zlib
- virtual/jpeg
+ media-libs/libjpeg-turbo
all-modules? ( sci-geosciences/liblas[gdal] )
boost? ( dev-libs/boost:=[mpi?] )
cuda? ( dev-util/nvidia-cuda-toolkit:= )
@@ -114,13 +114,13 @@ RDEPEND="
x11-libs/libXext
)
web? ( ${WEBAPP_DEPEND} )
- $(python_gen_cond_dep '
- python? (
+ python? (
+ $(python_gen_cond_dep '
boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
- gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- )
- ')
+ ')
+ gdal? ( sci-libs/gdal:=[python?,${PYTHON_SINGLE_USEDEP}] )
+ )
"
DEPEND="
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-05-18 16:58 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2022-05-18 16:58 UTC (permalink / raw
To: gentoo-commits
commit: 7fa499da25bf08098ba57a7421129c9288443de4
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed May 18 16:56:56 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed May 18 16:58:47 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa499da
sci-libs/vtk: unrestrict hdf5
The issue was never in vtk, it was in netcdf which has been
fixed. Compiles without problems now.
Bug: https://bugs.gentoo.org/833943
Closes: https://bugs.gentoo.org/834087
Closes: https://bugs.gentoo.org/809209
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/{vtk-9.1.0-r1.ebuild => vtk-9.1.0-r2.ebuild} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.1.0-r1.ebuild b/sci-libs/vtk/vtk-9.1.0-r2.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.1.0-r1.ebuild
rename to sci-libs/vtk/vtk-9.1.0-r2.ebuild
index a6ac2ea19bcb..13d7663c5bbf 100644
--- a/sci-libs/vtk/vtk-9.1.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r2.ebuild
@@ -71,7 +71,7 @@ RDEPEND="
media-libs/libpng:=
media-libs/libtheora
media-libs/tiff
- <sci-libs/hdf5-1.12:=[mpi=]
+ sci-libs/hdf5:=[mpi=]
sci-libs/netcdf:=[mpi=]
sys-libs/zlib
media-libs/libjpeg-turbo
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-05-19 12:12 Joonas Niilola
0 siblings, 0 replies; 92+ messages in thread
From: Joonas Niilola @ 2022-05-19 12:12 UTC (permalink / raw
To: gentoo-commits
commit: cc0c6ff14ea959aaf5f2b972b8086bae7a337334
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu May 19 12:10:52 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 19 12:10:52 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc0c6ff1
sci-libs/vtk: Stabilize 9.0.3-r4 amd64, #829841
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r4.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r4.ebuild b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
index 0848a5f8b4e5..df05ef18cb21 100644
--- a/sci-libs/vtk/vtk-9.0.3-r4.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
@@ -31,7 +31,7 @@ S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# Note: external xdmf2 has no recognized target
IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
+json kits mpi mysql odbc offscreen openmp pegtl postgres python
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-06-26 7:11 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-06-26 7:11 UTC (permalink / raw
To: gentoo-commits
commit: 98306e9a97634769d6a038f8e9cf32db29f37882
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 26 07:11:08 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 26 07:11:11 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98306e9a
sci-libs/vtk: add 9.0.3-r5 w/ fixed gdal dep
Idea is to stable this w/ new GDAL.
See: 7fa499da25bf08098ba57a7421129c9288443de4
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r5.ebuild | 551 +++++++++++++++++++++++++++++++++++++++
1 file changed, 551 insertions(+)
diff --git a/sci-libs/vtk/vtk-9.0.3-r5.ebuild b/sci-libs/vtk/vtk-9.0.3-r5.ebuild
new file mode 100644
index 000000000000..0670773dab1b
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.0.3-r5.ebuild
@@ -0,0 +1,551 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+
+PYTHON_COMPAT=( python3_{8..10} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda flag-o-matic java-pkg-opt-2 python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? ( https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# Note: external xdmf2 has no recognized target
+IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
+ +json kits mpi mysql odbc offscreen openmp pegtl postgres python
+ qt5 +rendering tbb theora tk video_cards_nvidia views web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering theora views )
+ cuda? ( X video_cards_nvidia )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( X rendering )
+ tk? ( X rendering python )
+ web? ( python )
+ ^^ ( X offscreen )
+"
+
+RDEPEND="
+ app-arch/lz4
+ app-arch/xz-utils
+ dev-db/sqlite
+ dev-cpp/eigen[cuda?,openmp?]
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/libxml2:2
+ dev-libs/pugixml
+ media-libs/freetype
+ media-libs/libogg
+ media-libs/libpng
+ media-libs/libtheora
+ media-libs/tiff
+ <sci-libs/hdf5-1.12:=[mpi=]
+ sci-libs/kissfft[openmp?]
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ media-libs/libjpeg-turbo
+ all-modules? ( sci-geosciences/liblas[gdal] )
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ json? ( dev-libs/jsoncpp:= )
+ mpi? (
+ sci-libs/h5part
+ sys-cluster/openmpi[cxx,romio]
+ )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ offscreen? ( media-libs/mesa[osmesa] )
+ postgres? ( dev-db/postgresql:= )
+ python? ( ${PYTHON_DEPS} )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ rendering? (
+ media-libs/freeglut
+ media-libs/glew:=
+ <sci-libs/proj-8:=
+ virtual/opengl
+ x11-libs/gl2ps
+ )
+ tbb? ( <dev-cpp/tbb-2021:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+ python? (
+ $(python_gen_cond_dep '
+ boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
+ mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
+ ')
+ gdal? ( sci-libs/gdal:=[python?,${PYTHON_SINGLE_USEDEP}] )
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/jsoncpp
+ dev-libs/utfcpp
+ pegtl? ( <dev-libs/pegtl-3 )
+"
+BDEPEND="
+ mpi? ( app-admin/chrpath )
+ openmp? (
+ || (
+ sys-devel/gcc[openmp(+)]
+ sys-devel/clang-runtime[openmp(+)]
+ )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.0.1-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch
+ "${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch
+ "${FILESDIR}"/${PN}-9.0.1-limits-include-gcc11.patch
+ "${FILESDIR}"/${P}-IO-FFMPEG-support-FFmpeg-5.0-API-changes.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+CHECKREQS_DISK_BUILD="3G"
+
+pkg_pretend() {
+ if use examples; then
+ CHECKREQS_DISK_BUILD="4G"
+ fi
+ if use cuda; then
+ # NOTE: This should actually equal to (number of build jobs)*7G,
+ # as any of the cuda compile tasks can take up 7G!
+ # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+ check-reqs_pkg_setup
+}
+
+pkg_setup() {
+ if use examples; then
+ CHECKREQS_DISK_BUILD="4G"
+ fi
+ if use cuda; then
+ CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="14G"
+ fi
+ check-reqs_pkg_setup
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+src_prepare() {
+ # If we have system libraries available use these and delete
+ # the respecting files in ${S}/ThirdParty to save some space.
+ # Note: libharu is omitted: vtk needs an updated version (2.4.0)
+ # Note: no valid xdmf2 targets are found for system xdmf2
+ # Note: no valid target found for h5part and mpi4py
+ # TODO: diy2 exodusII h5part libharu verdict vpic vtkm xdmf2 xdmf3 zfp
+ local -a DROPS=( doubleconversion eigen expat freetype gl2ps glew
+ hdf5 jpeg jsoncpp libproj libxml2 lz4 lzma netcdf ogg png pugixml
+ sqlite theora tiff utf8 zlib )
+ use pegtl && DROPS+=( pegtl )
+
+ local x
+ for x in ${DROPS[@]}; do
+ ebegin "Dropping bundled ${x}"
+ rm -r ThirdParty/${x}/vtk${x} || die
+ eend $?
+ done
+ unset x
+
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+# TODO: defaults for some variables to consider as USE flags
+# -DVTK_ANDROID_BUILD=OFF
+# -DVTK_BUILD_COMPILE_TOOLS_ONLY=OFF
+# -DVTK_ENABLE_LOGGING=ON
+# -DVTK_ENABLE_REMOTE_MODULES=ON
+# -DVTK_INSTALL_SDK=ON
+# -DVTK_IOS_BUILD=OFF
+# -DVTK_LEGACY_REMOVE=OFF
+# -DVTK_LEGACY_SILENT=OFF
+# -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ -DVTK_ENABLE_KITS=$(usex kits ON OFF)
+ # default to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ -DVTK_DATA_STORE="${S}/.ExternalData"
+
+ # Use upstream default, where USE flags are not given.
+ # Passing "DONT_WANT" will restrict building of modules from
+ # those groups and will severly limit the built libraries.
+ # Exceptions are MPI, where the default is "DONT_WANT" and
+ # StandAlone using "WANT".
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="WANT"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "WANT" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "WANT" "DEFAULT")
+
+ -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKm="WANT"
+
+ -DVTK_PYTHON_VERSION="3"
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=$(usex X ON OFF)
+
+ -DVTK_VERSIONED_INSTALL=ON
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+ native)
+ ewarn "If auto detection fails for you, please try and export the"
+ ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+ ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+ cuda_arch=native
+ ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ fi
+
+ if use gdal; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT" )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ )
+ fi
+
+ if use json; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT" )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTKm_ENABLE_MPI=ON
+ )
+ if use python; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ fi
+ fi
+
+ if use mysql; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use odbc; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ fi
+
+ if use offscreen; then
+ mycmakeargs+=(
+ -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
+ -DVTK_DEFAULT_RENDER_WINDOW_HEADLESS=ON
+ -DVTK_OPENGL_HAS_OSMESA=ON
+ )
+ fi
+
+ if use openmp; then
+ if use tbb; then
+ einfo "NOTE: You have specified both openmp and tbb USE flags."
+ einfo "NOTE: Tbb will take precedence. Disabling OpenMP"
+ # Sequential is default SMP implementation, nothing special to do
+ else
+ mycmakeargs+=(
+ -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP"
+ -DVTKm_ENABLE_OPENMP=ON
+ )
+ fi
+ fi
+
+ if use pegtl; then
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON )
+ else
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF )
+ fi
+
+ if use postgres; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
+ )
+ fi
+
+ if use python; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_WRAPPING=ON
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ fi
+
+ if use qt5; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering || use web || use all-modules; then
+ # needs patched version
+ mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF )
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON
+ -DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON
+ -DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON
+ )
+ fi
+
+ if use tbb; then
+ mycmakeargs+=(
+ -DVTK_SMP_IMPLEMENTATION_TYPE="TBB"
+ -DVTKm_ENABLE_TBB=ON
+ )
+ fi
+
+ if use test; then
+ ewarn "Testing requires VTK_FORBID_DOWNLOADS=OFF by upstream."
+ ewarn "Care has been taken to pre-download all required files."
+ ewarn "In case you find missing files, please inform me."
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+ -DVTK_FORBID_DOWNLOADS=OFF
+ )
+ else
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=OFF
+ -DVTK_FORBID_DOWNLOADS=ON
+ )
+ fi
+
+ if use theora; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT" )
+ fi
+
+ if use all-modules; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_MomentInvariants="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_PoissonReconstruction="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_Powercrust="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_SignedTensor="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer="DONT_WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkDICOM="DONT_WANT"
+ -DVTK_MODULE_USE_EXTERNAL_vtkkissfft=ON
+ )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ if use mpi; then
+ export CC=mpicc
+ export CXX=mpicxx
+ export FC=mpif90
+ export F90=mpif90
+ export F77=mpif77
+ fi
+
+ cmake_src_configure
+}
+
+src_test() {
+ nonfatal virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ # with MPI runpath's are not deleted properly
+ if use mpi; then
+ chrpath -d "${ED}"/usr/$(get_libdir)/*.so.${PV} || die
+ fi
+
+ use python && python_optimize
+
+ # environment
+ cat >> "${T}"/40${PN} <<- EOF || die
+ VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
+ VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
+ VTKHOME=${EPREFIX}/usr
+ EOF
+ doenvd "${T}"/40${PN}
+
+ use web && webapp_src_install
+
+ # Temporary!
+ # Avoid collision with paraview.
+ # bug #793221
+ rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-06-26 8:49 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-06-26 8:49 UTC (permalink / raw
To: gentoo-commits
commit: fcc6563da5d29216ff2f7cc684f958f4374348c6
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 26 08:49:33 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 26 08:49:33 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcc6563d
sci-libs/vtk: Stabilize 9.0.3-r5 amd64, #854369
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r5.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r5.ebuild b/sci-libs/vtk/vtk-9.0.3-r5.ebuild
index 0670773dab1b..efc32fbb2b46 100644
--- a/sci-libs/vtk/vtk-9.0.3-r5.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r5.ebuild
@@ -31,7 +31,7 @@ S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# Note: external xdmf2 has no recognized target
IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
+json kits mpi mysql odbc offscreen openmp pegtl postgres python
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-08-23 12:04 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2022-08-23 12:04 UTC (permalink / raw
To: gentoo-commits
commit: b4f8c5a4eb87c8a6ad1dd0edb8d6c5be24d632af
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Aug 16 07:49:14 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Aug 23 12:04:25 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f8c5a4
sci-libs/vtk: drop 9.0.3-r4
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/26879
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r4.ebuild | 551 ---------------------------------------
1 file changed, 551 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r4.ebuild b/sci-libs/vtk/vtk-9.0.3-r4.ebuild
deleted file mode 100644
index df05ef18cb21..000000000000
--- a/sci-libs/vtk/vtk-9.0.3-r4.ebuild
+++ /dev/null
@@ -1,551 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-# TODO:
-# - add USE flag for remote modules? Those modules can be downloaded
-# properly before building.
-
-PYTHON_COMPAT=( python3_{8..10} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit check-reqs cmake cuda flag-o-matic java-pkg-opt-2 python-single-r1 toolchain-funcs virtualx webapp
-
-# Short package version
-MY_PV="$(ver_cut 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
- examples? ( https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz )
- test? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- )
-"
-S="${WORKDIR}/VTK-${PV}"
-
-LICENSE="BSD LGPL-2"
-SLOT="0/${MY_PV}"
-KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-# Note: external xdmf2 has no recognized target
-IUSE="+X all-modules boost cuda doc examples ffmpeg gdal imaging java
- +json kits mpi mysql odbc offscreen openmp pegtl postgres python
- qt5 +rendering tbb theora tk video_cards_nvidia views web"
-
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering theora views )
- cuda? ( X video_cards_nvidia )
- java? ( rendering )
- python? ( ${PYTHON_REQUIRED_USE} )
- qt5? ( X rendering )
- tk? ( X rendering python )
- web? ( python )
- ^^ ( X offscreen )
-"
-
-RDEPEND="
- app-arch/lz4
- app-arch/xz-utils
- dev-db/sqlite
- dev-cpp/eigen[cuda?,openmp?]
- dev-libs/double-conversion:=
- dev-libs/expat
- dev-libs/icu:=
- dev-libs/libxml2:2
- dev-libs/pugixml
- media-libs/freetype
- media-libs/libogg
- media-libs/libpng
- media-libs/libtheora
- media-libs/tiff
- <sci-libs/hdf5-1.12:=[mpi=]
- sci-libs/kissfft[openmp?]
- sci-libs/netcdf:=[mpi=]
- sys-libs/zlib
- virtual/jpeg
- all-modules? ( sci-geosciences/liblas[gdal] )
- boost? ( dev-libs/boost:=[mpi?] )
- cuda? ( dev-util/nvidia-cuda-toolkit:= )
- ffmpeg? ( media-video/ffmpeg:= )
- gdal? ( sci-libs/gdal:= )
- java? ( >=virtual/jdk-1.8:* )
- json? ( dev-libs/jsoncpp:= )
- mpi? (
- sci-libs/h5part
- sys-cluster/openmpi[cxx,romio]
- )
- mysql? ( dev-db/mariadb-connector-c )
- odbc? ( dev-db/unixODBC )
- offscreen? ( media-libs/mesa[osmesa] )
- postgres? ( dev-db/postgresql:= )
- python? ( ${PYTHON_DEPS} )
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtsql:5
- dev-qt/qtwidgets:5
- )
- rendering? (
- media-libs/freeglut
- media-libs/glew:=
- <sci-libs/proj-8:=
- virtual/opengl
- x11-libs/gl2ps
- )
- tbb? ( <dev-cpp/tbb-2021:= )
- tk? ( dev-lang/tk:= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- views? (
- x11-libs/libICE
- x11-libs/libXext
- )
- web? ( ${WEBAPP_DEPEND} )
- $(python_gen_cond_dep '
- python? (
- boost? ( dev-libs/boost:=[mpi?,python?,${PYTHON_USEDEP}] )
- gdal? ( sci-libs/gdal:=[python?,${PYTHON_USEDEP}] )
- mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
- )
- ')
-"
-DEPEND="
- ${RDEPEND}
- dev-libs/jsoncpp
- dev-libs/utfcpp
- pegtl? ( <dev-libs/pegtl-3 )
-"
-BDEPEND="
- mpi? ( app-admin/chrpath )
- openmp? (
- || (
- sys-devel/gcc[openmp(+)]
- sys-devel/clang-runtime[openmp(+)]
- )
- )
-"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-9.0.1-0001-fix-kepler-compute_arch-if-CUDA-toolkit-11-is-used.patch
- "${FILESDIR}"/${PN}-8.2.0-freetype-2.10.3-provide-FT_CALLBACK_DEF.patch
- "${FILESDIR}"/${PN}-9.0.1-limits-include-gcc11.patch
- "${FILESDIR}"/${P}-IO-FFMPEG-support-FFmpeg-5.0-API-changes.patch
-)
-
-DOCS=( CONTRIBUTING.md README.md )
-
-CHECKREQS_DISK_BUILD="3G"
-
-pkg_pretend() {
- if use examples; then
- CHECKREQS_DISK_BUILD="4G"
- fi
- if use cuda; then
- # NOTE: This should actually equal to (number of build jobs)*7G,
- # as any of the cuda compile tasks can take up 7G!
- # 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
- CHECKREQS_MEMORY="7G"
- CHECKREQS_DISK_BUILD="14G"
- fi
- check-reqs_pkg_setup
-}
-
-pkg_setup() {
- if use examples; then
- CHECKREQS_DISK_BUILD="4G"
- fi
- if use cuda; then
- CHECKREQS_MEMORY="7G"
- CHECKREQS_DISK_BUILD="14G"
- fi
- check-reqs_pkg_setup
-
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-src_prepare() {
- # If we have system libraries available use these and delete
- # the respecting files in ${S}/ThirdParty to save some space.
- # Note: libharu is omitted: vtk needs an updated version (2.4.0)
- # Note: no valid xdmf2 targets are found for system xdmf2
- # Note: no valid target found for h5part and mpi4py
- # TODO: diy2 exodusII h5part libharu verdict vpic vtkm xdmf2 xdmf3 zfp
- local -a DROPS=( doubleconversion eigen expat freetype gl2ps glew
- hdf5 jpeg jsoncpp libproj libxml2 lz4 lzma netcdf ogg png pugixml
- sqlite theora tiff utf8 zlib )
- use pegtl && DROPS+=( pegtl )
-
- local x
- for x in ${DROPS[@]}; do
- ebegin "Dropping bundled ${x}"
- rm -r ThirdParty/${x}/vtk${x} || die
- eend $?
- done
- unset x
-
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-
- cmake_src_prepare
-
- if use cuda; then
- cuda_add_sandbox -w
- cuda_src_prepare
- fi
-
- if use test; then
- ebegin "Copying data files to ${BUILD_DIR}"
- mkdir -p "${BUILD_DIR}/ExternalData" || die
- pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
- ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
- ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
- popd >/dev/null || die
- eend "$?"
- fi
-}
-
-src_configure() {
- local mycmakeargs=(
-# TODO: defaults for some variables to consider as USE flags
-# -DVTK_ANDROID_BUILD=OFF
-# -DVTK_BUILD_COMPILE_TOOLS_ONLY=OFF
-# -DVTK_ENABLE_LOGGING=ON
-# -DVTK_ENABLE_REMOTE_MODULES=ON
-# -DVTK_INSTALL_SDK=ON
-# -DVTK_IOS_BUILD=OFF
-# -DVTK_LEGACY_REMOVE=OFF
-# -DVTK_LEGACY_SILENT=OFF
-# -DVTK_WHEEL_BUILD=OFF
-
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
- # we use the pre-built documentation and install these with USE=doc
- -DVTK_BUILD_DOCUMENTATION=OFF
- -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
-
- -DVTK_ENABLE_KITS=$(usex kits ON OFF)
- # default to ON: USE flag for this?
- -DVTK_ENABLE_REMOTE_MODULES=OFF
-
- -DVTK_DATA_STORE="${S}/.ExternalData"
-
- # Use upstream default, where USE flags are not given.
- # Passing "DONT_WANT" will restrict building of modules from
- # those groups and will severly limit the built libraries.
- # Exceptions are MPI, where the default is "DONT_WANT" and
- # StandAlone using "WANT".
- -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_StandAlone="WANT"
- -DVTK_GROUP_ENABLE_Views=$(usex views "WANT" "DEFAULT")
- -DVTK_GROUP_ENABLE_Web=$(usex web "WANT" "DEFAULT")
-
- -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKm="WANT"
-
- -DVTK_PYTHON_VERSION="3"
- -DVTK_RELOCATABLE_INSTALL=ON
-
- -DVTK_USE_CUDA=$(usex cuda ON OFF)
- # use system libraries where possible
- -DVTK_USE_EXTERNAL=ON
- -DVTK_USE_MPI=$(usex mpi ON OFF)
- -DVTK_USE_TK=$(usex tk ON OFF)
- -DVTK_USE_X=$(usex X ON OFF)
-
- -DVTK_VERSIONED_INSTALL=ON
-
- -DVTK_WRAP_JAVA=$(usex java ON OFF)
- -DVTK_WRAP_PYTHON=$(usex python ON OFF)
- )
-
- if use examples || use test; then
- mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
- fi
-
- if ! use java && ! use python; then
- # defaults to ON
- mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
- fi
-
- if use boost; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
- -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
- )
- fi
-
- if use cuda; then
- local cuda_arch=
- case ${VTK_CUDA_ARCH:-native} in
- # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
- # no longer supports it
- kepler|maxwell|pascal|volta|turing|ampere|all)
- cuda_arch=${VTK_CUDA_ARCH}
- ;;
- native)
- ewarn "If auto detection fails for you, please try and export the"
- ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
- ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
- cuda_arch=native
- ;;
- *)
- eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
- eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
- die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
- ;;
- esac
- ewarn "Using CUDA architecture '${cuda_arch}'"
-
- mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
- fi
-
- if use ffmpeg; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
- fi
-
- if use gdal; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT" )
- fi
-
- if use java; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_JARDIR="share/${PN}"
- -DVTK_ENABLE_WRAPPING=ON
- )
- fi
-
- if use json; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT" )
- fi
-
- if use mpi; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_MPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
- -DVTKm_ENABLE_MPI=ON
- )
- if use python; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
- fi
- fi
-
- if use mysql; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
- )
- fi
-
- if use odbc; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
- fi
-
- if use offscreen; then
- mycmakeargs+=(
- -DVTK_DEFAULT_RENDER_WINDOW_OFFSCREEN=ON
- -DVTK_DEFAULT_RENDER_WINDOW_HEADLESS=ON
- -DVTK_OPENGL_HAS_OSMESA=ON
- )
- fi
-
- if use openmp; then
- if use tbb; then
- einfo "NOTE: You have specified both openmp and tbb USE flags."
- einfo "NOTE: Tbb will take precedence. Disabling OpenMP"
- # Sequential is default SMP implementation, nothing special to do
- else
- mycmakeargs+=(
- -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP"
- -DVTKm_ENABLE_OPENMP=ON
- )
- fi
- fi
-
- if use pegtl; then
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=ON )
- else
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_pegtl=OFF )
- fi
-
- if use postgres; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT"
- )
- fi
-
- if use python; then
- mycmakeargs+=(
- -DVTK_ENABLE_WRAPPING=ON
- -DPython3_EXECUTABLE="${PYTHON}"
- -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
- )
- fi
-
- if use qt5; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
- if use mysql || use postgres; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
- fi
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
- fi
- if use views; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
- fi
- fi
-
- if use rendering || use web || use all-modules; then
- # needs patched version
- mycmakeargs+=( -DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF )
- fi
-
- if use rendering; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
- -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON
- -DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON
- -DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON
- )
- fi
-
- if use tbb; then
- mycmakeargs+=(
- -DVTK_SMP_IMPLEMENTATION_TYPE="TBB"
- -DVTKm_ENABLE_TBB=ON
- )
- fi
-
- if use test; then
- ewarn "Testing requires VTK_FORBID_DOWNLOADS=OFF by upstream."
- ewarn "Care has been taken to pre-download all required files."
- ewarn "In case you find missing files, please inform me."
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=ON
- -DVTK_DATA_EXCLUDE_FROM_ALL=ON
- -DVTK_FORBID_DOWNLOADS=OFF
- )
- else
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=OFF
- -DVTK_FORBID_DOWNLOADS=ON
- )
- fi
-
- if use theora; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT" )
- fi
-
- if use all-modules; then
- mycmakeargs+=(
- -DVTK_ENABLE_OSPRAY=OFF
- -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_IOADIOS2="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_IOPDAL="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_MomentInvariants="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_PoissonReconstruction="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_Powercrust="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_SignedTensor="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_SplineDrivenImageSlicer="DONT_WANT"
- -DVTK_MODULE_ENABLE_VTK_vtkDICOM="DONT_WANT"
- -DVTK_MODULE_USE_EXTERNAL_vtkkissfft=ON
- )
- fi
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- if use mpi; then
- export CC=mpicc
- export CXX=mpicxx
- export FC=mpif90
- export F90=mpif90
- export F77=mpif77
- fi
-
- cmake_src_configure
-}
-
-src_test() {
- nonfatal virtx cmake_src_test
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- # Stop web page images from being compressed
- if use doc; then
- HTML_DOCS=( "${WORKDIR}/html/." )
- fi
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
-
- einfo "Installing datafiles"
- insinto /usr/share/${PN}/data
- doins -r "${S}/.ExternalData"
- fi
-
- # with MPI runpath's are not deleted properly
- if use mpi; then
- chrpath -d "${ED}"/usr/$(get_libdir)/*.so.${PV} || die
- fi
-
- use python && python_optimize
-
- # environment
- cat >> "${T}"/40${PN} <<- EOF || die
- VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
- VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
- VTKHOME=${EPREFIX}/usr
- EOF
- doenvd "${T}"/40${PN}
-
- use web && webapp_src_install
-
- # Temporary!
- # Avoid collision with paraview.
- # bug #793221
- rm -rf "${ED}"/usr/share/vtkm-1.5/VTKm{LICENSE.txt,README.md} || die
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-
- if use examples; then
- einfo "You can get more and updated examples at"
- einfo "https://kitware.github.io/vtk-examples/site/"
- fi
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-10-04 14:58 Joonas Niilola
0 siblings, 0 replies; 92+ messages in thread
From: Joonas Niilola @ 2022-10-04 14:58 UTC (permalink / raw
To: gentoo-commits
commit: d46cf053da6ab5b3ff07979c6fee2e15dc0329e4
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Mon Apr 4 07:10:51 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Oct 4 14:56:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46cf053
sci-libs/vtk: add Qt6 support
- bump to EAPI 8
- enable support for sci-libs/cgnslib and dev-libs/libfmt
- temp. drop ~arm64 KEYWORD until cgnslib is keyworded
Bug: https://bugs.gentoo.org/864791
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/26808
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
sci-libs/vtk/metadata.xml | 1 +
.../{vtk-9.1.0-r2.ebuild => vtk-9.1.0-r3.ebuild} | 80 ++++++++++++++--------
2 files changed, 54 insertions(+), 27 deletions(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index 50a77432780d..b4654dc0d664 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -23,6 +23,7 @@
<flag name="kits">Build kits in addition to modules</flag>
<flag name="offscreen">Offscreen rendering through OSMesa</flag>
<flag name="pegtl">Use pegtl to build parsers</flag>
+ <flag name="qt6">Use Qt6 packages instead of Qt5</flag>
<flag name="rendering">Building Redering modules</flag>
<flag name="tbb">Use <pkg>dev-cpp/tbb</pkg> to handle smp support</flag>
<flag name="views">Building Views modules</flag>
diff --git a/sci-libs/vtk/vtk-9.1.0-r2.ebuild b/sci-libs/vtk/vtk-9.1.0-r3.ebuild
similarity index 91%
rename from sci-libs/vtk/vtk-9.1.0-r2.ebuild
rename to sci-libs/vtk/vtk-9.1.0-r3.ebuild
index e9034c50bbb0..7b1132e4e548 100644
--- a/sci-libs/vtk/vtk-9.1.0-r2.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r3.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
# TODO:
# - add USE flag for remote modules? Those modules can be downloaded
@@ -37,21 +37,26 @@ S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# ~arm64 #864791
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
# TODO: Like to simplifiy these. Mostly the flags related to Groups, plus
# maybe some flags related to Kits and a few other needed flags.
IUSE="all-modules +boost cuda debug doc examples +ffmpeg +gdal imaging java
- mpi mysql odbc openmp postgres python qt5 +rendering tbb test +threads
+ mpi mysql odbc openmp postgres python qt5 qt6 +rendering tbb test +threads
tk video_cards_nvidia views web"
RESTRICT="!test? ( test )"
REQUIRED_USE="
- all-modules? ( boost ffmpeg gdal imaging mysql odbc postgres qt5 rendering views )
+ all-modules? (
+ boost ffmpeg gdal imaging mysql odbc postgres rendering views
+ || ( qt5 qt6 )
+ )
cuda? ( video_cards_nvidia )
java? ( rendering )
python? ( ${PYTHON_REQUIRED_USE} )
qt5? ( rendering )
+ qt6? ( rendering )
tk? ( rendering python )
web? ( python )
"
@@ -64,13 +69,16 @@ RDEPEND="
dev-libs/expat
dev-libs/icu:=
dev-libs/jsoncpp:=
+ >=dev-libs/libfmt-8.1.1:=
dev-libs/libxml2:2
+ dev-libs/libzip:=
dev-libs/pugixml
media-libs/freetype
media-libs/libogg
media-libs/libpng:=
media-libs/libtheora
media-libs/tiff
+ >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
sci-libs/hdf5:=[mpi=]
sci-libs/netcdf:=[mpi=]
sys-libs/zlib
@@ -97,6 +105,11 @@ RDEPEND="
dev-qt/qtsql:5
dev-qt/qtwidgets:5
)
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,sql,widgets]
+ dev-qt/qtdeclarative:6[opengl]
+ dev-qt/qtshadertools:6
+ )
rendering? (
media-libs/freeglut
media-libs/glew:=
@@ -152,8 +165,6 @@ DOCS=( CONTRIBUTING.md README.md )
# based on default settings
CHECKREQS_DISK_BUILD="4G"
-# we want the EAPI 8 default
-CMAKE_BUILD_TYPE=RelWithDebInfo
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
@@ -180,6 +191,10 @@ pkg_pretend() {
CHECKREQS_DISK_BUILD="14G"
fi
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
check-reqs_pkg_setup
}
@@ -205,6 +220,10 @@ pkg_setup() {
CHECKREQS_DISK_BUILD="14G"
fi
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
check-reqs_pkg_setup
use java && java-pkg-opt-2_pkg_setup
@@ -220,11 +239,9 @@ src_prepare() {
# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
# vtkm, xdmf{2,3}, zfp
# Note: libharu is omitted: vtk needs an updated version (2.4.0)
- # Note: fmt is ommited, >=libfmt-8.1.0 needed
- # Note: cgns is ommited, >=cgnslib-4.1 needed
# Note: no valid mpi4py target found with system library
- # TODO: cgns (4.1), cli11 (::guru), exprtk, ioss, libfmt (8.1.0)
- local -a DROPS=( doubleconversion eigen expat freetype hdf5 jpeg jsoncpp
+ # TODO: cli11 (::guru), exprtk, ioss
+ local -a DROPS=( cgns doubleconversion eigen expat fmt freetype hdf5 jpeg jsoncpp
libxml2 lz4 lzma netcdf ogg pegtl png pugixml sqlite theora tiff utf8
zlib )
use rendering && DROPS+=( gl2ps glew libproj )
@@ -281,7 +298,6 @@ src_configure() {
-DVTK_ENABLE_REMOTE_MODULES=OFF
-DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DONT_WANT")
- -DVTK_GROUP_ENABLE_Qt=$(usex qt5 "YES" "DONT_WANT")
-DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DONT_WANT")
-DVTK_GROUP_ENABLE_StandAlone="YES"
-DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DONT_WANT")
@@ -289,17 +305,13 @@ src_configure() {
-DVTK_INSTALL_SDK=ON
- -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
-DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
-DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_fmt="YES"
+ -DVTK_MODULE_ENABLE_VTK_vtkm="WANT"
- # TODO: update one cgnslib-4.1.1 is packaged
- -DVTK_MODULE_USE_EXTERNAL_VTK_cgns=OFF
# not packaged in Gentoo
-DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
- # TODO: update once libfmt-8.1.0 has been packaged
- -DVTK_MODULE_USE_EXTERNAL_VTK_fmt=OFF
- # not pacakged in Gentoo
-DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
-DVTK_RELOCATABLE_INSTALL=ON
@@ -459,11 +471,33 @@ src_configure() {
)
fi
- if use qt5; then
+ if use qt5 && use qt6; then
+ # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DCMAKE_INSTALL_QMLDIR="/usr/$(get_libdir)/qt5/qml"
-DVTK_QT_VERSION="5"
)
+ else
+ if use qt5; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ elif use qt6; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="/usr/$(get_libdir)/qt6/qml"
+ -DVTK_QT_VERSION="6"
+ )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="DONT_WANT" )
+ fi
+ fi
+
+ if use qt5 || use qt6; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_Qt:STRING="YES"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ )
if use mysql || use postgres; then
mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
fi
@@ -572,14 +606,6 @@ src_install() {
use python && python_optimize
- # environment
-# cat >> "${T}"/40${PN} <<- EOF || die
-# VTK_DATA_ROOT=${EPREFIX}/usr/share/${PN}/data
-# VTK_DIR=${EPREFIX}/usr/$(get_libdir)/${PN}
-# VTKHOME=${EPREFIX}/usr
-# EOF
-# doenvd "${T}"/40${PN}
-
use web && webapp_src_install
# Temporary!
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-10-12 23:09 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-10-12 23:09 UTC (permalink / raw
To: gentoo-commits
commit: 6b7393da42ee0482c5886b988257c9ceacd7ec9f
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Oct 4 20:57:04 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 23:06:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b7393da
sci-libs/vtk: fix build on musl
- Add logging USE flag to be able to disable it for musl
- Re-keyword temporarily dropped arm64
Bug: https://bugs.gentoo.org/873601
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/27626
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/metadata.xml | 1 +
sci-libs/vtk/{vtk-9.1.0-r3.ebuild => vtk-9.1.0-r4.ebuild} | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index b4654dc0d664..104d25f0b118 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -21,6 +21,7 @@
<flag name="imaging">Building Imaging modules</flag>
<flag name="json">Support for json formatted data</flag>
<flag name="kits">Build kits in addition to modules</flag>
+ <flag name="logging">Enable the loguru logging module</flag>
<flag name="offscreen">Offscreen rendering through OSMesa</flag>
<flag name="pegtl">Use pegtl to build parsers</flag>
<flag name="qt6">Use Qt6 packages instead of Qt5</flag>
diff --git a/sci-libs/vtk/vtk-9.1.0-r3.ebuild b/sci-libs/vtk/vtk-9.1.0-r4.ebuild
similarity index 98%
rename from sci-libs/vtk/vtk-9.1.0-r3.ebuild
rename to sci-libs/vtk/vtk-9.1.0-r4.ebuild
index 7b1132e4e548..f6730684bc66 100644
--- a/sci-libs/vtk/vtk-9.1.0-r3.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r4.ebuild
@@ -37,13 +37,12 @@ S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-# ~arm64 #864791
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# TODO: Like to simplifiy these. Mostly the flags related to Groups, plus
# maybe some flags related to Kits and a few other needed flags.
IUSE="all-modules +boost cuda debug doc examples +ffmpeg +gdal imaging java
- mpi mysql odbc openmp postgres python qt5 qt6 +rendering tbb test +threads
- tk video_cards_nvidia views web"
+ logging mpi mysql odbc openmp postgres python qt5 qt6 +rendering tbb test
+ +threads tk video_cards_nvidia views web"
RESTRICT="!test? ( test )"
@@ -294,6 +293,7 @@ src_configure() {
-DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
-DVTK_ENABLE_KITS=ON
+ -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
# defaults to ON: USE flag for this?
-DVTK_ENABLE_REMOTE_MODULES=OFF
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2022-12-16 1:40 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2022-12-16 1:40 UTC (permalink / raw
To: gentoo-commits
commit: a5413d681532e2cada2c7117e4fbe3a326de2c0e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 16 01:32:06 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 16 01:38:49 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5413d68
sci-libs/vtk: add media-libs/libtiff subslot dep
libtiff changed SONAME.
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-9.0.3-r5.ebuild => vtk-9.0.3-r7.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.1.0-r4.ebuild => vtk-9.1.0-r6.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.2.2.ebuild => vtk-9.2.2-r1.ebuild} | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r5.ebuild b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.0.3-r5.ebuild
rename to sci-libs/vtk/vtk-9.0.3-r7.ebuild
index efc32fbb2b46..1f00479cbf29 100644
--- a/sci-libs/vtk/vtk-9.0.3-r5.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
@@ -64,7 +64,7 @@ RDEPEND="
media-libs/libogg
media-libs/libpng
media-libs/libtheora
- media-libs/tiff
+ media-libs/tiff:=
<sci-libs/hdf5-1.12:=[mpi=]
sci-libs/kissfft[openmp?]
sci-libs/netcdf:=[mpi=]
diff --git a/sci-libs/vtk/vtk-9.1.0-r4.ebuild b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.1.0-r4.ebuild
rename to sci-libs/vtk/vtk-9.1.0-r6.ebuild
index f6730684bc66..a3a985ac0f80 100644
--- a/sci-libs/vtk/vtk-9.1.0-r4.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
@@ -76,7 +76,7 @@ RDEPEND="
media-libs/libogg
media-libs/libpng:=
media-libs/libtheora
- media-libs/tiff
+ media-libs/tiff:=
>=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
sci-libs/hdf5:=[mpi=]
sci-libs/netcdf:=[mpi=]
diff --git a/sci-libs/vtk/vtk-9.2.2.ebuild b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.2.2.ebuild
rename to sci-libs/vtk/vtk-9.2.2-r1.ebuild
index 51c14eedf0a3..493462905cc9 100644
--- a/sci-libs/vtk/vtk-9.2.2.ebuild
+++ b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
@@ -86,7 +86,7 @@ RDEPEND="
media-libs/libogg
media-libs/libpng:=
media-libs/libtheora
- media-libs/tiff
+ media-libs/tiff:=
>=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
sci-libs/hdf5:=[mpi=]
sci-libs/proj:=
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-01-23 9:36 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2023-01-23 9:36 UTC (permalink / raw
To: gentoo-commits
commit: bacca5d7ff16b9a1b280edb47ed6b57dc09c2913
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sat Jan 21 09:31:32 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 09:32:13 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bacca5d7
sci-libs/vtk: add 9.2.5
- Add Python 3.11 support.
- Simplifiy test logic. The VTK_FORBID_DOWNLOADS option now also works
when testing is enabled, if all data files are downloaded and
regenerated before testing.
- Drop native CUDA arch as long as detection isn't fixed upstream.
Bug: https://gitlab.kitware.com/vtk/vtk-m/issues/693
Bug: https://bugs.gentoo.org/835659
Closes: https://bugs.gentoo.org/890269
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/Manifest | 6 +
sci-libs/vtk/vtk-9.2.5.ebuild | 743 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 749 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 2ee625c9b35b..e07e36085b2f 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,16 +1,22 @@
DIST VTK-9.0.3.tar.gz 34684378 BLAKE2B 6862ab2df95bbefe9d3970757af6521cfa874476f6ee8e64c4e6e279f2e0cbb8a8299bc3b0b8bb9b7254d01a169644e7927b67b11b2ce934ddc87bce0a9e4c26 SHA512 00528011f9206444d09fc6cea05c46930745bb70ea02be6244ab3eb510ae82af772157c025157b1761dc4c6a9ab538b57f814c03a708f30aa3598a421fdc6ae2
DIST VTK-9.1.0.tar.gz 47871165 BLAKE2B 68cebc0879737a519b53e73f198356208b047c301d38ee2d62b9a14539cdb9aa76bd7174baa29592c7b1cfd1cc9700d01e98519a207d67a232d16ad37295ac31 SHA512 b2c4be8795fa082e0776e6ffdb9a3fd88dbb235841a8369a34ebe26cf4c5fcb1610fcca987be314510629da3edc74ee76c0ce2cc88d5ef4b099ac550ac892b0a
DIST VTK-9.2.2.tar.gz 53801737 BLAKE2B 345538004a1b147f8a6812e30b6e31bdfba27d13c47e3c659ef6eb51224aa6015a44e6aaabbc6d1b127691592b4727a51c952dc565d1a12f2eddedd1536af58b SHA512 11b8203a4efaac0cda9ea46acf58c0d88c18f55bfd52e284f74ef313646913d194d3885da9d9fa7222d926502522505bfdf9d719f8c09790dab1315e2161610a
+DIST VTK-9.2.5.tar.gz 53807732 BLAKE2B 8d25ec8f23c12868b2321eca84644dbf44704e58b7b79b2fd3a1260f7a240a78e4007fd99633ba93359103afc8ec00c7fa84f62778aed3d3361e1774a87b5626 SHA512 b1f225fb2589449621fd32bb0fc3f4817478d972cdccf7a9a376f1c17e93d5bd0a0511cdaa8587568a4baac9dfa8b5ffb9041442e221cd98d8f55e9981b6fcbf
DIST VTKData-9.0.3.tar.gz 413854066 BLAKE2B 84c2fa0ae5df8567cc06022262fe3ea1202c553168757c94aa4a0a258360deccdf349d474c2f6585fc2054ee8e0468df4c80ec835cecf6b2391efa639f479eaa SHA512 28ab2ecb32860d820f736e9ceb4345bcd03471f0a35b90f8c9ccbe05454f7a95a4de3c99bae2f4b9db87a27ef8fe50159cd283f5e921f4e6e69b06a50a0570c6
DIST VTKData-9.1.0.tar.gz 590185633 BLAKE2B 7451d57bc507571afa8a8f9ba541010e1924849759f228318b6390aabb07a68341b84b38b82cd504844194544c569b040c9fad1858e6e35e172e4e18000d338e SHA512 134a8dd2b029d3a4959b601987e68a0caa5d050532655b6786b5b67dfc77d3639628b2b957511f8998e63864c247c501a11a6aed248c762f13e860d878778e1a
DIST VTKData-9.2.2.tar.gz 593767482 BLAKE2B 65df8f96eaca9ada44f807bd4ff5efe569dde726105c7aa260c4f0ed3b8c19303b7781e0628a759cdf68b314155ac0d125403f27ee38eefd47336a8eed235851 SHA512 54d33ba24c9adfef2de17f26aa68b53f61f32e50d92bd1b0ddd75b1818d864af9a4d7fa7cb55297839bd2e50c2a7d12a18695151db32f7f59fbbd2ec9169e7b8
+DIST VTKData-9.2.5.tar.gz 594016050 BLAKE2B 7f03f5640ee648275a9771f990f98a3b5dfee10c0e291b353e6f067a098d50e2653c577b7c9c4e19c1d554e14469968014d1dfe9e70a91ecbff75397a53c9be9 SHA512 c06264c10bf78943753e58b9cb034d56b65570995741020dc58d5703525cdd4842d680fb6e185fa8fc39b72225ea6b29d8d632c0327f4145a7e2b79f3f702ec3
DIST VTKDataFiles-9.1.0.tar.gz 605163184 BLAKE2B 968e2fed1e17bb57da4f8dd38e17e128779e50dfce81fc31c6ef75a2f3fe46675dd77ab7343b609998b8ddd3927e256d1ea4117c2719ad76f61db435b5f1c34f SHA512 f56ebd087753e2d2805e2f5954197de4e9933ec90648956780525d83149277a7bca42ce376c4355a53fca71ec78510fed155955af71b70e1b26de27851252e36
DIST VTKDataFiles-9.2.2.tar.gz 608752734 BLAKE2B b33bcec704e0db3ad0de958fbeca1adc1b904279b46a43a5abcd45a7df96138d4d3b76cb21af3aa48c0dd18d05987bdf58476fa945b59ed5b90ad6f2e386926f SHA512 75430127212fdf210fb98d278b0163b4ed09f567fd1b80fcf80ea1cf2709e41f785912b20591712f71ad7ede9e12e23e358b4889963bccfe66cf8c48a7f70e11
+DIST VTKDataFiles-9.2.5.tar.gz 609038837 BLAKE2B e6a5aa5a865664cf407914c9598497f6304b914748ce9d9145b5b7d53f5897b4056b6f7615bb8221c9a9747caf13ba632e21b060b1c8963bb7d6b257bb1da559 SHA512 c0cf7e0fb79f626e25946f1154d9e4c3e7ec995a823a01fc9638976f89af26ae8978a5b6c8a78d62f42f7f81b5fbe0cddc6afc5836c214f3dcaddb917a1ccc79
DIST VTKLargeData-9.0.3.tar.gz 247523270 BLAKE2B f4011292957454da5d8c9e515bcd0972af4299cef3928098d745be96559a1e0080297871c6e11fdd98498c8786a30a6674bc650368adcbcdbc6260e0938d21a1 SHA512 ebd6cb5f2935b77961dd68d0c0da2ea5ab900cec8c2eb641c785a604c65702e40a3e44d32bf3f2acfce9ec28dd89f41bf29f93a4f89d5b36c713f3743d7125b1
DIST VTKLargeData-9.1.0.tar.gz 247517666 BLAKE2B 1b47829ad51f246ff26c8b6d16c9fa431e53ca33fec99e8aa78ee156a82e4b3351e32ee36674d9d345f346efad085ae1e2d3186a144911d2210a31a259e69f1f SHA512 0760dfd4e92bbfec10fec9d783f548a8ca5464b1a1744dfa575d4ed4592756335dbfcf28249d2da964aa6b41933ff1ac98458e4a32484ee4bb91b5e7cfaa78c9
DIST VTKLargeData-9.2.2.tar.gz 247523477 BLAKE2B a17f2e5499efb469162f2face7e5fb0cb559302d0ede75b3b0602036aba80d248895450c5da65198a4bed0a9a0d70e6b2a22e18447d7bab04b8277cb943ebd79 SHA512 4ee1f0b4dac929f7335d2a23ad56ddddaa8ebba34c547c18883418f56fb285fba38ffbfd5124ab428b6e19e87a916ba0858ae227af453519c1cbd5598fe6ccf6
+DIST VTKLargeData-9.2.5.tar.gz 247523496 BLAKE2B edc785e271ba605c730b9c8d9d62d2d95d818ebf18e4b20468c247187720a27897ecbf701e1eff61ba135545e6ea8f573ef120206813ee5ca11be33d8c5ff728 SHA512 7a994024aa42b48d3633cdcc528d89a2e7e07bcc47d01a0001578720dbc2eb991b90dc2f9caafe8f26a1f10185efb1bc2c0506f799da2b96e63ba08cb564117d
DIST VTKLargeDataFiles-9.1.0.tar.gz 247504557 BLAKE2B a05892347a1a5cf5cb0df3f1c1d94efcdb68c28bcd0391617602565fddc4277ac44accec6f1b3ae2822a860f3d5f5642a56e36171b5d81bef137561182051d08 SHA512 10abc287256c7ec5fb7114f4054eda5cde1b75a8d2bbe70375fb96d31b7c4164be936489ce2fc9b5c33225f494d9b7f5f7bed648828661b17d6f66acb70eeddc
DIST VTKLargeDataFiles-9.2.2.tar.gz 247507138 BLAKE2B af593595b0b681a91e491a9fcab748d1d2ba2949d3da728eab60e94810d1d550ad66318d3f66ec170c020212b95e7273dd530fcf243eaebbe0255f589098b74a SHA512 0c919e1b425da5f77af1dec4f83c993387e95f84a8273ded4d2486c3fd171cf3a4f5cb7a80e722200cc44a19bf1fdc358fcea48c4c741d9a5f5fc6086e4c602c
+DIST VTKLargeDataFiles-9.2.5.tar.gz 247506616 BLAKE2B 45cd462a11dfa65260a5aa178b2004636eb8ec000af9103fd2fc64ca55b0f607cdf39c40f5f0a9ef843b7b2e468e0f84a34dafb8b8655efce5c8d39c80961422 SHA512 da96e4f1d0e21bc597832d8cd0730dcdd8a8f7d6c1f41f74ec41a7a1d0b2a2d61e86bcb5fade7d3210b9d66cae975b537e25280767e37fe08e0965b3e98c1cae
DIST vtkDocHtml-9.0.3.tar.gz 132650096 BLAKE2B 45fc1a6942df3e79e500a552c3b3cda2099b9451191559d471e3a2e785a8c52b2c6273cfd2cc4a3f3f65582e607d9414475f58d243fde96a4f985bed479e53db SHA512 9b5fef43f3c2b92aa1fe6a9ba9458d6677874b09b167654db7f26df6feffdc34ed1a8fb4e59d64b75625063a774af77fe57f275903602a5f7daa74e1a2e71800
DIST vtkDocHtml-9.1.0.tar.gz 152767166 BLAKE2B 9163b6b1bf55810a310ca8bc211e067827b1f9907efd2a378363d8e6296d4bf07b25371b66c00cab3576fb06f0cb63fdf2ffea044033e2c42e9087819a3736ba SHA512 036daba5eb6503b5eb3e9323a4ab3ea0f27c09d8fef411dd2ed154c24d5a37d9f19d57db07576c8af404bfdb7178e95b137a3c27bfedb3f9cb72c04f717da80a
DIST vtkDocHtml-9.2.2.tar.gz 158843945 BLAKE2B 682206834319d22d4ffe9bb7f5d20828274cbc7fc14b8215afeddf4783d07f61dab84d0562b002b76306551d20ceac904763168b29dfe1eb429fe8d0e0f3ebda SHA512 d03ed66c5ace0d8c7698a17574f7a44ca2a5361397508d2080812e6cc894fce566c3b552687b8af31e3eb25511d7ad0b98b33044f327e3b5a03451ee2e50cff0
+DIST vtkDocHtml-9.2.5.tar.gz 158865725 BLAKE2B ccfb6276955bda567e7f2b6fdc5e3e601766bae0314821c243a3d009e1557c5732bfbab59358670c4bc6cd598ba80c284971763e5279bc53c37d954ec30fcc03 SHA512 7901e9fb987ef3b88e8c507ecc7538b551c81d04a9cc65a84ff43b40dc1aeca2a694dd9842a030979a1370873b9fed0c8746a0634b486566086d7784a19181d6
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
new file mode 100644
index 000000000000..5f5b88e80ce1
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -0,0 +1,743 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+# - replace usex by usev where applicable
+
+PYTHON_COMPAT=( python3_{9..11} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# TODO: Like to simplifiy these. Mostly the flags related to Groups.
+IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
+ java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
+ qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? (
+ boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
+ postgres rendering views
+ )
+ cuda? ( video_cards_nvidia vtkm )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( rendering )
+ qt6? ( rendering )
+ sdl? ( rendering )
+ tk? ( python rendering )
+ web? ( python )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
+# and need to be available when VTK consumers configure the dependencies.
+RDEPEND="
+ app-arch/lz4:=
+ app-arch/xz-utils
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ dev-db/sqlite:3
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/jsoncpp:=
+ >=dev-libs/libfmt-8.1.1:=
+ dev-libs/libxml2:2
+ dev-libs/libzip:=
+ <dev-libs/pegtl-3
+ dev-libs/pugixml
+ dev-libs/utfcpp
+ media-libs/freetype
+ media-libs/libjpeg-turbo
+ >=media-libs/libharu-2.4.2:=
+ media-libs/libogg
+ media-libs/libpng:=
+ media-libs/libtheora
+ media-libs/tiff:=
+ >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
+ sci-libs/hdf5:=[mpi=]
+ sci-libs/proj:=
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ freetype? ( media-libs/fontconfig )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ las? ( sci-geosciences/liblas )
+ mpi? ( virtual/mpi[cxx,romio] )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ openvdb? ( media-gfx/openvdb:= )
+ pdal? ( sci-libs/pdal:= )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,sql,widgets]
+ dev-qt/qtdeclarative:6[opengl]
+ dev-qt/qtshadertools:6
+ x11-libs/libxkbcommon
+ )
+ sdl? ( media-libs/libsdl2 )
+ rendering? (
+ media-libs/glew:=
+ virtual/opengl
+ x11-libs/gl2ps
+ x11-libs/libICE
+ x11-libs/libXcursor
+ x11-libs/libXext
+ )
+ tbb? ( dev-cpp/tbb:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ <dev-libs/pegtl-3
+ dev-libs/utfcpp
+ test? (
+ media-libs/glew
+ x11-libs/libXcursor
+ rendering? ( media-libs/freeglut )
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
+ "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
+ "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+vtk_check_reqs() {
+ local dsk=4096
+ local mem=$(( $(usex cuda 7168 0) ))
+
+ dsk=$(( $(usex doc 3072 0) + ${dsk} ))
+ dsk=$(( $(usex examples 3072 0) + ${dsk} ))
+ dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
+
+ # In case users are not aware of the extra NINJAOPTS, check
+ # for the more common MAKEOPTS, in case NINJAOPTS is empty
+ local jobs=1
+ if [[ -n "${NINJAOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
+ else
+ if [[ -n "${MAKEOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
+ fi
+ fi
+ mem=$(( ${mem} * ${jobs} ))
+
+ use cuda && export CHECKREQS_MEMORY=${mem}M
+ export CHECKREQS_DISK_BUILD=${dsk}M
+
+ check-reqs_pkg_${EBUILD_PHASE}
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+# Note: The following libraries are marked as internal by kitware
+# and can currently not unbundled:
+# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
+# vtkm, xdmf{2,3}, zfp
+# TODO: cli11 (::guru), exprtk, ioss
+# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
+# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
+# libraries avoids automagic builds, so deletion is not needed to catch these.
+src_prepare() {
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+# TODO: check these and consider to use them
+# VTK_BUILD_SCALED_SOA_ARRAYS
+# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
+
+ -DVTK_ANDROID_BUILD=OFF
+ -DVTK_IOS_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ # no package in the tree: https://github.com/LLNL/conduit
+ -DVTK_ENABLE_CATALYST=OFF
+ -DVTK_ENABLE_KITS=OFF
+ -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
+ # defaults to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ # disable fetching files during build
+ -DVTK_FORBID_DOWNLOADS=ON
+
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="YES"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
+
+ -DVTK_INSTALL_SDK=ON
+
+ -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
+ -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
+ -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
+ -DVTK_MODULE_ENABLE_VTK_expat="WANT"
+ -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
+ -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
+ -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
+ -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
+ -DVTK_MODULE_ENABLE_VTK_png="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
+ -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
+ -DVTK_MODULE_ENABLE_VTK_theora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
+ -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
+
+ # not packaged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
+ -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
+ -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
+
+ -DVTK_UNIFIED_INSTALL_TREE=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ # avoid finding package from either ::guru or ::sci
+ -DVTK_USE_MEMKIND=OFF
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=ON
+
+ -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ # no package in ::gentoo
+ -DVTK_ENABLE_OSPRAY=OFF
+ # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
+ # option. Check whether we can download them clean and enable
+ # them.
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
+ -DVTK_MODULE_ENABLE_VTK_fides="NO"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
+
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ # TODO: checks this on updates of nvidia-cuda-toolkit and update
+ # the list of available arches if necessary, i.e. add new arches
+ # once they are released at the end of the list before all.
+ # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
+ # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
+ # as of 3.25.1 doesn't recognize these keywords.
+ # FIXME: better use numbers than names?
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use debug; then
+ mycmakeargs+=(
+ -DVTK_DEBUG_LEAKS=ON
+ -DVTK_DEBUG_MODULE=ON
+ -DVTK_DEBUG_MODULE_ALL=ON
+ -DVTK_ENABLE_SANITIZER=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_WARN_ON_DISPATCH_FAILURE=ON
+ )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
+ fi
+ fi
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
+ fi
+ fi
+
+ if use gdal; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
+ )
+ fi
+
+ if use imaging; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Java="WANT"
+ )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="YES"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+ )
+ use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
+ )
+ fi
+ use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
+ fi
+
+ use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
+ use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
+ use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
+
+ if use python; then
+ mycmakeargs+=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Python="WANT"
+ -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
+ fi
+
+ if use qt5 && use qt6; then
+ # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ else
+ if use qt5; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ elif use qt6; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
+ -DVTK_QT_VERSION="6"
+ )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
+ fi
+ fi
+
+ if use qt5 || use qt6; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_Qt:STRING="YES"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
+ )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
+ -DVTK_MODULE_ENABLE_VTK_glew="WANT"
+ -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
+
+ -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
+ )
+ use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
+ use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
+ use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
+ fi
+
+ # Testing has been changed in 9.2.5: it is now allowed without
+ # requiring to download, if the data files are available locally!
+ if use test; then
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ # disable fetching data files for the default 'all' target
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+
+ # requested even if all use flags are off
+ -DVTK_MODULE_ENABLE_VTK_octree="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ else
+ mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
+ fi
+
+ # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
+ # sequential, stdthread, openmp and tbb. AFAICS all of them can be
+ # enabled at the same time. Sequential and Stdthread are enabled by
+ # default. The default selected type for the build is sequential.
+ # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
+ # this is dependent on the actual scenario where threading is used.
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ elif use openmp; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
+ elif use threads; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
+
+ if use views; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
+ )
+ fi
+
+ if use vtkm; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
+
+ -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
+ -DVTKm_Vectorization=native
+ )
+ fi
+
+ if use web; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
+ )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ cmake_src_configure
+}
+
+src_compile() {
+ use test && cmake_build VTKData
+ cmake_src_compile
+}
+
+# FIXME: avoid nonfatal?
+# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
+src_test() {
+# nonfatal virtx cmake_src_test
+ virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ use python && python_optimize
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-01-23 9:36 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2023-01-23 9:36 UTC (permalink / raw
To: gentoo-commits
commit: 2e4ccd369ca6972fe56b606d3e3885249a1d4362
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sun Jan 22 09:46:06 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 09:32:37 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4ccd36
sci-libs/vtk: drop native CUDA arch
Backport from 9.2.5, until detection is fixed upstream, don't allow the use of
VTK_CUDA_ARCH=native.
Bug: https://bugs.gentoo.org/835659
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/29200
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.0.3-r7.ebuild | 12 ++++++++++++
sci-libs/vtk/vtk-9.1.0-r6.ebuild | 12 ++++++++++++
sci-libs/vtk/vtk-9.2.2-r1.ebuild | 32 ++++++++++++++++++++++++++------
3 files changed, 50 insertions(+), 6 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r7.ebuild b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
index 29ec066862cb..704b90b94032 100644
--- a/sci-libs/vtk/vtk-9.0.3-r7.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
@@ -151,6 +151,12 @@ pkg_pretend() {
# 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
check-reqs_pkg_setup
}
@@ -162,6 +168,12 @@ pkg_setup() {
if use cuda; then
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
check-reqs_pkg_setup
diff --git a/sci-libs/vtk/vtk-9.1.0-r6.ebuild b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
index f2d49d2249e2..e781751ccfda 100644
--- a/sci-libs/vtk/vtk-9.1.0-r6.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
@@ -188,6 +188,12 @@ pkg_pretend() {
# 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
if use qt6 && use qt5; then
@@ -217,6 +223,12 @@ pkg_setup() {
if use cuda; then
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
if use qt6 && use qt5; then
diff --git a/sci-libs/vtk/vtk-9.2.2-r1.ebuild b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
index f5432d511348..cd85af34661c 100644
--- a/sci-libs/vtk/vtk-9.2.2-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
@@ -204,6 +204,16 @@ pkg_pretend() {
ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
fi
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
vtk_check_reqs
}
@@ -220,6 +230,16 @@ pkg_setup() {
ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
fi
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
vtk_check_reqs
use java && java-pkg-opt-2_pkg_setup
@@ -399,12 +419,12 @@ src_configure() {
kepler|maxwell|pascal|volta|turing|ampere|all)
cuda_arch=${VTK_CUDA_ARCH}
;;
- native)
- ewarn "If auto detection fails for you, please try and export the"
- ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
- ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
- cuda_arch=native
- ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
*)
eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-03-04 13:51 Arthur Zamarin
0 siblings, 0 replies; 92+ messages in thread
From: Arthur Zamarin @ 2023-03-04 13:51 UTC (permalink / raw
To: gentoo-commits
commit: d801fddbf1e72a406c2d1dd495b7cb70b5475f17
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 4 13:49:50 2023 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 4 13:49:50 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d801fddb
sci-libs/vtk: Stabilize 9.2.5 amd64, #899578
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sci-libs/vtk/vtk-9.2.5.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
index eb117e951095..e4fc6333d5f8 100644
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -37,7 +37,7 @@ S="${WORKDIR}/VTK-${PV}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# TODO: Like to simplifiy these. Mostly the flags related to Groups.
IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-06-28 21:11 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2023-06-28 21:11 UTC (permalink / raw
To: gentoo-commits
commit: 1590d50aab5daa504272ee6104c5b06e3d5d037b
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Jun 16 16:32:01 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 28 21:09:20 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1590d50a
sci-libs/vtk: reduce required memory for cuda compilation
Prior logic assumes infinite parallel nvcc calls, while real-life
testing shows a max of 4.
This adds crude logic to require no more memory then needed for 4
parallel calls.
Bug: https://bugs.gentoo.org/901241
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/vtk-9.2.5.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
index 23a48458dd3a..b02f2ee03056 100644
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -186,7 +186,7 @@ vtk_check_reqs() {
jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
fi
fi
- mem=$(( ${mem} * ${jobs} ))
+ mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
use cuda && export CHECKREQS_MEMORY=${mem}M
export CHECKREQS_DISK_BUILD=${dsk}M
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-06-28 21:11 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2023-06-28 21:11 UTC (permalink / raw
To: gentoo-commits
commit: 23dd19e6fd77ebd51ba4c7fe45543616c1e6cae9
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Jun 16 16:33:51 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun 28 21:10:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23dd19e6
sci-libs/vtk: add 9.2.6
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31487
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/Manifest | 6 +
sci-libs/vtk/vtk-9.2.6.ebuild | 746 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 752 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index d241500f291a..3aaf0aa0c9c1 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,6 +1,12 @@
DIST VTK-9.2.5.tar.gz 53807732 BLAKE2B 8d25ec8f23c12868b2321eca84644dbf44704e58b7b79b2fd3a1260f7a240a78e4007fd99633ba93359103afc8ec00c7fa84f62778aed3d3361e1774a87b5626 SHA512 b1f225fb2589449621fd32bb0fc3f4817478d972cdccf7a9a376f1c17e93d5bd0a0511cdaa8587568a4baac9dfa8b5ffb9041442e221cd98d8f55e9981b6fcbf
+DIST VTK-9.2.6.tar.gz 53810904 BLAKE2B e3f9736a9b38415e0edd4b4c4bfe83aa154221c3c2c582e527996f88386b1b4d7864ddd2a364c0e83596ff45902cb7cde548ac3a4eebe06c2e43925c2608c4d3 SHA512 f2328caae959d583299b7fd57205f3dd76f87c8c1ee78653e85d44cab085295bf7bf88b3f6a2b960a57df96ccb32049337ebccb067ecde6d84d25eda636196bc
DIST VTKData-9.2.5.tar.gz 594016050 BLAKE2B 7f03f5640ee648275a9771f990f98a3b5dfee10c0e291b353e6f067a098d50e2653c577b7c9c4e19c1d554e14469968014d1dfe9e70a91ecbff75397a53c9be9 SHA512 c06264c10bf78943753e58b9cb034d56b65570995741020dc58d5703525cdd4842d680fb6e185fa8fc39b72225ea6b29d8d632c0327f4145a7e2b79f3f702ec3
+DIST VTKData-9.2.6.tar.gz 594029678 BLAKE2B b3d6990a8098d9bec02a031b6d804049ce649bcd58fbcd74001e893ba41159e49f4dea74c5957737098a39a399d347b3bc65db4feadf152dd3fb8e705da16eb4 SHA512 5c5f2b365777733180a63daff224da7055e1c2911eb5e4efda26e38b9ac01cb8e886cf7e71c45ac83347642caf1786e72bb469c22954ffbbb6e2c317fc6b4080
DIST VTKDataFiles-9.2.5.tar.gz 609038837 BLAKE2B e6a5aa5a865664cf407914c9598497f6304b914748ce9d9145b5b7d53f5897b4056b6f7615bb8221c9a9747caf13ba632e21b060b1c8963bb7d6b257bb1da559 SHA512 c0cf7e0fb79f626e25946f1154d9e4c3e7ec995a823a01fc9638976f89af26ae8978a5b6c8a78d62f42f7f81b5fbe0cddc6afc5836c214f3dcaddb917a1ccc79
+DIST VTKDataFiles-9.2.6.tar.gz 609045751 BLAKE2B c8a4a8472dcc05f5b1d35c8f6923b4ed2e7adb593a3037ae7673a5e674583ef9ccc5bc1ec8cf29e87fd5b168c0bba5ed27b89c51fe2e5da432ef5d50e415af94 SHA512 f7c104641d25126956a50671934c10b25589e435d7cce6a5107c8dcf83a81f48ed3ae8a325b635f341a5a47579f9200689aa5eb34fe0d1c37acddfeedd33cd01
DIST VTKLargeData-9.2.5.tar.gz 247523496 BLAKE2B edc785e271ba605c730b9c8d9d62d2d95d818ebf18e4b20468c247187720a27897ecbf701e1eff61ba135545e6ea8f573ef120206813ee5ca11be33d8c5ff728 SHA512 7a994024aa42b48d3633cdcc528d89a2e7e07bcc47d01a0001578720dbc2eb991b90dc2f9caafe8f26a1f10185efb1bc2c0506f799da2b96e63ba08cb564117d
+DIST VTKLargeData-9.2.6.tar.gz 247521022 BLAKE2B ee6e5f627a5cb96aac6a53b7ff14d4a40f1e243a095c7d145412d899ab9d509af5a62ab889fc48c96ff78359443afbeecfa70cb937affdad7225071374b28bec SHA512 f0b71baa4e346746e186c6a0cc93588d227b91cd4993ee6afe15708006250b0b3aa9447822845e01432728c12af56c68a213831b6dc809807ca341ff6912f55f
DIST VTKLargeDataFiles-9.2.5.tar.gz 247506616 BLAKE2B 45cd462a11dfa65260a5aa178b2004636eb8ec000af9103fd2fc64ca55b0f607cdf39c40f5f0a9ef843b7b2e468e0f84a34dafb8b8655efce5c8d39c80961422 SHA512 da96e4f1d0e21bc597832d8cd0730dcdd8a8f7d6c1f41f74ec41a7a1d0b2a2d61e86bcb5fade7d3210b9d66cae975b537e25280767e37fe08e0965b3e98c1cae
+DIST VTKLargeDataFiles-9.2.6.tar.gz 247505945 BLAKE2B dafec016a17bc4371972e85fe95e5032f385ef090ca7f3cc4e060976798c18015e34d74aa008a0532a37b3a51df406886a1d70c2eae18f6092a1c16cc861a81a SHA512 5266d7761987d651e1185e7a8fcc556634e129bb2dab892f8bba0e408a950f38c3f96c521a2079bfdc16a6cefb7b4cebc0b63aea945c4f3f0b6a99c55d638197
DIST vtkDocHtml-9.2.5.tar.gz 158865725 BLAKE2B ccfb6276955bda567e7f2b6fdc5e3e601766bae0314821c243a3d009e1557c5732bfbab59358670c4bc6cd598ba80c284971763e5279bc53c37d954ec30fcc03 SHA512 7901e9fb987ef3b88e8c507ecc7538b551c81d04a9cc65a84ff43b40dc1aeca2a694dd9842a030979a1370873b9fed0c8746a0634b486566086d7784a19181d6
+DIST vtkDocHtml-9.2.6.tar.gz 158833419 BLAKE2B 04686ee0373191fec454738b5e745f3f6d913120dd55727732ab31a021eeaf1395e6a39ee0e2a943c80dc9d32a929dacfc1325afad5a412964dabb4eda32c898 SHA512 e72cfda5cfeb3df0f915f6515bbd34bcb32052af940760cfb1c9845a5c0a81fae38837fb2e192eb95446cd27b65b37b79263f5396631e4665c9d8c57455dcf43
diff --git a/sci-libs/vtk/vtk-9.2.6.ebuild b/sci-libs/vtk/vtk-9.2.6.ebuild
new file mode 100644
index 000000000000..7f96653bff6a
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.2.6.ebuild
@@ -0,0 +1,746 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+# - replace usex by usev where applicable
+
+PYTHON_COMPAT=( python3_{9..11} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# TODO: Like to simplifiy these. Mostly the flags related to Groups.
+IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
+ java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
+ qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? (
+ boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
+ postgres rendering views
+ )
+ cuda? ( video_cards_nvidia vtkm )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( rendering )
+ qt6? ( rendering )
+ sdl? ( rendering )
+ tk? ( python rendering )
+ web? ( python )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
+# and need to be available when VTK consumers configure the dependencies.
+RDEPEND="
+ app-arch/lz4:=
+ app-arch/xz-utils
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ dev-db/sqlite:3
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/jsoncpp:=
+ >=dev-libs/libfmt-8.1.1:=
+ dev-libs/libxml2:2
+ dev-libs/libzip:=
+ <dev-libs/pegtl-3
+ dev-libs/pugixml
+ dev-libs/utfcpp
+ media-libs/freetype
+ media-libs/libjpeg-turbo
+ >=media-libs/libharu-2.4.2:=
+ media-libs/libogg
+ media-libs/libpng:=
+ media-libs/libtheora
+ media-libs/tiff:=
+ >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
+ sci-libs/hdf5:=[mpi=]
+ sci-libs/proj:=
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ freetype? ( media-libs/fontconfig )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ las? ( sci-geosciences/liblas )
+ mpi? ( virtual/mpi[cxx,romio] )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ openvdb? ( media-gfx/openvdb:= )
+ pdal? ( sci-libs/pdal:= )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,sql,widgets]
+ dev-qt/qtdeclarative:6[opengl]
+ dev-qt/qtshadertools:6
+ x11-libs/libxkbcommon
+ )
+ sdl? ( media-libs/libsdl2 )
+ rendering? (
+ media-libs/glew:=
+ virtual/opengl
+ x11-libs/gl2ps
+ x11-libs/libICE
+ x11-libs/libXcursor
+ x11-libs/libXext
+ )
+ tbb? ( dev-cpp/tbb:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ <dev-libs/pegtl-3
+ dev-libs/utfcpp
+ test? (
+ media-libs/glew
+ x11-libs/libXcursor
+ rendering? ( media-libs/freeglut )
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
+ "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
+ "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
+ "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
+ "${FILESDIR}"/${PN}-9.2.5-Fix-compilation-error-with-CUDA-12.patch
+ "${FILESDIR}"/${PN}-9.2.5-More-include-cstdint-to-compile-with-gcc13.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+vtk_check_reqs() {
+ local dsk=4096
+ local mem=$(( $(usex cuda 7168 0) ))
+
+ dsk=$(( $(usex doc 3072 0) + ${dsk} ))
+ dsk=$(( $(usex examples 3072 0) + ${dsk} ))
+ dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
+
+ # In case users are not aware of the extra NINJAOPTS, check
+ # for the more common MAKEOPTS, in case NINJAOPTS is empty
+ local jobs=1
+ if [[ -n "${NINJAOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
+ else
+ if [[ -n "${MAKEOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
+ fi
+ fi
+ mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
+
+ use cuda && export CHECKREQS_MEMORY=${mem}M
+ export CHECKREQS_DISK_BUILD=${dsk}M
+
+ check-reqs_pkg_${EBUILD_PHASE}
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+# Note: The following libraries are marked as internal by kitware
+# and can currently not unbundled:
+# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
+# vtkm, xdmf{2,3}, zfp
+# TODO: cli11 (::guru), exprtk, ioss
+# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
+# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
+# libraries avoids automagic builds, so deletion is not needed to catch these.
+src_prepare() {
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+# TODO: check these and consider to use them
+# VTK_BUILD_SCALED_SOA_ARRAYS
+# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
+
+ -DVTK_ANDROID_BUILD=OFF
+ -DVTK_IOS_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ # no package in the tree: https://github.com/LLNL/conduit
+ -DVTK_ENABLE_CATALYST=OFF
+ -DVTK_ENABLE_KITS=OFF
+ -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
+ # defaults to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ # disable fetching files during build
+ -DVTK_FORBID_DOWNLOADS=ON
+
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="YES"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
+
+ -DVTK_INSTALL_SDK=ON
+
+ -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
+ -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
+ -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
+ -DVTK_MODULE_ENABLE_VTK_expat="WANT"
+ -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
+ -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
+ -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
+ -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
+ -DVTK_MODULE_ENABLE_VTK_png="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
+ -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
+ -DVTK_MODULE_ENABLE_VTK_theora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
+ -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
+
+ # not packaged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
+ -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
+ -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
+
+ -DVTK_UNIFIED_INSTALL_TREE=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ # avoid finding package from either ::guru or ::sci
+ -DVTK_USE_MEMKIND=OFF
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=ON
+
+ -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ # no package in ::gentoo
+ -DVTK_ENABLE_OSPRAY=OFF
+ # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
+ # option. Check whether we can download them clean and enable
+ # them.
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
+ -DVTK_MODULE_ENABLE_VTK_fides="NO"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
+
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ # TODO: checks this on updates of nvidia-cuda-toolkit and update
+ # the list of available arches if necessary, i.e. add new arches
+ # once they are released at the end of the list before all.
+ # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
+ # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
+ # as of 3.25.1 doesn't recognize these keywords.
+ # FIXME: better use numbers than names?
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use debug; then
+ mycmakeargs+=(
+ -DVTK_DEBUG_LEAKS=ON
+ -DVTK_DEBUG_MODULE=ON
+ -DVTK_DEBUG_MODULE_ALL=ON
+ -DVTK_ENABLE_SANITIZER=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_WARN_ON_DISPATCH_FAILURE=ON
+ )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
+ fi
+ fi
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
+ fi
+ fi
+
+ if use gdal; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
+ )
+ fi
+
+ if use imaging; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Java="WANT"
+ )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="YES"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+ )
+ use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
+ )
+ fi
+ use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
+ fi
+
+ use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
+ use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
+ use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
+
+ if use python; then
+ mycmakeargs+=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Python="WANT"
+ -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
+ fi
+
+ if use qt5 && use qt6; then
+ # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ else
+ if use qt5; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ elif use qt6; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
+ -DVTK_QT_VERSION="6"
+ )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
+ fi
+ fi
+
+ if use qt5 || use qt6; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_Qt:STRING="YES"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
+ )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
+ -DVTK_MODULE_ENABLE_VTK_glew="WANT"
+ -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
+
+ -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
+ )
+ use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
+ use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
+ use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
+ fi
+
+ # Testing has been changed in 9.2.5: it is now allowed without
+ # requiring to download, if the data files are available locally!
+ if use test; then
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ # disable fetching data files for the default 'all' target
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+
+ # requested even if all use flags are off
+ -DVTK_MODULE_ENABLE_VTK_octree="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ else
+ mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
+ fi
+
+ # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
+ # sequential, stdthread, openmp and tbb. AFAICS all of them can be
+ # enabled at the same time. Sequential and Stdthread are enabled by
+ # default. The default selected type for the build is sequential.
+ # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
+ # this is dependent on the actual scenario where threading is used.
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ elif use openmp; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
+ elif use threads; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
+
+ if use views; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
+ )
+ fi
+
+ if use vtkm; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
+
+ -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
+ -DVTKm_Vectorization=native
+ )
+ fi
+
+ if use web; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
+ )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ cmake_src_configure
+}
+
+src_compile() {
+ use test && cmake_build VTKData
+ cmake_src_compile
+}
+
+# FIXME: avoid nonfatal?
+# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
+src_test() {
+# nonfatal virtx cmake_src_test
+ virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ use python && python_optimize
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-11-16 15:11 Florian Schmaus
0 siblings, 0 replies; 92+ messages in thread
From: Florian Schmaus @ 2023-11-16 15:11 UTC (permalink / raw
To: gentoo-commits
commit: 7138681c15cc6f1596d8a4e829673b5ccc213021
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Nov 6 17:05:26 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Nov 16 15:10:51 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7138681c
sci-libs/vtk: add myself as maintainer
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33693
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
sci-libs/vtk/metadata.xml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sci-libs/vtk/metadata.xml b/sci-libs/vtk/metadata.xml
index 6c18a5feb9e9..4f0f3cb07893 100644
--- a/sci-libs/vtk/metadata.xml
+++ b/sci-libs/vtk/metadata.xml
@@ -9,9 +9,13 @@
<email>waebbl-gentoo@posteo.net</email>
<name>Bernd Waibel</name>
</maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>negril.nx+gentoo@gmail.com</email>
+ <name>Paul Zander</name>
+ </maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
- <description>Gentoo Proxy Maintainers</description>
+ <name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="all-modules">Build all modules</flag>
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2023-12-01 9:58 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2023-12-01 9:58 UTC (permalink / raw
To: gentoo-commits
commit: f11981b5d3dd54b42a1b0b1ea8503378526b67fa
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Nov 30 19:23:14 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Dec 1 09:58:23 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f11981b5
sci-libs/vtk: require <sci-libs/pdal-2.6.0
Broken, needs further work, limit for now.
https://gitlab.kitware.com/vtk/vtk/-/issues/19158
Bug: https://bugs.gentoo.org/918898
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/34069
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.2.5.ebuild | 2 +-
sci-libs/vtk/vtk-9.2.6-r1.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
index b02f2ee03056..7460dc7f2461 100644
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -103,7 +103,7 @@ RDEPEND="
mysql? ( dev-db/mariadb-connector-c )
odbc? ( dev-db/unixODBC )
openvdb? ( media-gfx/openvdb:= )
- pdal? ( sci-libs/pdal:= )
+ pdal? ( <sci-libs/pdal-2.6.0:= )
postgres? ( dev-db/postgresql:= )
python? (
${PYTHON_DEPS}
diff --git a/sci-libs/vtk/vtk-9.2.6-r1.ebuild b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
index aeb17419a172..bb87bdb1068e 100644
--- a/sci-libs/vtk/vtk-9.2.6-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
@@ -103,7 +103,7 @@ RDEPEND="
mysql? ( dev-db/mariadb-connector-c )
odbc? ( dev-db/unixODBC )
openvdb? ( media-gfx/openvdb:= )
- pdal? ( sci-libs/pdal:= )
+ pdal? ( <sci-libs/pdal-2.6.0:= )
postgres? ( dev-db/postgresql:= )
python? (
${PYTHON_DEPS}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-03-16 16:19 Arthur Zamarin
0 siblings, 0 replies; 92+ messages in thread
From: Arthur Zamarin @ 2024-03-16 16:19 UTC (permalink / raw
To: gentoo-commits
commit: 723da4746262b0635905732fdc3a5c30b02f7bc7
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Mar 16 14:32:10 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Mar 16 16:18:36 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=723da474
sci-libs/vtk: 9.3.0 require USE=views for USE=rendering
With 9.3.0 we switched from soft failures to hard failures for conflicting config options. Clean up a bit of mess left behind.
Closes: https://bugs.gentoo.org/926626
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35783
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sci-libs/vtk/vtk-9.3.0.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index f57063d4f5b4..783441f55428 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -43,7 +43,7 @@ KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# TODO: Like to simplifiy these. Mostly the flags related to Groups.
IUSE="all-modules boost cuda debug doc examples ffmpeg +freetype gdal gles2-only imaging
java las +logging mpi mysql odbc opencascade openmp openvdb pdal postgres python qt5
- qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
+ qt6 +rendering sdl tbb test +threads tk video_cards_nvidia +views vtkm web"
RESTRICT="!test? ( test )"
@@ -60,7 +60,7 @@ REQUIRED_USE="
sdl? ( rendering )
tk? ( python rendering )
web? ( python )
- rendering? ( freetype )
+ rendering? ( freetype views )
"
# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-04-06 6:49 Arthur Zamarin
0 siblings, 0 replies; 92+ messages in thread
From: Arthur Zamarin @ 2024-04-06 6:49 UTC (permalink / raw
To: gentoo-commits
commit: a2d0d915df2812a88a85e7551e4c421853cbf488
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 6 06:49:20 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 6 06:49:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2d0d915
sci-libs/vtk: Stabilize 9.3.0 amd64, #925018
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
sci-libs/vtk/vtk-9.3.0.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index 783441f55428..28ef8668d7a7 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -38,7 +38,7 @@ S="${WORKDIR}/VTK-${MY_PV2}"
LICENSE="BSD LGPL-2"
SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
# TODO: Like to simplifiy these. Mostly the flags related to Groups.
IUSE="all-modules boost cuda debug doc examples ffmpeg +freetype gdal gles2-only imaging
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-04-11 9:54 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2024-04-11 9:54 UTC (permalink / raw
To: gentoo-commits
commit: 23cd8e9dc93d8439ab4c8b192e69c31114202885
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 11 09:54:26 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Apr 11 09:54:26 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23cd8e9d
sci-libs/vtk: fix typo
Closes: https://bugs.gentoo.org/929128
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.3.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index d22fadf03387..1181e2e8dcb5 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -325,7 +325,7 @@ src_configure() {
-DVTK_MODULE_ENABLE_VTK_IOExportPDF="YES"
-DVTK_MODULE_ENABLE_VTK_IOLAS="$(usex las "YES" "NO")"
-DVTK_MODULE_ENABLE_VTK_IONetCDF="YES"
- -DVTK_MODULE_ENABLE_VTK_IOOCCT="$(usex opencascade "YES" "No")"
+ -DVTK_MODULE_ENABLE_VTK_IOOCCT="$(usex opencascade "YES" "NO")"
-DVTK_MODULE_ENABLE_VTK_IOOggTheora="YES"
-DVTK_MODULE_ENABLE_VTK_IOOpenVDB="$(usex openvdb "YES" "NO")"
-DVTK_MODULE_ENABLE_VTK_IOSQL="YES" # sqlite
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-04-12 12:40 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2024-04-12 12:40 UTC (permalink / raw
To: gentoo-commits
commit: 00a480e8c7419a400716cd627859fd5acf29e95a
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 12 12:12:54 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Apr 12 12:40:38 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00a480e8
sci-libs/vtk: bump minimal pegtl version
Closes: https://bugs.gentoo.org/921977
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.3.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index 1181e2e8dcb5..745cb1354799 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -147,7 +147,7 @@ DEPEND="
dev-cpp/cli11
dev-cpp/eigen
dev-cpp/nlohmann_json
- dev-libs/pegtl
+ >=dev-libs/pegtl-3
dev-libs/utfcpp
test? (
media-libs/glew
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-05-07 12:52 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2024-05-07 12:52 UTC (permalink / raw
To: gentoo-commits
commit: 4b6bf5d12417a8719f34364098513f25a81be783
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue May 7 12:50:49 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue May 7 12:52:14 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b6bf5d1
sci-libs/vtk: drop 9.2.5, 9.2.6-r1
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/Manifest | 12 -
sci-libs/vtk/vtk-9.2.5.ebuild | 746 --------------------------------------
sci-libs/vtk/vtk-9.2.6-r1.ebuild | 747 ---------------------------------------
3 files changed, 1505 deletions(-)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 51b1e50afdd1..778c263572f8 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,18 +1,6 @@
-DIST VTK-9.2.5.tar.gz 53807732 BLAKE2B 8d25ec8f23c12868b2321eca84644dbf44704e58b7b79b2fd3a1260f7a240a78e4007fd99633ba93359103afc8ec00c7fa84f62778aed3d3361e1774a87b5626 SHA512 b1f225fb2589449621fd32bb0fc3f4817478d972cdccf7a9a376f1c17e93d5bd0a0511cdaa8587568a4baac9dfa8b5ffb9041442e221cd98d8f55e9981b6fcbf
-DIST VTK-9.2.6.tar.gz 53810904 BLAKE2B e3f9736a9b38415e0edd4b4c4bfe83aa154221c3c2c582e527996f88386b1b4d7864ddd2a364c0e83596ff45902cb7cde548ac3a4eebe06c2e43925c2608c4d3 SHA512 f2328caae959d583299b7fd57205f3dd76f87c8c1ee78653e85d44cab085295bf7bf88b3f6a2b960a57df96ccb32049337ebccb067ecde6d84d25eda636196bc
DIST VTK-9.3.0.tar.gz 99932810 BLAKE2B 59c2cdfe1c2525ac0f89df77a668783d928b55d2e72b42df45ea9b789da1bb150d52ce4108f2bc39cb8840cdd1998f57d3aedf96c72e402f6115d9efeebf4486 SHA512 2722dc8186779df1af5c534f26b20186ea33cb3bca2cef8cb333542b12e738382616e26e8d4d0341cb98c30403f8a896d77ddb04adb07e26d0d548c4a34b7d2f
-DIST VTKData-9.2.5.tar.gz 594016050 BLAKE2B 7f03f5640ee648275a9771f990f98a3b5dfee10c0e291b353e6f067a098d50e2653c577b7c9c4e19c1d554e14469968014d1dfe9e70a91ecbff75397a53c9be9 SHA512 c06264c10bf78943753e58b9cb034d56b65570995741020dc58d5703525cdd4842d680fb6e185fa8fc39b72225ea6b29d8d632c0327f4145a7e2b79f3f702ec3
-DIST VTKData-9.2.6.tar.gz 594029678 BLAKE2B b3d6990a8098d9bec02a031b6d804049ce649bcd58fbcd74001e893ba41159e49f4dea74c5957737098a39a399d347b3bc65db4feadf152dd3fb8e705da16eb4 SHA512 5c5f2b365777733180a63daff224da7055e1c2911eb5e4efda26e38b9ac01cb8e886cf7e71c45ac83347642caf1786e72bb469c22954ffbbb6e2c317fc6b4080
DIST VTKData-9.3.0.tar.gz 612388942 BLAKE2B 66d73ddaf5f2ddf52cf5c6dda5a918a86ae630df207983534478c92a66c39e38b1f4abfb93900b36899a93ad0e26260763573e925bd128c1646a1bc3bef8c54d SHA512 385d609c2adc1746c073690b58a3fc25e496946c03f08e6c9e0a69ee406cee447e66d267986c3e5ba9006dd1cb0015b68134bb3c375ae41aef8f3b1e0d923d51
-DIST VTKDataFiles-9.2.5.tar.gz 609038837 BLAKE2B e6a5aa5a865664cf407914c9598497f6304b914748ce9d9145b5b7d53f5897b4056b6f7615bb8221c9a9747caf13ba632e21b060b1c8963bb7d6b257bb1da559 SHA512 c0cf7e0fb79f626e25946f1154d9e4c3e7ec995a823a01fc9638976f89af26ae8978a5b6c8a78d62f42f7f81b5fbe0cddc6afc5836c214f3dcaddb917a1ccc79
-DIST VTKDataFiles-9.2.6.tar.gz 609045751 BLAKE2B c8a4a8472dcc05f5b1d35c8f6923b4ed2e7adb593a3037ae7673a5e674583ef9ccc5bc1ec8cf29e87fd5b168c0bba5ed27b89c51fe2e5da432ef5d50e415af94 SHA512 f7c104641d25126956a50671934c10b25589e435d7cce6a5107c8dcf83a81f48ed3ae8a325b635f341a5a47579f9200689aa5eb34fe0d1c37acddfeedd33cd01
DIST VTKDataFiles-9.3.0.tar.gz 628646039 BLAKE2B c2a4e875536c0b06f1edc8a8df17defbe1038067d7a04fc07e71ea49cad46139ef25f64d4b434a095ced16a7ff39d5346d34c528c099ea2e126c9f29afe92482 SHA512 c6788acfa790ce6b02aa5545fa4e411d00896b7542416c18b5e5955909f26a8fab9267e44db1c2a86f95f7a7f093695453f3fd0ec4e2c9a73449f9caf3fc09d5
-DIST VTKLargeData-9.2.5.tar.gz 247523496 BLAKE2B edc785e271ba605c730b9c8d9d62d2d95d818ebf18e4b20468c247187720a27897ecbf701e1eff61ba135545e6ea8f573ef120206813ee5ca11be33d8c5ff728 SHA512 7a994024aa42b48d3633cdcc528d89a2e7e07bcc47d01a0001578720dbc2eb991b90dc2f9caafe8f26a1f10185efb1bc2c0506f799da2b96e63ba08cb564117d
-DIST VTKLargeData-9.2.6.tar.gz 247521022 BLAKE2B ee6e5f627a5cb96aac6a53b7ff14d4a40f1e243a095c7d145412d899ab9d509af5a62ab889fc48c96ff78359443afbeecfa70cb937affdad7225071374b28bec SHA512 f0b71baa4e346746e186c6a0cc93588d227b91cd4993ee6afe15708006250b0b3aa9447822845e01432728c12af56c68a213831b6dc809807ca341ff6912f55f
DIST VTKLargeData-9.3.0.tar.gz 247520869 BLAKE2B e01f3d0997d0b328d6c5909d6b891443c1246bdbc36aa978004a1d4bb2770f7923afed2c0d78f7844aae95e067425b9dd25a1c47601c8137ba0a8a958b708cab SHA512 d87eb0fb4ce27ae9f4363c54bb711e66c5d2dbcdf508cb5fae9fcc1574407df2816f29d20037297b834440cd8a54fcf8e1d6db14700054f057bff2fe48404d33
-DIST VTKLargeDataFiles-9.2.5.tar.gz 247506616 BLAKE2B 45cd462a11dfa65260a5aa178b2004636eb8ec000af9103fd2fc64ca55b0f607cdf39c40f5f0a9ef843b7b2e468e0f84a34dafb8b8655efce5c8d39c80961422 SHA512 da96e4f1d0e21bc597832d8cd0730dcdd8a8f7d6c1f41f74ec41a7a1d0b2a2d61e86bcb5fade7d3210b9d66cae975b537e25280767e37fe08e0965b3e98c1cae
-DIST VTKLargeDataFiles-9.2.6.tar.gz 247505945 BLAKE2B dafec016a17bc4371972e85fe95e5032f385ef090ca7f3cc4e060976798c18015e34d74aa008a0532a37b3a51df406886a1d70c2eae18f6092a1c16cc861a81a SHA512 5266d7761987d651e1185e7a8fcc556634e129bb2dab892f8bba0e408a950f38c3f96c521a2079bfdc16a6cefb7b4cebc0b63aea945c4f3f0b6a99c55d638197
DIST VTKLargeDataFiles-9.3.0.tar.gz 247503839 BLAKE2B 68007af36148eaae43fc0fd75b9f8d3b165c977b7bc44efa4ce7077dc4977514f49a4d7d5e4a9e43fc9dec6562d741bdee5df87efa285b3361f865023da14f55 SHA512 f7def947ff492acbfdaa3d360064c42fdd3fedab27fd5d7bed1dbf8054b814cc8843ba0fed7078926648d1e8949235b877de97747be079ea478b79558975e6ea
-DIST vtkDocHtml-9.2.5.tar.gz 158865725 BLAKE2B ccfb6276955bda567e7f2b6fdc5e3e601766bae0314821c243a3d009e1557c5732bfbab59358670c4bc6cd598ba80c284971763e5279bc53c37d954ec30fcc03 SHA512 7901e9fb987ef3b88e8c507ecc7538b551c81d04a9cc65a84ff43b40dc1aeca2a694dd9842a030979a1370873b9fed0c8746a0634b486566086d7784a19181d6
-DIST vtkDocHtml-9.2.6.tar.gz 158833419 BLAKE2B 04686ee0373191fec454738b5e745f3f6d913120dd55727732ab31a021eeaf1395e6a39ee0e2a943c80dc9d32a929dacfc1325afad5a412964dabb4eda32c898 SHA512 e72cfda5cfeb3df0f915f6515bbd34bcb32052af940760cfb1c9845a5c0a81fae38837fb2e192eb95446cd27b65b37b79263f5396631e4665c9d8c57455dcf43
DIST vtkDocHtml-9.3.0.tar.gz 165538725 BLAKE2B 27874998679090d5442ecb3a394b53db05a0215cfee9f912bd01af1d5567efc51b4f56dacb960401195da4f3d385b335bbefc922a45d0199c99d619df0941f08 SHA512 8bf9cc87c4653a65ccc39d88d70b421a7b4353986d380cbf558cbf6e8a96435695a5d54aa7ce5bb1240cb46ca0fd9225a51183a39d1af1101d3f2876a2afc10b
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
deleted file mode 100644
index 7460dc7f2461..000000000000
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ /dev/null
@@ -1,746 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# TODO:
-# - add USE flag for remote modules? Those modules can be downloaded
-# properly before building.
-# - replace usex by usev where applicable
-
-PYTHON_COMPAT=( python3_{9..11} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
-
-# Short package version
-MY_PV="$(ver_cut 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
- )
- test? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
- )
-"
-S="${WORKDIR}/VTK-${PV}"
-
-LICENSE="BSD LGPL-2"
-SLOT="0/${MY_PV}"
-KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-# TODO: Like to simplifiy these. Mostly the flags related to Groups.
-IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
- java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
- qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
-
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- all-modules? (
- boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
- postgres rendering views
- )
- cuda? ( video_cards_nvidia vtkm )
- java? ( rendering )
- python? ( ${PYTHON_REQUIRED_USE} )
- qt5? ( rendering )
- qt6? ( rendering )
- sdl? ( rendering )
- tk? ( python rendering )
- web? ( python )
-"
-
-# for <pegtl-3 dependency see
-# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
-# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
-# and need to be available when VTK consumers configure the dependencies.
-RDEPEND="
- app-arch/lz4:=
- app-arch/xz-utils
- dev-cpp/eigen
- dev-cpp/nlohmann_json
- dev-db/sqlite:3
- dev-libs/double-conversion:=
- dev-libs/expat
- dev-libs/icu:=
- dev-libs/jsoncpp:=
- >=dev-libs/libfmt-8.1.1:=
- dev-libs/libxml2:2
- dev-libs/libzip:=
- <dev-libs/pegtl-3
- dev-libs/pugixml
- dev-libs/utfcpp
- media-libs/freetype
- media-libs/libjpeg-turbo
- >=media-libs/libharu-2.4.2:=
- media-libs/libogg
- media-libs/libpng:=
- media-libs/libtheora
- media-libs/tiff:=
- >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
- sci-libs/hdf5:=[mpi=]
- sci-libs/proj:=
- sci-libs/netcdf:=[mpi=]
- sys-libs/zlib
- boost? ( dev-libs/boost:=[mpi?] )
- cuda? ( dev-util/nvidia-cuda-toolkit:= )
- ffmpeg? ( media-video/ffmpeg:= )
- freetype? ( media-libs/fontconfig )
- gdal? ( sci-libs/gdal:= )
- java? ( >=virtual/jdk-1.8:* )
- las? ( sci-geosciences/liblas )
- mpi? ( virtual/mpi[cxx,romio] )
- mysql? ( dev-db/mariadb-connector-c )
- odbc? ( dev-db/unixODBC )
- openvdb? ( media-gfx/openvdb:= )
- pdal? ( <sci-libs/pdal-2.6.0:= )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
- )
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtopengl:5
- dev-qt/qtquickcontrols2:5
- dev-qt/qtsql:5
- dev-qt/qtwidgets:5
- )
- qt6? (
- dev-qt/qtbase:6[gui,opengl,sql,widgets]
- dev-qt/qtdeclarative:6[opengl]
- dev-qt/qtshadertools:6
- x11-libs/libxkbcommon
- )
- sdl? ( media-libs/libsdl2 )
- rendering? (
- media-libs/glew:=
- virtual/opengl
- x11-libs/gl2ps
- x11-libs/libICE
- x11-libs/libXcursor
- x11-libs/libXext
- )
- tbb? ( dev-cpp/tbb:= )
- tk? ( dev-lang/tk:= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- views? (
- x11-libs/libICE
- x11-libs/libXext
- )
- web? ( ${WEBAPP_DEPEND} )
-"
-
-# for <pegtl-3 dependency see
-# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
-DEPEND="
- ${RDEPEND}
- dev-cpp/eigen
- dev-cpp/nlohmann_json
- <dev-libs/pegtl-3
- dev-libs/utfcpp
- test? (
- media-libs/glew
- x11-libs/libXcursor
- rendering? ( media-libs/freeglut )
- )
-"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
- "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
- "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
- "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
- "${FILESDIR}"/${PN}-9.2.5-Fix-compilation-error-with-CUDA-12.patch
- "${FILESDIR}"/${PN}-9.2.5-More-include-cstdint-to-compile-with-gcc13.patch
-)
-
-DOCS=( CONTRIBUTING.md README.md )
-
-vtk_check_reqs() {
- local dsk=4096
- local mem=$(( $(usex cuda 7168 0) ))
-
- dsk=$(( $(usex doc 3072 0) + ${dsk} ))
- dsk=$(( $(usex examples 3072 0) + ${dsk} ))
- dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
-
- # In case users are not aware of the extra NINJAOPTS, check
- # for the more common MAKEOPTS, in case NINJAOPTS is empty
- local jobs=1
- if [[ -n "${NINJAOPTS}" ]]; then
- jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
- else
- if [[ -n "${MAKEOPTS}" ]]; then
- jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
- fi
- fi
- mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
-
- use cuda && export CHECKREQS_MEMORY=${mem}M
- export CHECKREQS_DISK_BUILD=${dsk}M
-
- check-reqs_pkg_${EBUILD_PHASE}
-}
-
-pkg_pretend() {
- [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
-
- if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
- # FIXME: better use eerror?
- ewarn "GCC 11 is know to fail building with CUDA support in some cases."
- ewarn "See bug #820593"
- fi
-
- if use qt6 && use qt5; then
- ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
- fi
-
- # bug #835659
- if use cuda; then
- if [[ ${VTK_CUDA_ARCH} = native ]]; then
- eerror "Using native CUDA arches is currently broken."
- eerror "Please set it to one of the common arch names:"
- eerror "kepler, maxwell, pascal, turing or ampere."
- die "Please set VTK_CUDA_ARCH environment variable!"
- fi
- fi
-
- vtk_check_reqs
-}
-
-pkg_setup() {
- [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
-
- if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
- # FIXME: better use eerror?
- ewarn "GCC 11 is know to fail building with CUDA support in some cases."
- ewarn "See bug #820593"
- fi
-
- if use qt6 && use qt5; then
- ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
- fi
-
- # bug #835659
- if use cuda; then
- if [[ ${VTK_CUDA_ARCH} = native ]]; then
- eerror "Using native CUDA arches is currently broken."
- eerror "Please set it to one of the common arch names:"
- eerror "kepler, maxwell, pascal, turing or ampere."
- die "Please set VTK_CUDA_ARCH environment variable!"
- fi
- fi
-
- vtk_check_reqs
-
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-# Note: The following libraries are marked as internal by kitware
-# and can currently not unbundled:
-# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
-# vtkm, xdmf{2,3}, zfp
-# TODO: cli11 (::guru), exprtk, ioss
-# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
-# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
-# libraries avoids automagic builds, so deletion is not needed to catch these.
-src_prepare() {
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-
- cmake_src_prepare
-
- if use cuda; then
- cuda_add_sandbox -w
- cuda_src_prepare
- fi
-
- if use test; then
- ebegin "Copying data files to ${BUILD_DIR}"
- mkdir -p "${BUILD_DIR}/ExternalData" || die
- pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
- ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
- ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
- popd >/dev/null || die
- eend "$?"
- fi
-}
-
-# TODO: check these and consider to use them
-# VTK_BUILD_SCALED_SOA_ARRAYS
-# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
-
- -DVTK_ANDROID_BUILD=OFF
- -DVTK_IOS_BUILD=OFF
-
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
- # we use the pre-built documentation and install these with USE=doc
- -DVTK_BUILD_DOCUMENTATION=OFF
- -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
-
- # no package in the tree: https://github.com/LLNL/conduit
- -DVTK_ENABLE_CATALYST=OFF
- -DVTK_ENABLE_KITS=OFF
- -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
- # defaults to ON: USE flag for this?
- -DVTK_ENABLE_REMOTE_MODULES=OFF
-
- # disable fetching files during build
- -DVTK_FORBID_DOWNLOADS=ON
-
- -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_StandAlone="YES"
- -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
-
- -DVTK_INSTALL_SDK=ON
-
- -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
- -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
- -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
- -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
- -DVTK_MODULE_ENABLE_VTK_expat="WANT"
- -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
- -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
- -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
- -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
- -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
- -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
- -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
- -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
- -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
- -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
- -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
- -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
- -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
- -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
- -DVTK_MODULE_ENABLE_VTK_png="WANT"
- -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
- -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
- -DVTK_MODULE_ENABLE_VTK_theora="WANT"
- -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
- -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
- -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
-
- # not packaged in Gentoo
- -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
- -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
- -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
-
- -DVTK_RELOCATABLE_INSTALL=ON
-
- -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
- -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
- -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
-
- -DVTK_UNIFIED_INSTALL_TREE=ON
-
- -DVTK_USE_CUDA=$(usex cuda ON OFF)
- # use system libraries where possible
- -DVTK_USE_EXTERNAL=ON
- # avoid finding package from either ::guru or ::sci
- -DVTK_USE_MEMKIND=OFF
- -DVTK_USE_MPI=$(usex mpi ON OFF)
- -DVTK_USE_TK=$(usex tk ON OFF)
- -DVTK_USE_X=ON
-
- -DVTK_WHEEL_BUILD=OFF
-
- -DVTK_WRAP_JAVA=$(usex java ON OFF)
- -DVTK_WRAP_PYTHON=$(usex python ON OFF)
- )
-
- if use all-modules; then
- mycmakeargs+=(
- # no package in ::gentoo
- -DVTK_ENABLE_OSPRAY=OFF
- # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
- # option. Check whether we can download them clean and enable
- # them.
- -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
- -DVTK_MODULE_ENABLE_VTK_fides="NO"
- -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
- -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
- -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
-
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
-
- # available in ::guru, so avoid detection if installed
- -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
- )
- fi
-
- if use boost; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
- -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
- )
- fi
-
- # TODO: checks this on updates of nvidia-cuda-toolkit and update
- # the list of available arches if necessary, i.e. add new arches
- # once they are released at the end of the list before all.
- # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
- # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
- # as of 3.25.1 doesn't recognize these keywords.
- # FIXME: better use numbers than names?
- if use cuda; then
- local cuda_arch=
- case ${VTK_CUDA_ARCH:-native} in
- # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
- # no longer supports it
- kepler|maxwell|pascal|volta|turing|ampere|all)
- cuda_arch=${VTK_CUDA_ARCH}
- ;;
-# native)
-# ewarn "If auto detection fails for you, please try and export the"
-# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
-# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
-# cuda_arch=native
-# ;;
- *)
- eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
- eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
- die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
- ;;
- esac
- ewarn "Using CUDA architecture '${cuda_arch}'"
-
- mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
- fi
-
- if use debug; then
- mycmakeargs+=(
- -DVTK_DEBUG_LEAKS=ON
- -DVTK_DEBUG_MODULE=ON
- -DVTK_DEBUG_MODULE_ALL=ON
- -DVTK_ENABLE_SANITIZER=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_WARN_ON_DISPATCH_FAILURE=ON
- )
- if use rendering; then
- mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
- fi
- fi
-
- if use examples || use test; then
- mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
- fi
-
- if use ffmpeg; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
- fi
- fi
-
- if use gdal; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
- )
- fi
-
- if use imaging; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
- )
- use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
- fi
-
- if ! use java && ! use python; then
- # defaults to ON
- mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
- fi
-
- if use java; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_JARDIR="share/${PN}"
- -DVTK_ENABLE_WRAPPING=ON
- -DVTK_MODULE_ENABLE_VTK_Java="WANT"
- )
- fi
-
- if use mpi; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_MPI="YES"
- -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
- -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
- )
- use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
- use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
- if use rendering; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
- )
- fi
- use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
- else
- mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
- fi
-
- use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
- use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
- use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
- use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
-
- if use python; then
- mycmakeargs+=(
- -DPython3_EXECUTABLE="${PYTHON}"
- -DVTK_ENABLE_WRAPPING=ON
- -DVTK_MODULE_ENABLE_VTK_Python="WANT"
- -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
- -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
- -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
- )
- use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
- fi
-
- if use qt5 && use qt6; then
- # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
- -DVTK_QT_VERSION="5"
- )
- else
- if use qt5; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
- -DVTK_QT_VERSION="5"
- )
- elif use qt6; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
- -DVTK_QT_VERSION="6"
- )
- else
- mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
- fi
- fi
-
- if use qt5 || use qt6; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_Qt:STRING="YES"
- -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
- -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
- )
- if use mysql || use postgres; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
- fi
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
- fi
- if use views; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
- fi
- fi
-
- if use rendering; then
- mycmakeargs+=(
- -DVTK_ENABLE_OSPRAY=OFF
-
- -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
- -DVTK_MODULE_ENABLE_VTK_glew="WANT"
- -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
-
- -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
- )
- use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
- use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
- use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
- fi
-
- # Testing has been changed in 9.2.5: it is now allowed without
- # requiring to download, if the data files are available locally!
- if use test; then
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=ON
- # disable fetching data files for the default 'all' target
- -DVTK_DATA_EXCLUDE_FROM_ALL=ON
-
- # requested even if all use flags are off
- -DVTK_MODULE_ENABLE_VTK_octree="WANT"
- -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
-
- # available in ::guru, so avoid detection if installed
- -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
- )
- else
- mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
- fi
-
- # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
- # sequential, stdthread, openmp and tbb. AFAICS all of them can be
- # enabled at the same time. Sequential and Stdthread are enabled by
- # default. The default selected type for the build is sequential.
- # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
- # this is dependent on the actual scenario where threading is used.
- if use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- elif use openmp; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
- elif use threads; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
-
- if use views; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
- )
- fi
-
- if use vtkm; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
-
- -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
- -DVTKm_Vectorization=native
- )
- fi
-
- if use web; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
- )
- use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
- fi
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- cmake_src_configure
-}
-
-src_compile() {
- use test && cmake_build VTKData
- cmake_src_compile
-}
-
-# FIXME: avoid nonfatal?
-# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
-src_test() {
-# nonfatal virtx cmake_src_test
- virtx cmake_src_test
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- # Stop web page images from being compressed
- if use doc; then
- HTML_DOCS=( "${WORKDIR}/html/." )
- fi
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
-
- einfo "Installing datafiles"
- insinto /usr/share/${PN}/data
- doins -r "${S}/.ExternalData"
- fi
-
- use python && python_optimize
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-
- if use examples; then
- einfo "You can get more and updated examples at"
- einfo "https://kitware.github.io/vtk-examples/site/"
- fi
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
diff --git a/sci-libs/vtk/vtk-9.2.6-r1.ebuild b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
deleted file mode 100644
index bb87bdb1068e..000000000000
--- a/sci-libs/vtk/vtk-9.2.6-r1.ebuild
+++ /dev/null
@@ -1,747 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# TODO:
-# - add USE flag for remote modules? Those modules can be downloaded
-# properly before building.
-# - replace usex by usev where applicable
-
-PYTHON_COMPAT=( python3_{9..11} )
-WEBAPP_OPTIONAL=yes
-WEBAPP_MANUAL_SLOT=yes
-
-inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
-
-# Short package version
-MY_PV="$(ver_cut 1-2)"
-
-DESCRIPTION="The Visualization Toolkit"
-HOMEPAGE="https://www.vtk.org/"
-SRC_URI="
- https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
- doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
- examples? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
- )
- test? (
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
- https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
- )
-"
-S="${WORKDIR}/VTK-${PV}"
-
-LICENSE="BSD LGPL-2"
-SLOT="0/${MY_PV}"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
-# TODO: Like to simplifiy these. Mostly the flags related to Groups.
-IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
- java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
- qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
-
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="
- all-modules? (
- boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
- postgres rendering views
- )
- cuda? ( video_cards_nvidia vtkm )
- java? ( rendering )
- python? ( ${PYTHON_REQUIRED_USE} )
- qt5? ( rendering )
- qt6? ( rendering )
- sdl? ( rendering )
- tk? ( python rendering )
- web? ( python )
-"
-
-# for <pegtl-3 dependency see
-# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
-# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
-# and need to be available when VTK consumers configure the dependencies.
-RDEPEND="
- app-arch/lz4:=
- app-arch/xz-utils
- dev-cpp/eigen
- dev-cpp/nlohmann_json
- dev-db/sqlite:3
- dev-libs/double-conversion:=
- dev-libs/expat
- dev-libs/icu:=
- dev-libs/jsoncpp:=
- >=dev-libs/libfmt-8.1.1:=
- dev-libs/libxml2:2
- dev-libs/libzip:=
- <dev-libs/pegtl-3
- dev-libs/pugixml
- dev-libs/utfcpp
- media-libs/freetype
- media-libs/libjpeg-turbo
- >=media-libs/libharu-2.4.2:=
- media-libs/libogg
- media-libs/libpng:=
- media-libs/libtheora
- media-libs/tiff:=
- >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
- sci-libs/hdf5:=[mpi=]
- sci-libs/proj:=
- sci-libs/netcdf:=[mpi=]
- sys-libs/zlib
- boost? ( dev-libs/boost:=[mpi?] )
- cuda? ( dev-util/nvidia-cuda-toolkit:= )
- ffmpeg? ( media-video/ffmpeg:= )
- freetype? ( media-libs/fontconfig )
- gdal? ( sci-libs/gdal:= )
- java? ( >=virtual/jdk-1.8:* )
- las? ( sci-geosciences/liblas )
- mpi? ( virtual/mpi[cxx,romio] )
- mysql? ( dev-db/mariadb-connector-c )
- odbc? ( dev-db/unixODBC )
- openvdb? ( media-gfx/openvdb:= )
- pdal? ( <sci-libs/pdal-2.6.0:= )
- postgres? ( dev-db/postgresql:= )
- python? (
- ${PYTHON_DEPS}
- $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
- )
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtopengl:5
- dev-qt/qtquickcontrols2:5
- dev-qt/qtsql:5
- dev-qt/qtwidgets:5
- )
- qt6? (
- dev-qt/qtbase:6[gui,opengl,sql,widgets]
- dev-qt/qtdeclarative:6[opengl]
- dev-qt/qtshadertools:6
- x11-libs/libxkbcommon
- )
- sdl? ( media-libs/libsdl2 )
- rendering? (
- media-libs/glew:=
- virtual/opengl
- x11-libs/gl2ps
- x11-libs/libICE
- x11-libs/libXcursor
- x11-libs/libXext
- )
- tbb? ( dev-cpp/tbb:= )
- tk? ( dev-lang/tk:= )
- video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
- views? (
- x11-libs/libICE
- x11-libs/libXext
- )
- web? ( ${WEBAPP_DEPEND} )
-"
-
-# for <pegtl-3 dependency see
-# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
-DEPEND="
- ${RDEPEND}
- dev-cpp/eigen
- dev-cpp/nlohmann_json
- <dev-libs/pegtl-3
- dev-libs/utfcpp
- test? (
- media-libs/glew
- x11-libs/libXcursor
- rendering? ( media-libs/freeglut )
- )
-"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
- "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
- "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
- "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
- "${FILESDIR}"/${PN}-9.2.5-Fix-compilation-error-with-CUDA-12.patch
- "${FILESDIR}"/${PN}-9.2.5-More-include-cstdint-to-compile-with-gcc13.patch
- "${FILESDIR}"/vtk-9.2.6-Java21.patch
-)
-
-DOCS=( CONTRIBUTING.md README.md )
-
-vtk_check_reqs() {
- local dsk=4096
- local mem=$(( $(usex cuda 7168 0) ))
-
- dsk=$(( $(usex doc 3072 0) + ${dsk} ))
- dsk=$(( $(usex examples 3072 0) + ${dsk} ))
- dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
-
- # In case users are not aware of the extra NINJAOPTS, check
- # for the more common MAKEOPTS, in case NINJAOPTS is empty
- local jobs=1
- if [[ -n "${NINJAOPTS}" ]]; then
- jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
- else
- if [[ -n "${MAKEOPTS}" ]]; then
- jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
- fi
- fi
- mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
-
- use cuda && export CHECKREQS_MEMORY=${mem}M
- export CHECKREQS_DISK_BUILD=${dsk}M
-
- check-reqs_pkg_${EBUILD_PHASE}
-}
-
-pkg_pretend() {
- [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
-
- if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
- # FIXME: better use eerror?
- ewarn "GCC 11 is know to fail building with CUDA support in some cases."
- ewarn "See bug #820593"
- fi
-
- if use qt6 && use qt5; then
- ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
- fi
-
- # bug #835659
- if use cuda; then
- if [[ ${VTK_CUDA_ARCH} = native ]]; then
- eerror "Using native CUDA arches is currently broken."
- eerror "Please set it to one of the common arch names:"
- eerror "kepler, maxwell, pascal, turing or ampere."
- die "Please set VTK_CUDA_ARCH environment variable!"
- fi
- fi
-
- vtk_check_reqs
-}
-
-pkg_setup() {
- [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
-
- if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
- # FIXME: better use eerror?
- ewarn "GCC 11 is know to fail building with CUDA support in some cases."
- ewarn "See bug #820593"
- fi
-
- if use qt6 && use qt5; then
- ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
- fi
-
- # bug #835659
- if use cuda; then
- if [[ ${VTK_CUDA_ARCH} = native ]]; then
- eerror "Using native CUDA arches is currently broken."
- eerror "Please set it to one of the common arch names:"
- eerror "kepler, maxwell, pascal, turing or ampere."
- die "Please set VTK_CUDA_ARCH environment variable!"
- fi
- fi
-
- vtk_check_reqs
-
- use java && java-pkg-opt-2_pkg_setup
- use python && python-single-r1_pkg_setup
- use web && webapp_pkg_setup
-}
-
-# Note: The following libraries are marked as internal by kitware
-# and can currently not unbundled:
-# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
-# vtkm, xdmf{2,3}, zfp
-# TODO: cli11 (::guru), exprtk, ioss
-# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
-# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
-# libraries avoids automagic builds, so deletion is not needed to catch these.
-src_prepare() {
- if use doc; then
- einfo "Removing .md5 files from documents."
- rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
- sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
- -i Utilities/Doxygen/CMakeLists.txt || die
- fi
-
- cmake_src_prepare
-
- if use cuda; then
- cuda_add_sandbox -w
- cuda_src_prepare
- fi
-
- if use test; then
- ebegin "Copying data files to ${BUILD_DIR}"
- mkdir -p "${BUILD_DIR}/ExternalData" || die
- pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
- ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
- ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
- popd >/dev/null || die
- eend "$?"
- fi
-}
-
-# TODO: check these and consider to use them
-# VTK_BUILD_SCALED_SOA_ARRAYS
-# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
-src_configure() {
- local mycmakeargs=(
- -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
-
- -DVTK_ANDROID_BUILD=OFF
- -DVTK_IOS_BUILD=OFF
-
- -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
- # we use the pre-built documentation and install these with USE=doc
- -DVTK_BUILD_DOCUMENTATION=OFF
- -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
-
- # no package in the tree: https://github.com/LLNL/conduit
- -DVTK_ENABLE_CATALYST=OFF
- -DVTK_ENABLE_KITS=OFF
- -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
- # defaults to ON: USE flag for this?
- -DVTK_ENABLE_REMOTE_MODULES=OFF
-
- # disable fetching files during build
- -DVTK_FORBID_DOWNLOADS=ON
-
- -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_StandAlone="YES"
- -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
- -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
-
- -DVTK_INSTALL_SDK=ON
-
- -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
- -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
- -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
- -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
- -DVTK_MODULE_ENABLE_VTK_expat="WANT"
- -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
- -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
- -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
- -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
- -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
- -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
- -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
- -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
- -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
- -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
- -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
- -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
- -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
- -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
- -DVTK_MODULE_ENABLE_VTK_png="WANT"
- -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
- -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
- -DVTK_MODULE_ENABLE_VTK_theora="WANT"
- -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
- -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
- -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
- -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
-
- # not packaged in Gentoo
- -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
- -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
- -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
-
- -DVTK_RELOCATABLE_INSTALL=ON
-
- -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
- -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
- -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
-
- -DVTK_UNIFIED_INSTALL_TREE=ON
-
- -DVTK_USE_CUDA=$(usex cuda ON OFF)
- # use system libraries where possible
- -DVTK_USE_EXTERNAL=ON
- # avoid finding package from either ::guru or ::sci
- -DVTK_USE_MEMKIND=OFF
- -DVTK_USE_MPI=$(usex mpi ON OFF)
- -DVTK_USE_TK=$(usex tk ON OFF)
- -DVTK_USE_X=ON
-
- -DVTK_WHEEL_BUILD=OFF
-
- -DVTK_WRAP_JAVA=$(usex java ON OFF)
- -DVTK_WRAP_PYTHON=$(usex python ON OFF)
- )
-
- if use all-modules; then
- mycmakeargs+=(
- # no package in ::gentoo
- -DVTK_ENABLE_OSPRAY=OFF
- # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
- # option. Check whether we can download them clean and enable
- # them.
- -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
- -DVTK_MODULE_ENABLE_VTK_fides="NO"
- -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
- -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
- -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
-
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
-
- # available in ::guru, so avoid detection if installed
- -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
- )
- fi
-
- if use boost; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
- -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
- )
- fi
-
- # TODO: checks this on updates of nvidia-cuda-toolkit and update
- # the list of available arches if necessary, i.e. add new arches
- # once they are released at the end of the list before all.
- # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
- # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
- # as of 3.25.1 doesn't recognize these keywords.
- # FIXME: better use numbers than names?
- if use cuda; then
- local cuda_arch=
- case ${VTK_CUDA_ARCH:-native} in
- # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
- # no longer supports it
- kepler|maxwell|pascal|volta|turing|ampere|all)
- cuda_arch=${VTK_CUDA_ARCH}
- ;;
-# native)
-# ewarn "If auto detection fails for you, please try and export the"
-# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
-# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
-# cuda_arch=native
-# ;;
- *)
- eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
- eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
- die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
- ;;
- esac
- ewarn "Using CUDA architecture '${cuda_arch}'"
-
- mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
- fi
-
- if use debug; then
- mycmakeargs+=(
- -DVTK_DEBUG_LEAKS=ON
- -DVTK_DEBUG_MODULE=ON
- -DVTK_DEBUG_MODULE_ALL=ON
- -DVTK_ENABLE_SANITIZER=ON
- -DVTK_EXTRA_COMPILER_WARNINGS=ON
- -DVTK_WARN_ON_DISPATCH_FAILURE=ON
- )
- if use rendering; then
- mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
- fi
- fi
-
- if use examples || use test; then
- mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
- fi
-
- if use ffmpeg; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
- fi
- fi
-
- if use gdal; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
- )
- fi
-
- if use imaging; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
- -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
- )
- use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
- fi
-
- if ! use java && ! use python; then
- # defaults to ON
- mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
- fi
-
- if use java; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_JARDIR="share/${PN}"
- -DVTK_ENABLE_WRAPPING=ON
- -DVTK_MODULE_ENABLE_VTK_Java="WANT"
- )
- fi
-
- if use mpi; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_MPI="YES"
- -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
- -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
- -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
- -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
- -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
- )
- use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
- use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
- if use rendering; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
- )
- fi
- use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
- else
- mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
- fi
-
- use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
- use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
- use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
- use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
-
- if use python; then
- mycmakeargs+=(
- -DPython3_EXECUTABLE="${PYTHON}"
- -DVTK_ENABLE_WRAPPING=ON
- -DVTK_MODULE_ENABLE_VTK_Python="WANT"
- -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
- -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
- -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
- )
- use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
- fi
-
- if use qt5 && use qt6; then
- # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
- -DVTK_QT_VERSION="5"
- )
- else
- if use qt5; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
- -DVTK_QT_VERSION="5"
- )
- elif use qt6; then
- mycmakeargs+=(
- -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
- -DVTK_QT_VERSION="6"
- )
- else
- mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
- fi
- fi
-
- if use qt5 || use qt6; then
- mycmakeargs+=(
- -DVTK_GROUP_ENABLE_Qt:STRING="YES"
- -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
- -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
- )
- if use mysql || use postgres; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
- fi
- if use rendering; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
- fi
- if use views; then
- mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
- fi
- fi
-
- if use rendering; then
- mycmakeargs+=(
- -DVTK_ENABLE_OSPRAY=OFF
-
- -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
- -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
- -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
- -DVTK_MODULE_ENABLE_VTK_glew="WANT"
- -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
-
- -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
- )
- use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
- use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
- use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
- fi
-
- # Testing has been changed in 9.2.5: it is now allowed without
- # requiring to download, if the data files are available locally!
- if use test; then
- mycmakeargs+=(
- -DVTK_BUILD_TESTING=ON
- # disable fetching data files for the default 'all' target
- -DVTK_DATA_EXCLUDE_FROM_ALL=ON
-
- # requested even if all use flags are off
- -DVTK_MODULE_ENABLE_VTK_octree="WANT"
- -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
-
- # available in ::guru, so avoid detection if installed
- -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
- )
- else
- mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
- fi
-
- # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
- # sequential, stdthread, openmp and tbb. AFAICS all of them can be
- # enabled at the same time. Sequential and Stdthread are enabled by
- # default. The default selected type for the build is sequential.
- # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
- # this is dependent on the actual scenario where threading is used.
- if use tbb; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
- elif use openmp; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
- elif use threads; then
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
- else
- mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
- fi
-
- use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
-
- if use views; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
- )
- fi
-
- if use vtkm; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
- -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
-
- -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
- -DVTKm_Vectorization=native
- )
- fi
-
- if use web; then
- mycmakeargs+=(
- -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
- -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
- )
- use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
- fi
-
- use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
-
- cmake_src_configure
-}
-
-src_compile() {
- use test && cmake_build VTKData
- cmake_src_compile
-}
-
-# FIXME: avoid nonfatal?
-# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
-src_test() {
-# nonfatal virtx cmake_src_test
- virtx cmake_src_test
-}
-
-src_install() {
- use web && webapp_src_preinst
-
- # Stop web page images from being compressed
- if use doc; then
- HTML_DOCS=( "${WORKDIR}/html/." )
- fi
-
- cmake_src_install
-
- use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
-
- # install examples
- if use examples; then
- einfo "Installing examples"
- mv -v {E,e}xamples || die
- dodoc -r examples
- docompress -x /usr/share/doc/${PF}/examples
-
- einfo "Installing datafiles"
- insinto /usr/share/${PN}/data
- doins -r "${S}/.ExternalData"
- fi
-
- use python && python_optimize
-
- use web && webapp_src_install
-}
-
-# webapp.eclass exports these but we want it optional #534036
-pkg_postinst() {
- use web && webapp_pkg_postinst
-
- if use examples; then
- einfo "You can get more and updated examples at"
- einfo "https://kitware.github.io/vtk-examples/site/"
- fi
-}
-
-pkg_prerm() {
- use web && webapp_pkg_prerm
-}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-05-07 13:12 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2024-05-07 13:12 UTC (permalink / raw
To: gentoo-commits
commit: ea4b9072db6a8eb676d4b076b6531e2b52524cac
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue May 7 13:11:24 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue May 7 13:11:24 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea4b9072
sci-libs/vtk: revert "sci-libs/vtk: drop 9.2.5, 9.2.6-r1"
This reverts commit 4b6bf5d12417a8719f34364098513f25a81be783.
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/Manifest | 12 +
sci-libs/vtk/vtk-9.2.5.ebuild | 746 ++++++++++++++++++++++++++++++++++++++
sci-libs/vtk/vtk-9.2.6-r1.ebuild | 747 +++++++++++++++++++++++++++++++++++++++
3 files changed, 1505 insertions(+)
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index 778c263572f8..51b1e50afdd1 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -1,6 +1,18 @@
+DIST VTK-9.2.5.tar.gz 53807732 BLAKE2B 8d25ec8f23c12868b2321eca84644dbf44704e58b7b79b2fd3a1260f7a240a78e4007fd99633ba93359103afc8ec00c7fa84f62778aed3d3361e1774a87b5626 SHA512 b1f225fb2589449621fd32bb0fc3f4817478d972cdccf7a9a376f1c17e93d5bd0a0511cdaa8587568a4baac9dfa8b5ffb9041442e221cd98d8f55e9981b6fcbf
+DIST VTK-9.2.6.tar.gz 53810904 BLAKE2B e3f9736a9b38415e0edd4b4c4bfe83aa154221c3c2c582e527996f88386b1b4d7864ddd2a364c0e83596ff45902cb7cde548ac3a4eebe06c2e43925c2608c4d3 SHA512 f2328caae959d583299b7fd57205f3dd76f87c8c1ee78653e85d44cab085295bf7bf88b3f6a2b960a57df96ccb32049337ebccb067ecde6d84d25eda636196bc
DIST VTK-9.3.0.tar.gz 99932810 BLAKE2B 59c2cdfe1c2525ac0f89df77a668783d928b55d2e72b42df45ea9b789da1bb150d52ce4108f2bc39cb8840cdd1998f57d3aedf96c72e402f6115d9efeebf4486 SHA512 2722dc8186779df1af5c534f26b20186ea33cb3bca2cef8cb333542b12e738382616e26e8d4d0341cb98c30403f8a896d77ddb04adb07e26d0d548c4a34b7d2f
+DIST VTKData-9.2.5.tar.gz 594016050 BLAKE2B 7f03f5640ee648275a9771f990f98a3b5dfee10c0e291b353e6f067a098d50e2653c577b7c9c4e19c1d554e14469968014d1dfe9e70a91ecbff75397a53c9be9 SHA512 c06264c10bf78943753e58b9cb034d56b65570995741020dc58d5703525cdd4842d680fb6e185fa8fc39b72225ea6b29d8d632c0327f4145a7e2b79f3f702ec3
+DIST VTKData-9.2.6.tar.gz 594029678 BLAKE2B b3d6990a8098d9bec02a031b6d804049ce649bcd58fbcd74001e893ba41159e49f4dea74c5957737098a39a399d347b3bc65db4feadf152dd3fb8e705da16eb4 SHA512 5c5f2b365777733180a63daff224da7055e1c2911eb5e4efda26e38b9ac01cb8e886cf7e71c45ac83347642caf1786e72bb469c22954ffbbb6e2c317fc6b4080
DIST VTKData-9.3.0.tar.gz 612388942 BLAKE2B 66d73ddaf5f2ddf52cf5c6dda5a918a86ae630df207983534478c92a66c39e38b1f4abfb93900b36899a93ad0e26260763573e925bd128c1646a1bc3bef8c54d SHA512 385d609c2adc1746c073690b58a3fc25e496946c03f08e6c9e0a69ee406cee447e66d267986c3e5ba9006dd1cb0015b68134bb3c375ae41aef8f3b1e0d923d51
+DIST VTKDataFiles-9.2.5.tar.gz 609038837 BLAKE2B e6a5aa5a865664cf407914c9598497f6304b914748ce9d9145b5b7d53f5897b4056b6f7615bb8221c9a9747caf13ba632e21b060b1c8963bb7d6b257bb1da559 SHA512 c0cf7e0fb79f626e25946f1154d9e4c3e7ec995a823a01fc9638976f89af26ae8978a5b6c8a78d62f42f7f81b5fbe0cddc6afc5836c214f3dcaddb917a1ccc79
+DIST VTKDataFiles-9.2.6.tar.gz 609045751 BLAKE2B c8a4a8472dcc05f5b1d35c8f6923b4ed2e7adb593a3037ae7673a5e674583ef9ccc5bc1ec8cf29e87fd5b168c0bba5ed27b89c51fe2e5da432ef5d50e415af94 SHA512 f7c104641d25126956a50671934c10b25589e435d7cce6a5107c8dcf83a81f48ed3ae8a325b635f341a5a47579f9200689aa5eb34fe0d1c37acddfeedd33cd01
DIST VTKDataFiles-9.3.0.tar.gz 628646039 BLAKE2B c2a4e875536c0b06f1edc8a8df17defbe1038067d7a04fc07e71ea49cad46139ef25f64d4b434a095ced16a7ff39d5346d34c528c099ea2e126c9f29afe92482 SHA512 c6788acfa790ce6b02aa5545fa4e411d00896b7542416c18b5e5955909f26a8fab9267e44db1c2a86f95f7a7f093695453f3fd0ec4e2c9a73449f9caf3fc09d5
+DIST VTKLargeData-9.2.5.tar.gz 247523496 BLAKE2B edc785e271ba605c730b9c8d9d62d2d95d818ebf18e4b20468c247187720a27897ecbf701e1eff61ba135545e6ea8f573ef120206813ee5ca11be33d8c5ff728 SHA512 7a994024aa42b48d3633cdcc528d89a2e7e07bcc47d01a0001578720dbc2eb991b90dc2f9caafe8f26a1f10185efb1bc2c0506f799da2b96e63ba08cb564117d
+DIST VTKLargeData-9.2.6.tar.gz 247521022 BLAKE2B ee6e5f627a5cb96aac6a53b7ff14d4a40f1e243a095c7d145412d899ab9d509af5a62ab889fc48c96ff78359443afbeecfa70cb937affdad7225071374b28bec SHA512 f0b71baa4e346746e186c6a0cc93588d227b91cd4993ee6afe15708006250b0b3aa9447822845e01432728c12af56c68a213831b6dc809807ca341ff6912f55f
DIST VTKLargeData-9.3.0.tar.gz 247520869 BLAKE2B e01f3d0997d0b328d6c5909d6b891443c1246bdbc36aa978004a1d4bb2770f7923afed2c0d78f7844aae95e067425b9dd25a1c47601c8137ba0a8a958b708cab SHA512 d87eb0fb4ce27ae9f4363c54bb711e66c5d2dbcdf508cb5fae9fcc1574407df2816f29d20037297b834440cd8a54fcf8e1d6db14700054f057bff2fe48404d33
+DIST VTKLargeDataFiles-9.2.5.tar.gz 247506616 BLAKE2B 45cd462a11dfa65260a5aa178b2004636eb8ec000af9103fd2fc64ca55b0f607cdf39c40f5f0a9ef843b7b2e468e0f84a34dafb8b8655efce5c8d39c80961422 SHA512 da96e4f1d0e21bc597832d8cd0730dcdd8a8f7d6c1f41f74ec41a7a1d0b2a2d61e86bcb5fade7d3210b9d66cae975b537e25280767e37fe08e0965b3e98c1cae
+DIST VTKLargeDataFiles-9.2.6.tar.gz 247505945 BLAKE2B dafec016a17bc4371972e85fe95e5032f385ef090ca7f3cc4e060976798c18015e34d74aa008a0532a37b3a51df406886a1d70c2eae18f6092a1c16cc861a81a SHA512 5266d7761987d651e1185e7a8fcc556634e129bb2dab892f8bba0e408a950f38c3f96c521a2079bfdc16a6cefb7b4cebc0b63aea945c4f3f0b6a99c55d638197
DIST VTKLargeDataFiles-9.3.0.tar.gz 247503839 BLAKE2B 68007af36148eaae43fc0fd75b9f8d3b165c977b7bc44efa4ce7077dc4977514f49a4d7d5e4a9e43fc9dec6562d741bdee5df87efa285b3361f865023da14f55 SHA512 f7def947ff492acbfdaa3d360064c42fdd3fedab27fd5d7bed1dbf8054b814cc8843ba0fed7078926648d1e8949235b877de97747be079ea478b79558975e6ea
+DIST vtkDocHtml-9.2.5.tar.gz 158865725 BLAKE2B ccfb6276955bda567e7f2b6fdc5e3e601766bae0314821c243a3d009e1557c5732bfbab59358670c4bc6cd598ba80c284971763e5279bc53c37d954ec30fcc03 SHA512 7901e9fb987ef3b88e8c507ecc7538b551c81d04a9cc65a84ff43b40dc1aeca2a694dd9842a030979a1370873b9fed0c8746a0634b486566086d7784a19181d6
+DIST vtkDocHtml-9.2.6.tar.gz 158833419 BLAKE2B 04686ee0373191fec454738b5e745f3f6d913120dd55727732ab31a021eeaf1395e6a39ee0e2a943c80dc9d32a929dacfc1325afad5a412964dabb4eda32c898 SHA512 e72cfda5cfeb3df0f915f6515bbd34bcb32052af940760cfb1c9845a5c0a81fae38837fb2e192eb95446cd27b65b37b79263f5396631e4665c9d8c57455dcf43
DIST vtkDocHtml-9.3.0.tar.gz 165538725 BLAKE2B 27874998679090d5442ecb3a394b53db05a0215cfee9f912bd01af1d5567efc51b4f56dacb960401195da4f3d385b335bbefc922a45d0199c99d619df0941f08 SHA512 8bf9cc87c4653a65ccc39d88d70b421a7b4353986d380cbf558cbf6e8a96435695a5d54aa7ce5bb1240cb46ca0fd9225a51183a39d1af1101d3f2876a2afc10b
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
new file mode 100644
index 000000000000..7460dc7f2461
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -0,0 +1,746 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+# - replace usex by usev where applicable
+
+PYTHON_COMPAT=( python3_{9..11} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# TODO: Like to simplifiy these. Mostly the flags related to Groups.
+IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
+ java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
+ qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? (
+ boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
+ postgres rendering views
+ )
+ cuda? ( video_cards_nvidia vtkm )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( rendering )
+ qt6? ( rendering )
+ sdl? ( rendering )
+ tk? ( python rendering )
+ web? ( python )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
+# and need to be available when VTK consumers configure the dependencies.
+RDEPEND="
+ app-arch/lz4:=
+ app-arch/xz-utils
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ dev-db/sqlite:3
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/jsoncpp:=
+ >=dev-libs/libfmt-8.1.1:=
+ dev-libs/libxml2:2
+ dev-libs/libzip:=
+ <dev-libs/pegtl-3
+ dev-libs/pugixml
+ dev-libs/utfcpp
+ media-libs/freetype
+ media-libs/libjpeg-turbo
+ >=media-libs/libharu-2.4.2:=
+ media-libs/libogg
+ media-libs/libpng:=
+ media-libs/libtheora
+ media-libs/tiff:=
+ >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
+ sci-libs/hdf5:=[mpi=]
+ sci-libs/proj:=
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ freetype? ( media-libs/fontconfig )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ las? ( sci-geosciences/liblas )
+ mpi? ( virtual/mpi[cxx,romio] )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ openvdb? ( media-gfx/openvdb:= )
+ pdal? ( <sci-libs/pdal-2.6.0:= )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,sql,widgets]
+ dev-qt/qtdeclarative:6[opengl]
+ dev-qt/qtshadertools:6
+ x11-libs/libxkbcommon
+ )
+ sdl? ( media-libs/libsdl2 )
+ rendering? (
+ media-libs/glew:=
+ virtual/opengl
+ x11-libs/gl2ps
+ x11-libs/libICE
+ x11-libs/libXcursor
+ x11-libs/libXext
+ )
+ tbb? ( dev-cpp/tbb:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ <dev-libs/pegtl-3
+ dev-libs/utfcpp
+ test? (
+ media-libs/glew
+ x11-libs/libXcursor
+ rendering? ( media-libs/freeglut )
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
+ "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
+ "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
+ "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
+ "${FILESDIR}"/${PN}-9.2.5-Fix-compilation-error-with-CUDA-12.patch
+ "${FILESDIR}"/${PN}-9.2.5-More-include-cstdint-to-compile-with-gcc13.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+vtk_check_reqs() {
+ local dsk=4096
+ local mem=$(( $(usex cuda 7168 0) ))
+
+ dsk=$(( $(usex doc 3072 0) + ${dsk} ))
+ dsk=$(( $(usex examples 3072 0) + ${dsk} ))
+ dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
+
+ # In case users are not aware of the extra NINJAOPTS, check
+ # for the more common MAKEOPTS, in case NINJAOPTS is empty
+ local jobs=1
+ if [[ -n "${NINJAOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
+ else
+ if [[ -n "${MAKEOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
+ fi
+ fi
+ mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
+
+ use cuda && export CHECKREQS_MEMORY=${mem}M
+ export CHECKREQS_DISK_BUILD=${dsk}M
+
+ check-reqs_pkg_${EBUILD_PHASE}
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+# Note: The following libraries are marked as internal by kitware
+# and can currently not unbundled:
+# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
+# vtkm, xdmf{2,3}, zfp
+# TODO: cli11 (::guru), exprtk, ioss
+# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
+# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
+# libraries avoids automagic builds, so deletion is not needed to catch these.
+src_prepare() {
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+# TODO: check these and consider to use them
+# VTK_BUILD_SCALED_SOA_ARRAYS
+# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
+
+ -DVTK_ANDROID_BUILD=OFF
+ -DVTK_IOS_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ # no package in the tree: https://github.com/LLNL/conduit
+ -DVTK_ENABLE_CATALYST=OFF
+ -DVTK_ENABLE_KITS=OFF
+ -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
+ # defaults to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ # disable fetching files during build
+ -DVTK_FORBID_DOWNLOADS=ON
+
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="YES"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
+
+ -DVTK_INSTALL_SDK=ON
+
+ -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
+ -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
+ -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
+ -DVTK_MODULE_ENABLE_VTK_expat="WANT"
+ -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
+ -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
+ -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
+ -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
+ -DVTK_MODULE_ENABLE_VTK_png="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
+ -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
+ -DVTK_MODULE_ENABLE_VTK_theora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
+ -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
+
+ # not packaged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
+ -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
+ -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
+
+ -DVTK_UNIFIED_INSTALL_TREE=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ # avoid finding package from either ::guru or ::sci
+ -DVTK_USE_MEMKIND=OFF
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=ON
+
+ -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ # no package in ::gentoo
+ -DVTK_ENABLE_OSPRAY=OFF
+ # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
+ # option. Check whether we can download them clean and enable
+ # them.
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
+ -DVTK_MODULE_ENABLE_VTK_fides="NO"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
+
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ # TODO: checks this on updates of nvidia-cuda-toolkit and update
+ # the list of available arches if necessary, i.e. add new arches
+ # once they are released at the end of the list before all.
+ # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
+ # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
+ # as of 3.25.1 doesn't recognize these keywords.
+ # FIXME: better use numbers than names?
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use debug; then
+ mycmakeargs+=(
+ -DVTK_DEBUG_LEAKS=ON
+ -DVTK_DEBUG_MODULE=ON
+ -DVTK_DEBUG_MODULE_ALL=ON
+ -DVTK_ENABLE_SANITIZER=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_WARN_ON_DISPATCH_FAILURE=ON
+ )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
+ fi
+ fi
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
+ fi
+ fi
+
+ if use gdal; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
+ )
+ fi
+
+ if use imaging; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Java="WANT"
+ )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="YES"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+ )
+ use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
+ )
+ fi
+ use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
+ fi
+
+ use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
+ use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
+ use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
+
+ if use python; then
+ mycmakeargs+=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Python="WANT"
+ -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
+ fi
+
+ if use qt5 && use qt6; then
+ # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ else
+ if use qt5; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ elif use qt6; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
+ -DVTK_QT_VERSION="6"
+ )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
+ fi
+ fi
+
+ if use qt5 || use qt6; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_Qt:STRING="YES"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
+ )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
+ -DVTK_MODULE_ENABLE_VTK_glew="WANT"
+ -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
+
+ -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
+ )
+ use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
+ use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
+ use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
+ fi
+
+ # Testing has been changed in 9.2.5: it is now allowed without
+ # requiring to download, if the data files are available locally!
+ if use test; then
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ # disable fetching data files for the default 'all' target
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+
+ # requested even if all use flags are off
+ -DVTK_MODULE_ENABLE_VTK_octree="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ else
+ mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
+ fi
+
+ # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
+ # sequential, stdthread, openmp and tbb. AFAICS all of them can be
+ # enabled at the same time. Sequential and Stdthread are enabled by
+ # default. The default selected type for the build is sequential.
+ # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
+ # this is dependent on the actual scenario where threading is used.
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ elif use openmp; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
+ elif use threads; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
+
+ if use views; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
+ )
+ fi
+
+ if use vtkm; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
+
+ -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
+ -DVTKm_Vectorization=native
+ )
+ fi
+
+ if use web; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
+ )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ cmake_src_configure
+}
+
+src_compile() {
+ use test && cmake_build VTKData
+ cmake_src_compile
+}
+
+# FIXME: avoid nonfatal?
+# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
+src_test() {
+# nonfatal virtx cmake_src_test
+ virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ use python && python_optimize
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
diff --git a/sci-libs/vtk/vtk-9.2.6-r1.ebuild b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
new file mode 100644
index 000000000000..bb87bdb1068e
--- /dev/null
+++ b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
@@ -0,0 +1,747 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# TODO:
+# - add USE flag for remote modules? Those modules can be downloaded
+# properly before building.
+# - replace usex by usev where applicable
+
+PYTHON_COMPAT=( python3_{9..11} )
+WEBAPP_OPTIONAL=yes
+WEBAPP_MANUAL_SLOT=yes
+
+inherit check-reqs cmake cuda java-pkg-opt-2 multiprocessing python-single-r1 toolchain-funcs virtualx webapp
+
+# Short package version
+MY_PV="$(ver_cut 1-2)"
+
+DESCRIPTION="The Visualization Toolkit"
+HOMEPAGE="https://www.vtk.org/"
+SRC_URI="
+ https://www.vtk.org/files/release/${MY_PV}/VTK-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKDataFiles-${PV}.tar.gz
+ doc? ( https://www.vtk.org/files/release/${MY_PV}/vtkDocHtml-${PV}.tar.gz )
+ examples? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+ test? (
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeData-${PV}.tar.gz
+ https://www.vtk.org/files/release/${MY_PV}/VTKLargeDataFiles-${PV}.tar.gz
+ )
+"
+S="${WORKDIR}/VTK-${PV}"
+
+LICENSE="BSD LGPL-2"
+SLOT="0/${MY_PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
+# TODO: Like to simplifiy these. Mostly the flags related to Groups.
+IUSE="all-modules boost cuda debug doc examples ffmpeg freetype gdal imaging
+ java las +logging mpi mysql odbc openmp openvdb pdal postgres python qt5
+ qt6 +rendering sdl tbb test +threads tk video_cards_nvidia views vtkm web"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="
+ all-modules? (
+ boost ffmpeg freetype gdal imaging las mysql odbc openvdb pdal
+ postgres rendering views
+ )
+ cuda? ( video_cards_nvidia vtkm )
+ java? ( rendering )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( rendering )
+ qt6? ( rendering )
+ sdl? ( rendering )
+ tk? ( python rendering )
+ web? ( python )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+# eigen, nlohmann_json, pegtl and utfcpp are referenced in the cmake files
+# and need to be available when VTK consumers configure the dependencies.
+RDEPEND="
+ app-arch/lz4:=
+ app-arch/xz-utils
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ dev-db/sqlite:3
+ dev-libs/double-conversion:=
+ dev-libs/expat
+ dev-libs/icu:=
+ dev-libs/jsoncpp:=
+ >=dev-libs/libfmt-8.1.1:=
+ dev-libs/libxml2:2
+ dev-libs/libzip:=
+ <dev-libs/pegtl-3
+ dev-libs/pugixml
+ dev-libs/utfcpp
+ media-libs/freetype
+ media-libs/libjpeg-turbo
+ >=media-libs/libharu-2.4.2:=
+ media-libs/libogg
+ media-libs/libpng:=
+ media-libs/libtheora
+ media-libs/tiff:=
+ >=sci-libs/cgnslib-4.1.1:=[hdf5,mpi=]
+ sci-libs/hdf5:=[mpi=]
+ sci-libs/proj:=
+ sci-libs/netcdf:=[mpi=]
+ sys-libs/zlib
+ boost? ( dev-libs/boost:=[mpi?] )
+ cuda? ( dev-util/nvidia-cuda-toolkit:= )
+ ffmpeg? ( media-video/ffmpeg:= )
+ freetype? ( media-libs/fontconfig )
+ gdal? ( sci-libs/gdal:= )
+ java? ( >=virtual/jdk-1.8:* )
+ las? ( sci-geosciences/liblas )
+ mpi? ( virtual/mpi[cxx,romio] )
+ mysql? ( dev-db/mariadb-connector-c )
+ odbc? ( dev-db/unixODBC )
+ openvdb? ( media-gfx/openvdb:= )
+ pdal? ( <sci-libs/pdal-2.6.0:= )
+ postgres? ( dev-db/postgresql:= )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep 'mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )')
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtopengl:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsql:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? (
+ dev-qt/qtbase:6[gui,opengl,sql,widgets]
+ dev-qt/qtdeclarative:6[opengl]
+ dev-qt/qtshadertools:6
+ x11-libs/libxkbcommon
+ )
+ sdl? ( media-libs/libsdl2 )
+ rendering? (
+ media-libs/glew:=
+ virtual/opengl
+ x11-libs/gl2ps
+ x11-libs/libICE
+ x11-libs/libXcursor
+ x11-libs/libXext
+ )
+ tbb? ( dev-cpp/tbb:= )
+ tk? ( dev-lang/tk:= )
+ video_cards_nvidia? ( x11-drivers/nvidia-drivers[tools,static-libs] )
+ views? (
+ x11-libs/libICE
+ x11-libs/libXext
+ )
+ web? ( ${WEBAPP_DEPEND} )
+"
+
+# for <pegtl-3 dependency see
+# https://discourse.vtk.org/t/compilation-errors-related-to-pegtl-proj/5929
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/eigen
+ dev-cpp/nlohmann_json
+ <dev-libs/pegtl-3
+ dev-libs/utfcpp
+ test? (
+ media-libs/glew
+ x11-libs/libXcursor
+ rendering? ( media-libs/freeglut )
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.2.2-vtkGeometryFilter-add-missing-mutex-header-file.patch
+ "${FILESDIR}"/${PN}-9.2.2-VTKm-respect-user-CXXFLAGS.patch
+ "${FILESDIR}"/${PN}-9.2.2-link-with-glut-library-for-freeglut.patch
+ "${FILESDIR}"/${PN}-9.2.5-Add-include-cstdint-to-compile-with-gcc-13.patch
+ "${FILESDIR}"/${PN}-9.2.5-Fix-compilation-error-with-CUDA-12.patch
+ "${FILESDIR}"/${PN}-9.2.5-More-include-cstdint-to-compile-with-gcc13.patch
+ "${FILESDIR}"/vtk-9.2.6-Java21.patch
+)
+
+DOCS=( CONTRIBUTING.md README.md )
+
+vtk_check_reqs() {
+ local dsk=4096
+ local mem=$(( $(usex cuda 7168 0) ))
+
+ dsk=$(( $(usex doc 3072 0) + ${dsk} ))
+ dsk=$(( $(usex examples 3072 0) + ${dsk} ))
+ dsk=$(( $(usex cuda 8192 0) + ${dsk} ))
+
+ # In case users are not aware of the extra NINJAOPTS, check
+ # for the more common MAKEOPTS, in case NINJAOPTS is empty
+ local jobs=1
+ if [[ -n "${NINJAOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${NINJAOPTS}" "$(get_nproc)")
+ else
+ if [[ -n "${MAKEOPTS}" ]]; then
+ jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
+ fi
+ fi
+ mem=$(( ${mem} * $(( ${jobs} > 4 ? 4 : ${jobs} )) ))
+
+ use cuda && export CHECKREQS_MEMORY=${mem}M
+ export CHECKREQS_DISK_BUILD=${dsk}M
+
+ check-reqs_pkg_${EBUILD_PHASE}
+}
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && has openmp && tc-check-openmp
+
+ if [[ $(tc-is-gcc) && $(gcc-majorversion) = 11 ]] && use cuda ; then
+ # FIXME: better use eerror?
+ ewarn "GCC 11 is know to fail building with CUDA support in some cases."
+ ewarn "See bug #820593"
+ fi
+
+ if use qt6 && use qt5; then
+ ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
+ fi
+
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
+ vtk_check_reqs
+
+ use java && java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+ use web && webapp_pkg_setup
+}
+
+# Note: The following libraries are marked as internal by kitware
+# and can currently not unbundled:
+# diy2, exodusII, fides, h5part, kissfft, loguru, verdict, vpic,
+# vtkm, xdmf{2,3}, zfp
+# TODO: cli11 (::guru), exprtk, ioss
+# Note: As of v9.2.2 we no longer drop bundled libraries, when using system
+# libraries. This just saves a little space. CMake logic of VTK on ThirdParty
+# libraries avoids automagic builds, so deletion is not needed to catch these.
+src_prepare() {
+ if use doc; then
+ einfo "Removing .md5 files from documents."
+ rm -f "${WORKDIR}"/html/*.md5 || die "Failed to remove superfluous hashes"
+ sed -e "s|\${VTK_BINARY_DIR}/Utilities/Doxygen/doc|${WORKDIR}|" \
+ -i Utilities/Doxygen/CMakeLists.txt || die
+ fi
+
+ cmake_src_prepare
+
+ if use cuda; then
+ cuda_add_sandbox -w
+ cuda_src_prepare
+ fi
+
+ if use test; then
+ ebegin "Copying data files to ${BUILD_DIR}"
+ mkdir -p "${BUILD_DIR}/ExternalData" || die
+ pushd "${BUILD_DIR}/ExternalData" >/dev/null || die
+ ln -sf ../../VTK-${PV}/.ExternalData/README.rst . || die
+ ln -sf ../../VTK-${PV}/.ExternalData/SHA512 . || die
+ popd >/dev/null || die
+ eend "$?"
+ fi
+}
+
+# TODO: check these and consider to use them
+# VTK_BUILD_SCALED_SOA_ARRAYS
+# VTK_DISPATCH_{AOS,SOA,TYPED}_ARRAYS
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_LICENSEDIR="share/${PN}/licenses"
+
+ -DVTK_ANDROID_BUILD=OFF
+ -DVTK_IOS_BUILD=OFF
+
+ -DVTK_BUILD_ALL_MODULES=$(usex all-modules ON OFF)
+ # we use the pre-built documentation and install these with USE=doc
+ -DVTK_BUILD_DOCUMENTATION=OFF
+ -DVTK_BUILD_EXAMPLES=$(usex examples ON OFF)
+
+ # no package in the tree: https://github.com/LLNL/conduit
+ -DVTK_ENABLE_CATALYST=OFF
+ -DVTK_ENABLE_KITS=OFF
+ -DVTK_ENABLE_LOGGING=$(usex logging ON OFF)
+ # defaults to ON: USE flag for this?
+ -DVTK_ENABLE_REMOTE_MODULES=OFF
+
+ # disable fetching files during build
+ -DVTK_FORBID_DOWNLOADS=ON
+
+ -DVTK_GROUP_ENABLE_Imaging=$(usex imaging "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Rendering=$(usex rendering "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_StandAlone="YES"
+ -DVTK_GROUP_ENABLE_Views=$(usex views "YES" "DEFAULT")
+ -DVTK_GROUP_ENABLE_Web=$(usex web "YES" "DEFAULT")
+
+ -DVTK_INSTALL_SDK=ON
+
+ -DVTK_MODULE_ENABLE_VTK_IOCGNSReader="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOExportPDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOLAS=$(usex las "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IONetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOggTheora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOOpenVDB=$(usex openvdb "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOSQL="WANT" # sqlite
+ -DVTK_MODULE_ENABLE_VTK_IOPDAL=$(usex pdal "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_IOXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOXMLParser="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeType=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=$(usex freetype "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_cgns="WANT"
+ -DVTK_MODULE_ENABLE_VTK_doubleconversion="WANT"
+ -DVTK_MODULE_ENABLE_VTK_eigen="WANT"
+ -DVTK_MODULE_ENABLE_VTK_expat="WANT"
+ -DVTK_MODULE_ENABLE_VTK_fmt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_freetype="WANT"
+ -DVTK_MODULE_ENABLE_VTK_hdf5="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jpeg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_jsoncpp="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libharu="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libproj="WANT"
+ -DVTK_MODULE_ENABLE_VTK_libxml2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lz4="WANT"
+ -DVTK_MODULE_ENABLE_VTK_lzma="WANT"
+ -DVTK_MODULE_ENABLE_VTK_netcdf="WANT"
+ -DVTK_MODULE_ENABLE_VTK_nlohmannjson="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ogg="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pegtl="WANT"
+ -DVTK_MODULE_ENABLE_VTK_png="WANT"
+ -DVTK_MODULE_ENABLE_VTK_pugixml="WANT"
+ -DVTK_MODULE_ENABLE_VTK_sqlite="WANT"
+ -DVTK_MODULE_ENABLE_VTK_theora="WANT"
+ -DVTK_MODULE_ENABLE_VTK_tiff="WANT"
+ -DVTK_MODULE_ENABLE_VTK_utf8="WANT"
+ -DVTK_MODULE_ENABLE_VTK_vtkm=$(usex vtkm "WANT" "DEFAULT")
+ -DVTK_MODULE_ENABLE_VTK_zlib="WANT"
+
+ # not packaged in Gentoo
+ -DVTK_MODULE_USE_EXTERNAL_VTK_exprtk=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_ioss=OFF
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+
+ -DVTK_RELOCATABLE_INSTALL=ON
+
+ -DVTK_SMP_ENABLE_OPENMP=$(usex openmp ON OFF)
+ -DVTK_SMP_ENABLE_STDTHREAD=$(usex threads ON OFF)
+ -DVTK_SMP_ENABLE_TBB=$(usex tbb ON OFF)
+
+ -DVTK_UNIFIED_INSTALL_TREE=ON
+
+ -DVTK_USE_CUDA=$(usex cuda ON OFF)
+ # use system libraries where possible
+ -DVTK_USE_EXTERNAL=ON
+ # avoid finding package from either ::guru or ::sci
+ -DVTK_USE_MEMKIND=OFF
+ -DVTK_USE_MPI=$(usex mpi ON OFF)
+ -DVTK_USE_TK=$(usex tk ON OFF)
+ -DVTK_USE_X=ON
+
+ -DVTK_WHEEL_BUILD=OFF
+
+ -DVTK_WRAP_JAVA=$(usex java ON OFF)
+ -DVTK_WRAP_PYTHON=$(usex python ON OFF)
+ )
+
+ if use all-modules; then
+ mycmakeargs+=(
+ # no package in ::gentoo
+ -DVTK_ENABLE_OSPRAY=OFF
+ # TODO: some of these are tied to the VTK_ENABLE_REMOTE_MODULES
+ # option. Check whether we can download them clean and enable
+ # them.
+ -DVTK_MODULE_ENABLE_VTK_DomainsMicroscopy="NO"
+ -DVTK_MODULE_ENABLE_VTK_fides="NO"
+ -DVTK_MODULE_ENABLE_VTK_FiltersOpenTURNS="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOADIOS2="NO"
+ -DVTK_MODULE_ENABLE_VTK_IOFides="NO"
+
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenVR="NO"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenXR="NO"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ fi
+
+ if use boost; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoost="WANT"
+ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms="WANT"
+ )
+ fi
+
+ # TODO: checks this on updates of nvidia-cuda-toolkit and update
+ # the list of available arches if necessary, i.e. add new arches
+ # once they are released at the end of the list before all.
+ # See https://en.wikipedia.org/wiki/CUDA#GPUs_supported
+ # CUDA 11.8 supports Ada Lovelace and Hopper arches, but cmake,
+ # as of 3.25.1 doesn't recognize these keywords.
+ # FIXME: better use numbers than names?
+ if use cuda; then
+ local cuda_arch=
+ case ${VTK_CUDA_ARCH:-native} in
+ # we ignore fermi arch, because current nvidia-cuda-toolkit-11*
+ # no longer supports it
+ kepler|maxwell|pascal|volta|turing|ampere|all)
+ cuda_arch=${VTK_CUDA_ARCH}
+ ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
+ *)
+ eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
+ eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
+ die "Invalid CUDA architecture given: '${VTK_CUDA_ARCH}'!"
+ ;;
+ esac
+ ewarn "Using CUDA architecture '${cuda_arch}'"
+
+ mycmakeargs+=( -DVTKm_CUDA_Architecture=${cuda_arch} )
+ fi
+
+ if use debug; then
+ mycmakeargs+=(
+ -DVTK_DEBUG_LEAKS=ON
+ -DVTK_DEBUG_MODULE=ON
+ -DVTK_DEBUG_MODULE_ALL=ON
+ -DVTK_ENABLE_SANITIZER=ON
+ -DVTK_EXTRA_COMPILER_WARNINGS=ON
+ -DVTK_WARN_ON_DISPATCH_FAILURE=ON
+ )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_OPENGL_ENABLE_STREAM_ANNOTATIONS=ON )
+ fi
+ fi
+
+ if use examples || use test; then
+ mycmakeargs+=( -DVTK_USE_LARGE_DATA=ON )
+ fi
+
+ if use ffmpeg; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOFFMPEG="WANT" )
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2="WANT" )
+ fi
+ fi
+
+ if use gdal; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_GeovisGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGDAL="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOGeoJSON="WANT"
+ )
+ fi
+
+ if use imaging; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ImagingColor="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingFourier="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingGeneral="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingHybrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMath="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingMorphological="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingSources="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStatistics="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ImagingStencil="WANT"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingImage="WANT" )
+ fi
+
+ if ! use java && ! use python; then
+ # defaults to ON
+ mycmakeargs+=( -DVTK_ENABLE_WRAPPING=OFF )
+ fi
+
+ if use java; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_JARDIR="share/${PN}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Java="WANT"
+ )
+ fi
+
+ if use mpi; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_MPI="YES"
+ -DVTK_MODULE_ENABLE_VTK_IOH5part="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOMPIParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelNetCDF="WANT"
+ -DVTK_MODULE_ENABLE_VTK_IOParallelXML="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ParallelMPI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_h5part="WANT"
+ -DVTK_MODULE_USE_EXTERNAL_VTK_verdict=OFF
+ )
+ use imaging && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMPIImage="WANT" )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ParallelMPI4Py="WANT" )
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingParallelLIC="WANT"
+ )
+ fi
+ use vtkm && mycmakeargs+=( -DVTKm_ENABLE_MPI=ON )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_MPI="NO" )
+ fi
+
+ use mysql && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOMySQL="WANT" )
+ use odbc && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOODBC="WANT" )
+ use openvdb && mycmakeargs+=( -DOpenVDB_CMAKE_PATH="${ESYSROOT}/usr/$(get_libdir)/cmake/OpenVDB" )
+ use postgres && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_IOPostgreSQL="WANT" )
+
+ if use python; then
+ mycmakeargs+=(
+ -DPython3_EXECUTABLE="${PYTHON}"
+ -DVTK_ENABLE_WRAPPING=ON
+ -DVTK_MODULE_ENABLE_VTK_Python="WANT"
+ -DVTK_MODULE_ENABLE_VTK_PythonInterpreter="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WrappingPythonCore="WANT"
+ -DVTK_PYTHON_SITE_PACKAGES_SUFFIX="lib/${EPYTHON}/site-packages"
+ )
+ use rendering && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_PythonContext2D="WANT" )
+ fi
+
+ if use qt5 && use qt6; then
+ # prefer Qt5: https://wiki.gentoo.org/wiki/Project:qt/Policies
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ else
+ if use qt5; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPREFIX}/usr/$(get_libdir)/qt5/qml"
+ -DVTK_QT_VERSION="5"
+ )
+ elif use qt6; then
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_QMLDIR="${EPFREIX}/usr/$(get_libdir)/qt6/qml"
+ -DVTK_QT_VERSION="6"
+ )
+ else
+ mycmakeargs+=( -DVTK_GROUP_ENABLE_Qt="NO" )
+ fi
+ fi
+
+ if use qt5 || use qt6; then
+ mycmakeargs+=(
+ -DVTK_GROUP_ENABLE_Qt:STRING="YES"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+ -DVTK_MODULE_ENABLE_VTK_GUISupportQtQuick="WANT"
+ )
+ if use mysql || use postgres; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
+ fi
+ if use rendering; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingQt="WANT" )
+ fi
+ if use views; then
+ mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsQt="WANT" )
+ fi
+ fi
+
+ if use rendering; then
+ mycmakeargs+=(
+ -DVTK_ENABLE_OSPRAY=OFF
+
+ -DVTK_MODULE_ENABLE_VTK_IOExportGL2PS="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingAnnotation="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContext2D="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingExternal="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingGL2PSOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingHyperTreeGrid="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLOD="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingLabel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingMatplotlib="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingRayTracing="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingSceneGraph="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingUI="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolume="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeAMR="WANT"
+ -DVTK_MODULE_ENABLE_VTK_RenderingVolumeOpenGL2="WANT"
+ -DVTK_MODULE_ENABLE_VTK_gl2ps="WANT"
+ -DVTK_MODULE_ENABLE_VTK_glew="WANT"
+ -DVTK_MODULE_ENABLE_VTK_opengl="WANT"
+
+ -DVTK_USE_SDL2=$(usex sdl "YES" "NO")
+ )
+ use tk && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingTk="WANT" )
+ use views && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_ViewsContext2D="WANT" )
+ use web && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_RenderingVtkJS="WANT" )
+ fi
+
+ # Testing has been changed in 9.2.5: it is now allowed without
+ # requiring to download, if the data files are available locally!
+ if use test; then
+ mycmakeargs+=(
+ -DVTK_BUILD_TESTING=ON
+ # disable fetching data files for the default 'all' target
+ -DVTK_DATA_EXCLUDE_FROM_ALL=ON
+
+ # requested even if all use flags are off
+ -DVTK_MODULE_ENABLE_VTK_octree="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+
+ # available in ::guru, so avoid detection if installed
+ -DVTK_MODULE_USE_EXTERNAL_VTK_cli11=OFF
+ )
+ else
+ mycmakeargs+=( -DVTK_BUILD_TESTING=OFF )
+ fi
+
+ # FIXME: upstream provides 4 threading models, as of 9.1.0. These are
+ # sequential, stdthread, openmp and tbb. AFAICS all of them can be
+ # enabled at the same time. Sequential and Stdthread are enabled by
+ # default. The default selected type for the build is sequential.
+ # Assuming sequential < stdpthread < openmp < tbb wrt speed, although
+ # this is dependent on the actual scenario where threading is used.
+ if use tbb; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="TBB" )
+ elif use openmp; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="OpenMP" )
+ elif use threads; then
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="STDThread" )
+ else
+ mycmakeargs+=( -DVTK_SMP_IMPLEMENTATION_TYPE="Sequential" )
+ fi
+
+ use tk && mycmakeargs+=( -DVTK_GROUP_ENABLE_Tk="YES" )
+
+ if use views; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_ViewsCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_ViewsInfovis="WANT"
+ )
+ fi
+
+ if use vtkm; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmDataModel="WANT"
+ -DVTK_MODULE_ENABLE_VTK_AcceleratorsVTKmFilters="WANT"
+
+ -DVTKm_NO_INSTALL_README_LICENSE=ON # bug #793221
+ -DVTKm_Vectorization=native
+ )
+ fi
+
+ if use web; then
+ mycmakeargs+=(
+ -DVTK_MODULE_ENABLE_VTK_WebCore="WANT"
+ -DVTK_MODULE_ENABLE_VTK_WebGLExporter="WANT"
+ )
+ use python && mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_WebPython="WANT" )
+ fi
+
+ use java && export JAVA_HOME="${EPREFIX}/etc/java-config-2/current-system-vm"
+
+ cmake_src_configure
+}
+
+src_compile() {
+ use test && cmake_build VTKData
+ cmake_src_compile
+}
+
+# FIXME: avoid nonfatal?
+# see https://github.com/gentoo/gentoo/pull/22878#discussion_r747204043
+src_test() {
+# nonfatal virtx cmake_src_test
+ virtx cmake_src_test
+}
+
+src_install() {
+ use web && webapp_src_preinst
+
+ # Stop web page images from being compressed
+ if use doc; then
+ HTML_DOCS=( "${WORKDIR}/html/." )
+ fi
+
+ cmake_src_install
+
+ use java && java-pkg_regjar "${ED}"/usr/share/${PN}/${PN}.jar
+
+ # install examples
+ if use examples; then
+ einfo "Installing examples"
+ mv -v {E,e}xamples || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+
+ einfo "Installing datafiles"
+ insinto /usr/share/${PN}/data
+ doins -r "${S}/.ExternalData"
+ fi
+
+ use python && python_optimize
+
+ use web && webapp_src_install
+}
+
+# webapp.eclass exports these but we want it optional #534036
+pkg_postinst() {
+ use web && webapp_pkg_postinst
+
+ if use examples; then
+ einfo "You can get more and updated examples at"
+ einfo "https://kitware.github.io/vtk-examples/site/"
+ fi
+}
+
+pkg_prerm() {
+ use web && webapp_pkg_prerm
+}
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-06-01 17:23 Andrew Ammerlaan
0 siblings, 0 replies; 92+ messages in thread
From: Andrew Ammerlaan @ 2024-06-01 17:23 UTC (permalink / raw
To: gentoo-commits
commit: 41fa67dda66444f581b31223616df842ef86a855
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 1 17:22:51 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Jun 1 17:23:01 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41fa67dd
sci-libs/vtk: enable py3.12
Closes: https://bugs.gentoo.org/929788
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
sci-libs/vtk/vtk-9.3.0.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index 745cb1354799..e2f30ffb2241 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -8,7 +8,7 @@ EAPI=8
# properly before building.
# - replace usex by usev where applicable
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
WEBAPP_OPTIONAL=yes
WEBAPP_MANUAL_SLOT=yes
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-09-04 11:45 Sebastian Pipping
0 siblings, 0 replies; 92+ messages in thread
From: Sebastian Pipping @ 2024-09-04 11:45 UTC (permalink / raw
To: gentoo-commits
commit: 546ead3103af153d5e869730fe0ad642019a9c67
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 4 11:42:05 2024 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Wed Sep 4 11:42:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546ead31
sci-libs/vtk: Protect against use with >=dev-libs/expat-2.6.0
Bug: https://bugs.gentoo.org/930032
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
sci-libs/vtk/vtk-9.2.5.ebuild | 4 ++--
sci-libs/vtk/vtk-9.2.6-r1.ebuild | 4 ++--
sci-libs/vtk/vtk-9.3.0.ebuild | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5.ebuild
index 7460dc7f2461..37bb25cf01d7 100644
--- a/sci-libs/vtk/vtk-9.2.5.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -71,7 +71,7 @@ RDEPEND="
dev-cpp/nlohmann_json
dev-db/sqlite:3
dev-libs/double-conversion:=
- dev-libs/expat
+ <dev-libs/expat-2.6.0
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
diff --git a/sci-libs/vtk/vtk-9.2.6-r1.ebuild b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
index bb87bdb1068e..eaad31f63e4f 100644
--- a/sci-libs/vtk/vtk-9.2.6-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.2.6-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -71,7 +71,7 @@ RDEPEND="
dev-cpp/nlohmann_json
dev-db/sqlite:3
dev-libs/double-conversion:=
- dev-libs/expat
+ <dev-libs/expat-2.6.0
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index cc7a1a438652..1c8cd93297da 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -70,7 +70,7 @@ RDEPEND="
app-arch/xz-utils
dev-db/sqlite:3
dev-libs/double-conversion:=
- dev-libs/expat
+ <dev-libs/expat-2.6.0
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
^ permalink raw reply related [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-09-06 20:36 Eli Schwartz
0 siblings, 0 replies; 92+ messages in thread
From: Eli Schwartz @ 2024-09-06 20:36 UTC (permalink / raw
To: gentoo-commits
commit: d767aab3f077c05916d47ffdc38a09927b04298d
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 6 20:35:43 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Sep 6 20:35:43 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d767aab3
sci-libs/vtk: revbump for expat RDEPEND fix
Without this revbump, people with existing installed copies of vtk won't
see the change and will end up with broken installs.
Bug: https://bugs.gentoo.org/930032
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
sci-libs/vtk/{vtk-9.2.5.ebuild => vtk-9.2.5-r1.ebuild} | 0
sci-libs/vtk/{vtk-9.2.6-r1.ebuild => vtk-9.2.6-r2.ebuild} | 0
sci-libs/vtk/{vtk-9.3.0.ebuild => vtk-9.3.0-r1.ebuild} | 0
3 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.2.5.ebuild b/sci-libs/vtk/vtk-9.2.5-r1.ebuild
similarity index 100%
rename from sci-libs/vtk/vtk-9.2.5.ebuild
rename to sci-libs/vtk/vtk-9.2.5-r1.ebuild
diff --git a/sci-libs/vtk/vtk-9.2.6-r1.ebuild b/sci-libs/vtk/vtk-9.2.6-r2.ebuild
similarity index 100%
rename from sci-libs/vtk/vtk-9.2.6-r1.ebuild
rename to sci-libs/vtk/vtk-9.2.6-r2.ebuild
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0-r1.ebuild
similarity index 100%
rename from sci-libs/vtk/vtk-9.3.0.ebuild
rename to sci-libs/vtk/vtk-9.3.0-r1.ebuild
^ permalink raw reply [flat|nested] 92+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
@ 2024-09-07 9:15 Sam James
0 siblings, 0 replies; 92+ messages in thread
From: Sam James @ 2024-09-07 9:15 UTC (permalink / raw
To: gentoo-commits
commit: 147183f1c2ca93eaf6db4f308c94e9aa226ea7b4
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 7 09:13:22 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 7 09:15:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=147183f1
sci-libs/vtk: don't cap expat version
This reverts commit 546ead3103af153d5e869730fe0ad642019a9c67 and
d767aab3f077c05916d47ffdc38a09927b04298d as a consequence.
As I explained on the bug:
"""
This really isn't going to work either way.
If Python depends on >= expat to avoid things like bug 939045, you
soon get to a point where VTK is uninstallable if VTK has a < dep.
If it doesn't, you get runtime breakage with VTK if it has a < dep.
If VTK doesn't have a < dep, you get runtime breakage in Python as it
gets downgraded when you emerge VTK.
We should drop the < and leave VTK broken as it's the lesser evil,
and then try pull in the patch if it applies cleanlyish.
"""
So, let's do the lesser evil bit now to avoid runtime breakge
in CPython from it being downgraded.
Bug: https://bugs.gentoo.org/930032
Closes: https://bugs.gentoo.org/939211
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/vtk/{vtk-9.2.5-r1.ebuild => vtk-9.2.5-r2.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.2.6-r2.ebuild => vtk-9.2.6-r3.ebuild} | 2 +-
sci-libs/vtk/{vtk-9.3.0-r1.ebuild => vtk-9.3.0-r2.ebuild} | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sci-libs/vtk/vtk-9.2.5-r1.ebuild b/sci-libs/vtk/vtk-9.2.5-r2.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.2.5-r1.ebuild
rename to sci-libs/vtk/vtk-9.2.5-r2.ebuild
index 37bb25cf01d7..4af7d8df0261 100644
--- a/sci-libs/vtk/vtk-9.2.5-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.2.5-r2.ebuild
@@ -71,7 +71,7 @@ RDEPEND="
dev-cpp/nlohmann_json
dev-db/sqlite:3
dev-libs/double-conversion:=
- <dev-libs/expat-2.6.0
+ dev-libs/expat
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
diff --git a/sci-libs/vtk/vtk-9.2.6-r2.ebuild b/sci-libs/vtk/vtk-9.2.6-r3.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.2.6-r2.ebuild
rename to sci-libs/vtk/vtk-9.2.6-r3.ebuild
index eaad31f63e4f..9520c47ec4fd 100644
--- a/sci-libs/vtk/vtk-9.2.6-r2.ebuild
+++ b/sci-libs/vtk/vtk-9.2.6-r3.ebuild
@@ -71,7 +71,7 @@ RDEPEND="
dev-cpp/nlohmann_json
dev-db/sqlite:3
dev-libs/double-conversion:=
- <dev-libs/expat-2.6.0
+ dev-libs/expat
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
diff --git a/sci-libs/vtk/vtk-9.3.0-r1.ebuild b/sci-libs/vtk/vtk-9.3.0-r2.ebuild
similarity index 99%
rename from sci-libs/vtk/vtk-9.3.0-r1.ebuild
rename to sci-libs/vtk/vtk-9.3.0-r2.ebuild
index 1c8cd93297da..cc7a1a438652 100644
--- a/sci-libs/vtk/vtk-9.3.0-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0-r2.ebuild
@@ -70,7 +70,7 @@ RDEPEND="
app-arch/xz-utils
dev-db/sqlite:3
dev-libs/double-conversion:=
- <dev-libs/expat-2.6.0
+ dev-libs/expat
dev-libs/icu:=
dev-libs/jsoncpp:=
>=dev-libs/libfmt-8.1.1:=
^ permalink raw reply related [flat|nested] 92+ messages in thread
end of thread, other threads:[~2024-09-07 9:15 UTC | newest]
Thread overview: 92+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-15 14:42 [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2024-09-07 9:15 Sam James
2024-09-06 20:36 Eli Schwartz
2024-09-04 11:45 Sebastian Pipping
2024-06-01 17:23 Andrew Ammerlaan
2024-05-07 13:12 Andrew Ammerlaan
2024-05-07 12:52 Andrew Ammerlaan
2024-04-12 12:40 Andrew Ammerlaan
2024-04-11 9:54 Andrew Ammerlaan
2024-04-06 6:49 Arthur Zamarin
2024-03-16 16:19 Arthur Zamarin
2023-12-01 9:58 Andrew Ammerlaan
2023-11-16 15:11 Florian Schmaus
2023-06-28 21:11 Sam James
2023-06-28 21:11 Sam James
2023-03-04 13:51 Arthur Zamarin
2023-01-23 9:36 Andrew Ammerlaan
2023-01-23 9:36 Andrew Ammerlaan
2022-12-16 1:40 Sam James
2022-10-12 23:09 Sam James
2022-10-04 14:58 Joonas Niilola
2022-08-23 12:04 Andrew Ammerlaan
2022-06-26 8:49 Sam James
2022-06-26 7:11 Sam James
2022-05-19 12:12 Joonas Niilola
2022-05-18 16:58 Andrew Ammerlaan
2022-05-15 17:11 Andrew Ammerlaan
2022-04-06 17:30 Piotr Karbowski
2022-03-06 0:00 Sam James
2022-01-28 7:53 Sam James
2021-12-14 8:36 Joonas Niilola
2021-12-02 1:25 Sam James
2021-10-29 22:23 Sam James
2021-10-27 15:09 Sam James
2021-09-05 9:54 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-02 20:52 Ionen Wolkens
2021-07-17 18:18 David Seifert
2021-07-07 20:05 Ionen Wolkens
2021-06-25 13:05 Andrew Ammerlaan
2021-06-25 13:05 Andrew Ammerlaan
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-10 3:38 Sam James
2021-06-02 1:24 Sam James
2021-03-26 0:57 Michael Orlitzky
2021-02-22 18:57 Sam James
2020-12-27 0:48 Andreas Sturmlechner
2020-12-27 0:17 Andreas Sturmlechner
2020-12-26 23:46 Andreas Sturmlechner
2020-07-16 1:06 Sam James
2020-06-06 10:04 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-05 21:53 Andreas K. Hüttel
2020-06-05 21:15 Andreas K. Hüttel
2020-05-12 15:34 Matthias Maier
2020-05-12 5:58 Matthias Maier
2020-05-01 17:58 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-04-26 11:00 David Seifert
2020-04-05 19:47 Andreas Sturmlechner
2020-04-05 19:47 Andreas Sturmlechner
2020-02-26 16:56 Andreas Sturmlechner
2020-02-09 16:36 Michał Górny
2020-02-04 13:10 Michał Górny
2019-09-14 16:33 Richard Yao
2018-10-27 14:09 Pacho Ramos
2018-10-13 10:07 Mikle Kolyada
2018-09-09 19:10 Amy Liffey
2018-02-28 18:48 Mart Raudsepp
2018-01-30 18:44 Jonathan Scruggs
2018-01-24 19:53 David Seifert
2017-12-22 10:55 Michael Weber
2017-11-17 18:47 David Seifert
2017-11-06 1:58 Andreas Sturmlechner
2017-11-06 1:58 Andreas Sturmlechner
2017-11-06 1:58 Andreas Sturmlechner
2017-07-04 15:49 Agostino Sarubbo
2017-07-04 10:17 Agostino Sarubbo
2017-05-06 22:20 David Seifert
2017-01-26 20:12 David Seifert
2016-12-20 19:16 Tobias Klausmann
2016-11-06 20:15 David Seifert
2016-11-06 20:15 David Seifert
2016-09-07 18:00 Patrice Clement
2016-08-21 17:41 Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox