commit: 210f12a30250cc13e74637b85876284e71962bd7 Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com> AuthorDate: Wed Apr 10 15:34:04 2024 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Thu Apr 11 09:44:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=210f12a3
sci-libs/vtk: fix for opencascade-7.8.0 Closes: https://bugs.gentoo.org/927891 Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36196 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch | 18 ++++++++++++++++++ sci-libs/vtk/vtk-9.3.0.ebuild | 5 +++++ 2 files changed, 23 insertions(+) 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
