diff options
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/vtk/files/vtk-9.3.0-opencascade-7.8.0.patch | 18 | ||||
-rw-r--r-- | sci-libs/vtk/vtk-9.3.0.ebuild | 5 |
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 |