summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Zander <negril.nx+gentoo@gmail.com>2024-04-10 17:34:04 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-04-11 11:44:06 +0200
commit210f12a30250cc13e74637b85876284e71962bd7 (patch)
treedfaf1de33bd9cb471fce20dc187ea5f1d3c17210 /sci-libs
parentwww-client/chromium: drop 122.0.6261.111, 123.0.6312.86 (diff)
downloadgentoo-210f12a30250cc13e74637b85876284e71962bd7.tar.gz
gentoo-210f12a30250cc13e74637b85876284e71962bd7.tar.bz2
gentoo-210f12a30250cc13e74637b85876284e71962bd7.zip
sci-libs/vtk: fix for opencascade-7.8.0
Closes: https://bugs.gentoo.org/927891 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36196 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch18
-rw-r--r--sci-libs/vtk/vtk-9.3.0.ebuild5
2 files changed, 23 insertions, 0 deletions
diff --git a/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch
new file mode 100644
index 000000000000..6f77fbdea979
--- /dev/null
+++ b/sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch
@@ -0,0 +1,18 @@
+--- a/IO/OCCT/CMakeLists.txt
++++ b/IO/OCCT/CMakeLists.txt
+@@ -5,11 +5,11 @@ vtk_module_find_package(
+ )
+
+ set(opencascade_req_targets
+- TKSTEP
+- TKIGES
++ TKDESTEP
++ TKDEIGES
+ TKMesh
+- TKXDESTEP
+- TKXDEIGES)
++ TKXSDRAWSTEP
++ TKXSDRAWIGES)
+ set(opencascade_missing_targets)
+ foreach (opencascade_req_target IN LISTS opencascade_req_targets)
+ if (NOT TARGET "${opencascade_req_target}")
diff --git a/sci-libs/vtk/vtk-9.3.0.ebuild b/sci-libs/vtk/vtk-9.3.0.ebuild
index 28ef8668d7a7..d22fadf03387 100644
--- a/sci-libs/vtk/vtk-9.3.0.ebuild
+++ b/sci-libs/vtk/vtk-9.3.0.ebuild
@@ -268,6 +268,10 @@ src_prepare() {
-i Utilities/Doxygen/CMakeLists.txt || die
fi
+ if use opencascade && has_version ">=sci-libs/opencascade-7.8.0"; then
+ eapply "${FILESDIR}/vtk-9.3.0-opencascade-7.8.0.patch"
+ fi
+
cmake_src_prepare
if use test; then
@@ -321,6 +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_IOOggTheora="YES"
-DVTK_MODULE_ENABLE_VTK_IOOpenVDB="$(usex openvdb "YES" "NO")"
-DVTK_MODULE_ENABLE_VTK_IOSQL="YES" # sqlite