Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/, sci-libs/opencascade/files/
Date: Sat, 28 Jan 2023 22:48:50
Message-Id: 1674945147.ff9032e688571dde15e9d36cebedf5a247ded1b8.asturm@gentoo
1 commit: ff9032e688571dde15e9d36cebedf5a247ded1b8
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Fri Jan 27 11:32:35 2023 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 22:32:27 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff9032e6
7
8 sci-libs/opencascade: drop 7.5.3-r8
9
10 Cleanup old. No consumers left for this version in ::gentoo. There's one
11 consumer for that version in the ::science repo.
12
13 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
14 Closes: https://github.com/gentoo/gentoo/pull/29296
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16
17 sci-libs/opencascade/Manifest | 1 -
18 ....1-0001-allow-default-search-path-for-Qt5.patch | 26 ---
19 ...e-7.5.1-0002-remove-unnecessary-Qt5-check.patch | 28 ----
20 ...-7.5.1-0003-add-Gentoo-configuration-type.patch | 26 ---
21 ...fix-AllValues-name-collision-with-vtk-9.0.patch | 172 --------------------
22 sci-libs/opencascade/opencascade-7.5.3-r8.ebuild | 176 ---------------------
23 6 files changed, 429 deletions(-)
24
25 diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest
26 index b0510b20df5f..af71bb8b4462 100644
27 --- a/sci-libs/opencascade/Manifest
28 +++ b/sci-libs/opencascade/Manifest
29 @@ -1,3 +1,2 @@
30 -DIST opencascade-7.5.3.tar.gz 47817862 BLAKE2B be438a08997c18c3cb2c08c520fff2f439cc8a406cc3f471be3b24f874ac3bd892c4afe6fa37f742ffb5da21b5a29f9c8f737e3160dcbda35a217286218eb5e1 SHA512 2d7cf284a1b3ce8d05151085b41579cc2f4e29489b7920769cd04f86a6d76e49f533b570226d3cf041c75582894ed8a6aff889312c7c507fffae47d3e57c5c47
31 DIST opencascade-7.6.3.tar.gz 48216090 BLAKE2B ff0b63250e77b0240bd99bba38cd0e6b0a8c88bf39e495f5d51d7913f097e2cad83a5ad121e9d56de11c74008249c99a41f4615269a085b7cf97c3d7f0477d6d SHA512 c708f76edb707ba18bdfe7442ed8fa500894ee6c1cd8d0313eb906b3aa7dfa40a575f04dbccd70e84395d670f2b93fb8529f3d59726449234e627b9f35b9dded
32 DIST opencascade-7.7.0.tar.gz 48393806 BLAKE2B b41da7bdd07aa6ef52f7833bef3e8a9fc2ca16cbf754773cb7adcc059c11c2a7937d279a2b6cf3096e7af6fbb42c6fdc2a5c98340d6b084d2ba100ba2c538f2a SHA512 6c90e2761f752241417ae6f18d819f51e66b32f3a50a97384f29ed73fa07f4cded84c71a6f6ba302d5e35c57e2fc13001619521eaf45757e4e5ff670d94bbf5c
33
34 diff --git a/sci-libs/opencascade/files/opencascade-7.5.1-0001-allow-default-search-path-for-Qt5.patch b/sci-libs/opencascade/files/opencascade-7.5.1-0001-allow-default-search-path-for-Qt5.patch
35 deleted file mode 100644
36 index 68be3e1c8803..000000000000
37 --- a/sci-libs/opencascade/files/opencascade-7.5.1-0001-allow-default-search-path-for-Qt5.patch
38 +++ /dev/null
39 @@ -1,26 +0,0 @@
40 -From c7d8a7374284186136d72fc285f9e55045b306fb Mon Sep 17 00:00:00 2001
41 -From: Bernd Waibel <waebbl@×××××.com>
42 -Date: Wed, 3 Feb 2021 23:31:23 +0100
43 -Subject: [PATCH] allow default search path for Qt5
44 -
45 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
46 ----
47 - adm/cmake/qt.cmake | 2 +-
48 - 1 file changed, 1 insertion(+), 1 deletion(-)
49 -
50 -diff --git a/adm/cmake/qt.cmake b/adm/cmake/qt.cmake
51 -index 535e6a20..6c2141dd 100644
52 ---- a/adm/cmake/qt.cmake
53 -+++ b/adm/cmake/qt.cmake
54 -@@ -24,7 +24,7 @@ set(CMAKE_PREFIX_PATH ${3RDPARTY_QT_DIR})
55 -
56 - # Now we can apply standard CMake finder for Qt5. We do this mostly
57 - # to have qt5_wrap_cpp() function available and Qt5_FOUND variable filled
58 --find_package(Qt5 QUIET COMPONENTS Widgets Quick Xml PATHS ${3RDPARTY_QT_DIR} NO_DEFAULT_PATH)
59 -+find_package(Qt5 COMPONENTS Widgets Quick Xml REQUIRED)
60 - if (NOT ${Qt5_FOUND})
61 - # Now we can apply standard CMake finder for Qt. We do this mostly
62 - # to have qt4_wrap_cpp() function available
63 ---
64 -2.30.0
65 -
66
67 diff --git a/sci-libs/opencascade/files/opencascade-7.5.1-0002-remove-unnecessary-Qt5-check.patch b/sci-libs/opencascade/files/opencascade-7.5.1-0002-remove-unnecessary-Qt5-check.patch
68 deleted file mode 100644
69 index 91d5c66c7614..000000000000
70 --- a/sci-libs/opencascade/files/opencascade-7.5.1-0002-remove-unnecessary-Qt5-check.patch
71 +++ /dev/null
72 @@ -1,28 +0,0 @@
73 -From dcf67dbc486a97256ea6df7b968f69346e7b3dba Mon Sep 17 00:00:00 2001
74 -From: Bernd Waibel <waebbl@×××××.com>
75 -Date: Wed, 3 Feb 2021 23:45:27 +0100
76 -Subject: [PATCH] remove unnecessary Qt5 check
77 -
78 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
79 ----
80 - adm/cmake/qt_macro.cmake | 4 ----
81 - 1 file changed, 4 deletions(-)
82 -
83 -diff --git a/adm/cmake/qt_macro.cmake b/adm/cmake/qt_macro.cmake
84 -index ec897384..363d9c52 100644
85 ---- a/adm/cmake/qt_macro.cmake
86 -+++ b/adm/cmake/qt_macro.cmake
87 -@@ -2,10 +2,6 @@
88 -
89 - macro (FIND_QT_PACKAGE PROJECT_LIBRARIES_DEBUG PROJECT_LIBRARIES_RELEASE PROJECT_INCLUDES)
90 -
91 -- if ("${3RDPARTY_QT_DIR}" STREQUAL "")
92 -- message (FATAL_ERROR "Empty Qt dir")
93 -- endif()
94 --
95 - if (${Qt5_FOUND})
96 - #message (STATUS "Qt5 cmake configuration")
97 -
98 ---
99 -2.30.0
100 -
101
102 diff --git a/sci-libs/opencascade/files/opencascade-7.5.1-0003-add-Gentoo-configuration-type.patch b/sci-libs/opencascade/files/opencascade-7.5.1-0003-add-Gentoo-configuration-type.patch
103 deleted file mode 100644
104 index 0665790d20a1..000000000000
105 --- a/sci-libs/opencascade/files/opencascade-7.5.1-0003-add-Gentoo-configuration-type.patch
106 +++ /dev/null
107 @@ -1,26 +0,0 @@
108 -From a8aa40ec021dac8310d77bcec71ee298f6773926 Mon Sep 17 00:00:00 2001
109 -From: Bernd Waibel <waebbl@×××××.com>
110 -Date: Thu, 4 Feb 2021 22:29:57 +0100
111 -Subject: [PATCH] add Gentoo configuration type
112 -
113 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
114 ----
115 - CMakeLists.txt | 2 +-
116 - 1 file changed, 1 insertion(+), 1 deletion(-)
117 -
118 -diff --git a/CMakeLists.txt b/CMakeLists.txt
119 -index 100d6133..887a1cd7 100644
120 ---- a/CMakeLists.txt
121 -+++ b/CMakeLists.txt
122 -@@ -4,7 +4,7 @@ set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/adm/cmake")
123 -
124 - set (CMAKE_SUPPRESS_REGENERATION TRUE)
125 -
126 --set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
127 -+set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo Gentoo CACHE INTERNAL "" FORCE)
128 -
129 - # macro: include patched file if it exists
130 - macro (OCCT_INCLUDE_CMAKE_FILE BEING_INCLUDED_FILE)
131 ---
132 -2.30.0
133 -
134
135 diff --git a/sci-libs/opencascade/files/opencascade-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch b/sci-libs/opencascade/files/opencascade-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch
136 deleted file mode 100644
137 index e2725ebb2c64..000000000000
138 --- a/sci-libs/opencascade/files/opencascade-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch
139 +++ /dev/null
140 @@ -1,172 +0,0 @@
141 -From f624c55d7b75ccbe3fdfef0db141fdbe1f6b383a Mon Sep 17 00:00:00 2001
142 -From: anv <anv@×××××××××××.com>
143 -Date: Tue, 27 Apr 2021 21:33:54 +0300
144 -Subject: [PATCH 1/2] 0032331: Visualization - Exception when trying to display
145 - some surfaces using iVtk with VTK 9
146 -
147 -Updated memory allocation for vtkPolyData to use more suited method for VTK versions after 9.0
148 ----
149 - src/IVtkDraw/IVtkDraw_Interactor.cxx | 7 +++
150 - src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx | 50 ++++++++++++++++++-
151 - 2 files changed, 56 insertions(+), 1 deletion(-)
152 -
153 -diff --git a/src/IVtkDraw/IVtkDraw_Interactor.cxx b/src/IVtkDraw/IVtkDraw_Interactor.cxx
154 -index f9f68c37b6..1b68c959f5 100644
155 ---- a/src/IVtkDraw/IVtkDraw_Interactor.cxx
156 -+++ b/src/IVtkDraw/IVtkDraw_Interactor.cxx
157 -@@ -20,6 +20,13 @@
158 - #include <vtkWin32OpenGLRenderWindow.h>
159 - #else
160 - #include <GL/glx.h>
161 -+
162 -+// Preventing naming collisions between
163 -+// GLX and VTK versions 9.0 and above
164 -+#ifdef AllValues
165 -+#undef AllValues
166 -+#endif
167 -+
168 - #include <vtkXRenderWindowInteractor.h>
169 - #include <vtkXOpenGLRenderWindow.h>
170 - #endif
171 -diff --git a/src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx b/src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx
172 -index 26ded68af5..bd289d2b51 100644
173 ---- a/src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx
174 -+++ b/src/IVtkTools/IVtkTools_SubPolyDataFilter.cxx
175 -@@ -87,6 +87,11 @@ int IVtkTools_SubPolyDataFilter::RequestData (vtkInformation *vtkNotUsed(theRequ
176 -
177 - // Prepare the list of ids from the set of ids.
178 - // Iterate on input cells.
179 -+#if (VTK_MAJOR_VERSION >= 9)
180 -+ // Count number of different cells.
181 -+ int aNbVerts = 0, aNbLines = 0, aNbPolys = 0, aNbStrips = 0;
182 -+ int aNbVertPts = 0, aNbLinePts = 0, aNbPolyPts = 0, aNbStripPts = 0;
183 -+#endif
184 - if (!myIdsSet.IsEmpty())
185 - {
186 - for (vtkIdType anI = 0; anI < aSize; anI++)
187 -@@ -95,13 +100,56 @@ int IVtkTools_SubPolyDataFilter::RequestData (vtkInformation *vtkNotUsed(theRequ
188 - {
189 - // Add a cell id to output if it's value is in the set.
190 - anIdList->InsertNextId (anI);
191 -+#if (VTK_MAJOR_VERSION >= 9)
192 -+ switch (anInput->GetCellType(anI))
193 -+ {
194 -+ case VTK_VERTEX:
195 -+ aNbVerts++;
196 -+ aNbVertPts++;
197 -+ break;
198 -+ case VTK_POLY_VERTEX:
199 -+ aNbVerts++;
200 -+ aNbVertPts += anInput->GetCell(anI)->GetNumberOfPoints();
201 -+ break;
202 -+ case VTK_LINE:
203 -+ aNbLines++;
204 -+ aNbLinePts += 2;
205 -+ break;
206 -+ case VTK_POLY_LINE:
207 -+ aNbLines++;
208 -+ aNbLinePts += anInput->GetCell(anI)->GetNumberOfPoints();
209 -+ break;
210 -+ case VTK_TRIANGLE:
211 -+ aNbPolys++;
212 -+ aNbPolyPts += 3;
213 -+ break;
214 -+ case VTK_QUAD:
215 -+ aNbPolys++;
216 -+ aNbPolyPts += 4;
217 -+ break;
218 -+ case VTK_POLYGON:
219 -+ aNbPolys++;
220 -+ aNbPolyPts += anInput->GetCell(anI)->GetNumberOfPoints();
221 -+ break;
222 -+ case VTK_TRIANGLE_STRIP:
223 -+ aNbStrips++;
224 -+ aNbStripPts += anInput->GetCell(anI)->GetNumberOfPoints();
225 -+ break;
226 -+ }
227 -+#endif
228 - }
229 - }
230 - }
231 -
232 - // Copy cells with their points according to the prepared list of cell ids.
233 - anOutput->GetCellData()->AllocateArrays(anInput->GetCellData()->GetNumberOfArrays());
234 -- anOutput->Allocate(anInput, anIdList->GetNumberOfIds()); // Allocate output cells
235 -+ // Allocate output cells
236 -+#if (VTK_MAJOR_VERSION >= 9)
237 -+ anOutput->AllocateExact (aNbVerts, aNbVertPts, aNbLines, aNbLinePts, aNbPolys, aNbPolyPts, aNbStrips, aNbStripPts);
238 -+#else
239 -+ anOutput->Allocate (anInput, anIdList->GetNumberOfIds());
240 -+#endif
241 -+
242 - // Pass data arrays.
243 - // Create new arrays for output data
244 - vtkSmartPointer<vtkCellData> anInData = anInput->GetCellData();
245 ---
246 -2.31.1
247 -
248 -
249 -From 3a0d59614378af258b285c7a3cab66c4bb7cecd3 Mon Sep 17 00:00:00 2001
250 -From: Roman Beranek <roman.beranek@×××××××.com>
251 -Date: Thu, 3 Jun 2021 15:41:45 +0200
252 -Subject: [PATCH 2/2] undef AllValues after inclusion of GL/glx.h
253 -
254 -Replicate the measure from 0032331 also for IVtkDraw.cxx and InterfaceGraphic.hxx
255 ----
256 - src/IVtkDraw/IVtkDraw.cxx | 17 +++++++++++------
257 - src/InterfaceGraphic/InterfaceGraphic.hxx | 4 +++-
258 - 2 files changed, 14 insertions(+), 7 deletions(-)
259 -
260 -diff --git a/src/IVtkDraw/IVtkDraw.cxx b/src/IVtkDraw/IVtkDraw.cxx
261 -index 93d4a2fd1a..84bacdc55a 100644
262 ---- a/src/IVtkDraw/IVtkDraw.cxx
263 -+++ b/src/IVtkDraw/IVtkDraw.cxx
264 -@@ -52,6 +52,17 @@
265 -
266 - // prevent disabling some MSVC warning messages by VTK headers
267 - #include <Standard_WarningsDisable.hxx>
268 -+#ifndef _WIN32
269 -+ #include <X11/X.h>
270 -+ #include <X11/Shell.h>
271 -+ #include <X11/Xlib.h>
272 -+ #include <X11/Xutil.h>
273 -+ #include <GL/glx.h>
274 -+ #include <Xw_Window.hxx>
275 -+ #ifdef AllValues
276 -+ #undef AllValues
277 -+ #endif
278 -+#endif
279 - #include <vtkAlgorithmOutput.h>
280 - #include <vtkAppendPolyData.h>
281 - #include <vtkBMPWriter.h>
282 -@@ -75,12 +86,6 @@
283 - #include <vtkTIFFWriter.h>
284 - #include <vtkWindowToImageFilter.h>
285 - #ifndef _WIN32
286 -- #include <X11/X.h>
287 -- #include <X11/Shell.h>
288 -- #include <X11/Xlib.h>
289 -- #include <X11/Xutil.h>
290 -- #include <GL/glx.h>
291 -- #include <Xw_Window.hxx>
292 - #include <vtkXRenderWindowInteractor.h>
293 - #include <vtkXOpenGLRenderWindow.h>
294 - #include <tk.h>
295 -diff --git a/src/InterfaceGraphic/InterfaceGraphic.hxx b/src/InterfaceGraphic/InterfaceGraphic.hxx
296 -index c533f68cd5..bf02b3f397 100644
297 ---- a/src/InterfaceGraphic/InterfaceGraphic.hxx
298 -+++ b/src/InterfaceGraphic/InterfaceGraphic.hxx
299 -@@ -39,7 +39,9 @@
300 - #include <X11/Xutil.h>
301 - #include <X11/Xatom.h>
302 - #include <GL/glx.h>
303 --
304 -+#ifdef AllValues
305 -+#undef AllValues
306 -+#endif
307 - #endif
308 -
309 - #endif // __INTERFACE_GRAPHIC_HXX
310 ---
311 -2.31.1
312 -
313
314 diff --git a/sci-libs/opencascade/opencascade-7.5.3-r8.ebuild b/sci-libs/opencascade/opencascade-7.5.3-r8.ebuild
315 deleted file mode 100644
316 index bdd9b918a69a..000000000000
317 --- a/sci-libs/opencascade/opencascade-7.5.3-r8.ebuild
318 +++ /dev/null
319 @@ -1,176 +0,0 @@
320 -# Copyright 1999-2022 Gentoo Authors
321 -# Distributed under the terms of the GNU General Public License v2
322 -
323 -EAPI=8
324 -
325 -inherit cmake flag-o-matic
326 -
327 -MY_PV="$(ver_rs 1- '_')"
328 -PV_MAJ="$(ver_cut 1-2)"
329 -
330 -DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange"
331 -HOMEPAGE="https://www.opencascade.com"
332 -SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz"
333 -S="${WORKDIR}/occt-V${MY_PV}"
334 -
335 -LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )"
336 -SLOT="0/${PV_MAJ}"
337 -KEYWORDS="amd64 ~arm64 ~x86"
338 -IUSE="debug doc examples ffmpeg freeimage gles2-only json optimize tbb vtk"
339 -
340 -REQUIRED_USE="?? ( optimize tbb )"
341 -
342 -# There's no easy way to test. Testing needs a rather big environment
343 -# properly set up.
344 -RESTRICT="test"
345 -
346 -# ffmpeg: https://dev.opencascade.org/content/build-error-when-compiling-against-ffmpeg-5
347 -RDEPEND="
348 - !app-eselect/eselect-opencascade
349 - dev-lang/tcl:=
350 - dev-lang/tk:=
351 - dev-tcltk/itcl
352 - dev-tcltk/itk
353 - dev-tcltk/tix
354 - media-libs/fontconfig
355 - media-libs/freetype:2
356 - media-libs/ftgl
357 - virtual/glu
358 - virtual/opengl
359 - x11-libs/libXmu
360 - examples? (
361 - dev-qt/qtcore:5
362 - dev-qt/qtgui:5
363 - dev-qt/qtquickcontrols2:5
364 - dev-qt/qtwidgets:5
365 - dev-qt/qtxml:5
366 - )
367 - ffmpeg? ( media-video/ffmpeg:= )
368 - freeimage? ( media-libs/freeimage )
369 - tbb? ( dev-cpp/tbb:= )
370 - vtk? ( <sci-libs/vtk-9.2.0:=[rendering] )
371 -"
372 -DEPEND="${RDEPEND}"
373 -
374 -BDEPEND="
375 - dev-cpp/eigen
376 - dev-libs/rapidjson
377 - doc? ( app-doc/doxygen )
378 - examples? ( dev-qt/linguist-tools:5 )
379 -"
380 -
381 -PATCHES=(
382 - "${FILESDIR}"/${PN}-7.5.1-0001-allow-default-search-path-for-Qt5.patch
383 - "${FILESDIR}"/${PN}-7.5.1-0002-remove-unnecessary-Qt5-check.patch
384 - "${FILESDIR}"/${PN}-7.5.1-0003-add-Gentoo-configuration-type.patch
385 - "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch
386 - "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
387 - "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
388 - "${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch
389 - "${FILESDIR}"/${PN}-7.6.2-avoid-pre-stripping-binaries.patch
390 - "${FILESDIR}"/${PN}-7.5.3-tbb-2021.patch
391 -)
392 -
393 -src_prepare() {
394 - cmake_src_prepare
395 -
396 - use debug && append-cppflags -DDEBUG
397 -
398 - sed -e 's|/lib\$|/'$(get_libdir)'\$|' \
399 - -i adm/templates/OpenCASCADEConfig.cmake.in || die
400 -
401 - # There is an OCCT_UPDATE_TARGET_FILE cmake macro that fails due to some
402 - # assumptions it makes about installation paths. Rather than fixing it, just
403 - # get rid of the mechanism altogether - its purpose is to allow a
404 - # side-by-side installation of release and debug libraries.
405 - sed -e 's|\\${OCCT_INSTALL_BIN_LETTER}||' \
406 - -i adm/cmake/occt_toolkit.cmake || die
407 -}
408 -
409 -src_configure() {
410 - local mycmakeargs=(
411 - -DBUILD_DOC_Overview=$(usex doc)
412 - -DBUILD_Inspector=$(usex examples)
413 - -DBUILD_RELEASE_DISABLE_EXCEPTIONS=OFF # bug #847916
414 -
415 - -DINSTALL_DIR_BIN="$(get_libdir)/${PN}/bin"
416 - -DINSTALL_DIR_CMAKE="$(get_libdir)/cmake/${PN}"
417 - -DINSTALL_DIR_DATA="share/${PN}/data"
418 - -DINSTALL_DIR_DOC="share/doc/${PF}"
419 - -DINSTALL_DIR_INCLUDE="include/${PN}"
420 - -DINSTALL_DIR_LIB="$(get_libdir)/${PN}"
421 - -DINSTALL_DIR_RESOURCE="share/${PN}/resources"
422 - -DINSTALL_DIR_SAMPLES="share/${PN}/samples"
423 - -DINSTALL_DIR_SCRIPT="$(get_libdir)/${PN}/bin"
424 - -DINSTALL_DIR_WITH_VERSION=OFF
425 - -DINSTALL_SAMPLES=$(usex examples)
426 - -DINSTALL_TEST_CASES=NO
427 -
428 - -DUSE_D3D=NO
429 - -DUSE_FFMPEG=$(usex ffmpeg)
430 - -DUSE_FREEIMAGE=$(usex freeimage)
431 - -DUSE_FREETYPE=ON
432 - -DUSE_GLES2=$(usex gles2-only)
433 - -DUSE_RAPIDJSON=$(usex json)
434 - -DUSE_TBB=$(usex tbb)
435 - -DUSE_VTK=$(usex vtk)
436 - )
437 -
438 - use doc && mycmakeargs+=( -DINSTALL_DOC_Overview=ON )
439 -
440 - if use examples; then
441 - mycmakeargs+=(
442 - -D3RDPARTY_QT_DIR="${ESYSROOT}"/usr
443 - -DBUILD_SAMPLES_QT=ON
444 - )
445 - fi
446 -
447 - if use vtk; then
448 - if has_version ">=sci-libs/vtk-9.1.0"; then
449 - mycmakeargs+=(
450 - -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr
451 - -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.1
452 - -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir)
453 - )
454 - elif has_version ">=sci-libs/vtk-9.0.0"; then
455 - mycmakeargs+=(
456 - -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr
457 - -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.0
458 - -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir)
459 - )
460 - fi
461 - fi
462 -
463 - cmake_src_configure
464 -
465 - # prepare /etc/env.d file
466 - sed -e "s|lib/|$(get_libdir)/|" \
467 - -e "s|VAR_CASROOT|${EPREFIX}/usr|" \
468 - < "${FILESDIR}"/${PN}.env.in > "${T}"/99${PN} || die
469 -
470 - # use TBB for memory allocation optimizations
471 - if use tbb; then
472 - sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' -i "${T}"/99${PN} || die
473 - fi
474 -
475 - # use internal optimized memory manager and don't clear memory with this
476 - # memory manager.
477 - if use optimize ; then
478 - sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=1|' \
479 - -e 's|^#MMGT_CLEAR=1$|MMGT_CLEAR=0|' \
480 - -i "${T}"/99${PN} || die
481 - fi
482 -}
483 -
484 -src_install() {
485 - cmake_src_install
486 -
487 - doenvd "${T}/99${PN}"
488 -
489 - # remove examples
490 - if use !examples; then
491 - rm -r "${ED}/usr/share/${PN}/samples" || die
492 - fi
493 -
494 - docompress -x /usr/share/doc/${PF}/overview/html
495 -}