summaryrefslogtreecommitdiff
path: root/sci-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-08-23 14:44:46 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-08-23 14:44:46 +0100
commitcdfd4f0c915964d401cba19362c7dea8e89ad1da (patch)
treef6d313d1b57913d1309e00a578166e1e10fa6b8d /sci-libs
parent05a34d98821265bf73820931936f86704b9002c6 (diff)
gentoo auto-resync : 23:08:2022 - 14:44:46
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/Manifest.gzbin44413 -> 44403 bytes
-rw-r--r--sci-libs/med/Manifest2
-rw-r--r--sci-libs/med/med-4.1.1.ebuild5
-rw-r--r--sci-libs/vtk/Manifest1
-rw-r--r--sci-libs/vtk/vtk-9.0.3-r4.ebuild551
5 files changed, 5 insertions, 554 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz
index bdb7e1c6dc04..71011a28279b 100644
--- a/sci-libs/Manifest.gz
+++ b/sci-libs/Manifest.gz
Binary files differ
diff --git a/sci-libs/med/Manifest b/sci-libs/med/Manifest
index c6d9a303950a..74b01a0a365d 100644
--- a/sci-libs/med/Manifest
+++ b/sci-libs/med/Manifest
@@ -4,5 +4,5 @@ AUX med-4.1.0-0003-build-against-hdf5-1.12.patch 4749 BLAKE2B 3a606c27bce6130e83
DIST med-4.1.0.tar.gz 50375039 BLAKE2B 514ca19baf15e349ecbce870b318b37c51bfb57ac9b03c2b2c1b28836fec7fcf2dce573b9ea155f358d5e0bcee120c12a31598cd4f1e44837eca787553bb70d4 SHA512 94d07663c2f6a3cd497f54b480c3d742476d2a25172feb567980c9e75d49f4661aa2c6aaf570470938265997154e348bc1608065b86d42afda52d4e6361fedf8
DIST med-4.1.1.tar.gz 50506725 BLAKE2B fb9bc3239c18c53fa42c5dd1101559746e8d38db2a3cb5fb47d1bf0cb578facc4ab95409af8524f5c20251848842cc1a331f6a816ce0754e9a6c95f507174ed1 SHA512 8917e7ecfe30e1259b0927c8e1c3d6efd86ed2386813f6d90217bd95589199478e587f0815031ab65cacf7901a30b77a6307414f9073caffe6e7f013e710d768
EBUILD med-4.1.0.ebuild 3341 BLAKE2B 8228252546d19d0e40db39d95c64f369249bc613b329f2f3e0f1abdc40a1562313330b0d4a5cd3d8aa9b4c6945a12eb783835940f67bc3d28d3b8ae6bf15c65c SHA512 498fcb9efafb20912faac9ca627aa6c2ac16bc288d2043043ead1c5a479f23142001f02d71b9e7a5e796f0536bbc2d2273624e7d7c95845cb7e54f6b95a23474
-EBUILD med-4.1.1.ebuild 3335 BLAKE2B 9e42135cba6f9861aa3a136eebd5824719d04f20bf87f372ebced24f477ed2cfc692e6b28e7ae39f0f6d140aa9488c410abf6fd1e7decf812b24a203f2df32c5 SHA512 762d5fa162671d8cf96b45c52419c8954431c35771cfcdae62d9838606f62d2d4502928744b9907f6a60aef3602860d7da222e1ea0be0248abb30ca9a5cd0c4e
+EBUILD med-4.1.1.ebuild 3422 BLAKE2B 95c93d433a2b3e576a7ef23cdb7fd5b1d190c97dd6cd5d4524990caa91ab42bd28649ca5107385b6454aca6bf23620cb023b32a6e1e5500c4a1178749e48f4cc SHA512 71f176ee3e094e102eb22cd51ef7e3be961838fbb0d9c76e85cbef5518e5db4a5ec90031125389186caee117789c256356626990200c2b2c2ac2dc1052bbf7b2
MISC metadata.xml 636 BLAKE2B de5e1c1d3f715459d5ca0945d0d795c1c549e6e20c27283140190bdc24289f4ccc0c12940e00aa689b90fd9af53749f0eabab44cecaf6815ef37adc1795f43e9 SHA512 60a3c3afd0db34569993b73d795830d86eb51778f9a7f0375d0b196c6f0862ca10a77c4c33ad2c906c56c6715be6f4452b61ffab5a25c254e480e50b64c021e4
diff --git a/sci-libs/med/med-4.1.1.ebuild b/sci-libs/med/med-4.1.1.ebuild
index 636cb55f6c71..ff91fb7b8fd2 100644
--- a/sci-libs/med/med-4.1.1.ebuild
+++ b/sci-libs/med/med-4.1.1.ebuild
@@ -7,7 +7,7 @@ FORTRAN_NEEDED=fortran
PYTHON_COMPAT=( python3_{8..11} )
-inherit cmake fortran-2 python-single-r1
+inherit cmake flag-o-matic fortran-2 python-single-r1
DESCRIPTION="A library to store and exchange meshed data or computation results"
HOMEPAGE="https://www.salome-platform.org/user-section/about/med"
@@ -62,6 +62,9 @@ src_prepare() {
sed -e 's|doc/med-${MED_STR_VERSION}|doc/med-${MED_STR_VERSION}/html|' \
-i CMakeLists.txt || die "fix doc path failed"
+ # bug #862900, already reported upstream. CHECK on updates!
+ filter-lto
+
cmake_src_prepare
}
diff --git a/sci-libs/vtk/Manifest b/sci-libs/vtk/Manifest
index bbe8e0705f22..0e6edfa24d04 100644
--- a/sci-libs/vtk/Manifest
+++ b/sci-libs/vtk/Manifest
@@ -14,7 +14,6 @@ DIST VTKLargeData-9.1.0.tar.gz 247517666 BLAKE2B 1b47829ad51f246ff26c8b6d16c9fa4
DIST VTKLargeDataFiles-9.1.0.tar.gz 247504557 BLAKE2B a05892347a1a5cf5cb0df3f1c1d94efcdb68c28bcd0391617602565fddc4277ac44accec6f1b3ae2822a860f3d5f5642a56e36171b5d81bef137561182051d08 SHA512 10abc287256c7ec5fb7114f4054eda5cde1b75a8d2bbe70375fb96d31b7c4164be936489ce2fc9b5c33225f494d9b7f5f7bed648828661b17d6f66acb70eeddc
DIST vtkDocHtml-9.0.3.tar.gz 132650096 BLAKE2B 45fc1a6942df3e79e500a552c3b3cda2099b9451191559d471e3a2e785a8c52b2c6273cfd2cc4a3f3f65582e607d9414475f58d243fde96a4f985bed479e53db SHA512 9b5fef43f3c2b92aa1fe6a9ba9458d6677874b09b167654db7f26df6feffdc34ed1a8fb4e59d64b75625063a774af77fe57f275903602a5f7daa74e1a2e71800
DIST vtkDocHtml-9.1.0.tar.gz 152767166 BLAKE2B 9163b6b1bf55810a310ca8bc211e067827b1f9907efd2a378363d8e6296d4bf07b25371b66c00cab3576fb06f0cb63fdf2ffea044033e2c42e9087819a3736ba SHA512 036daba5eb6503b5eb3e9323a4ab3ea0f27c09d8fef411dd2ed154c24d5a37d9f19d57db07576c8af404bfdb7178e95b137a3c27bfedb3f9cb72c04f717da80a
-EBUILD vtk-9.0.3-r4.ebuild 14382 BLAKE2B 34a32bf6f86e429c81c97196e7d03061e16c165ea034498bbd8c3e4f64ea13f31443949c39adebe643cfa60d38a66a9d393a7a0b3497168b2ef0f1d832d77150 SHA512 2b927abdebb0ec745d8d84a1bd380e199ec45837cc11c7bb0a30962bbc8a73f3ef08b37d7ebcc4e3f2ec409873252c121bfae849d1e7bf039c4c65ed1272c064
EBUILD vtk-9.0.3-r5.ebuild 14400 BLAKE2B 0d63f7c28132d1486ac3b14b680d7cf730ec1f4572105870fa3d52096982a9dbe4d05b3955b9f4d0114dae5668698a398619bc38bd27fe02e22ca90e2a2f0e1d SHA512 146892890bf9b28dd2d5a00e3ac406814439d87ab4803014a56fce3281b124c48b02e19492a56aa474a4f0f175e39355dc17f437a23603901b04db1cf88c117b
EBUILD vtk-9.1.0-r2.ebuild 16506 BLAKE2B 2d062d78c6857dacd0ded4d7fd7a2a0f6544d0572646a6f68f8701e42ebeb6efbb965eb02521fd9b49ec269ea3715e6c6bcf6c22050f8e0620d15f236ba2e5c6 SHA512 5dad4530e8821ecc0b68b9420025a8c18b0c865683092d2d8dd16ef87d9c6cc4bcf31002186535d79cff939afbef26841719c310177c06411d31c1761b67b50b
MISC metadata.xml 1349 BLAKE2B 778c471328fddbece653650c6a54b002dc9a48f5de3eb391bd0a84c9e0720ab1b2715b8013af55e60aac11a244090fc6e1d152c57a2c7f16b0b5306043e71731 SHA512 f55cac1ad724a7440bae4e7c364d3869ba25e4668463d0757ca8eb14469b539471c2bd31bb2e874c3a7982df490d9fc1c43c8d854dd4c511d0bde43ec0dc4a0c
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
-}