1 |
commit: f1fad773fe9f1280691e37c5f148a43294ca232e |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Mon Oct 31 15:10:14 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 31 15:46:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1fad773 |
7 |
|
8 |
media-gfx/freecad: drop 0.19.4-r1, 0.20-r1 |
9 |
|
10 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
media-gfx/freecad/Manifest | 3 - |
14 |
...6-add-boost-serialization-to-find_package.patch | 53 ---- |
15 |
...19.4-backport-correctly-find-PySide2Tools.patch | 106 ------- |
16 |
media-gfx/freecad/freecad-0.19.4-r1.ebuild | 325 --------------------- |
17 |
media-gfx/freecad/freecad-0.20-r1.ebuild | 309 -------------------- |
18 |
media-gfx/freecad/metadata.xml | 17 -- |
19 |
6 files changed, 813 deletions(-) |
20 |
|
21 |
diff --git a/media-gfx/freecad/Manifest b/media-gfx/freecad/Manifest |
22 |
index 42213fb79589..ae9dfbc8a37d 100644 |
23 |
--- a/media-gfx/freecad/Manifest |
24 |
+++ b/media-gfx/freecad/Manifest |
25 |
@@ -1,4 +1 @@ |
26 |
-DIST freecad-0.19.2-0005-Make-smesh-compile-with-vtk9.patch.xz 5368 BLAKE2B 69bafefd049effe3c31719bb2c23d32e8ba7ad58235c58ac8279ba6c036feaf1b97d5751cf2d68896e7489803103b2d0f92f76e61b3ccc97ef05a95b337ca5c2 SHA512 66585cc13fb3b0b026cf9dbd761c8ba1c1fe4d4f7db2e144ddd97706e02ccd78f4a43ac7cd93ddcae6e73933bf41d4cbd4d94bcdff8804b81378a6d946c7b070 |
27 |
-DIST freecad-0.19.4.tar.gz 296990652 BLAKE2B 6b252198616f7731144d000307a7f186eb2b24e07b85e008d0aae0f60a732fef5598c06c5c66b70fa44114f05afbc7d81b15c71bbb147bc2e458ea90cc81ee45 SHA512 58e5e6bb4ed40ce7f3a0b653cdb0371208189b9ca266f1c29a8f9077c4e56861b3925f695718fba34781254220f8a8919a2e2a501d43573b2c733f8b21c12c1f |
28 |
DIST freecad-0.20.1.tar.gz 75545072 BLAKE2B be2d2970b80523b34f7400a2762f997b815a5ae90dcb6cee6e560316712ebe3ab8a64053bd73e9f50548ff076920af0304a6780c94c4f3708d30b82bbee3b5d9 SHA512 ab4cfab4008300b8273769b9395602261c88c19f0893dabe6498a2eac020f1fe3fbf7284928144f1d4147d8627a47d83a40a1777a298673da2e24d956006d827 |
29 |
-DIST freecad-0.20.tar.gz 75452957 BLAKE2B 600baf30541dabb7cf5df22a2d0fef0972d1b9cbf7c8425b9e2fadae54a0b0a1b75bb252fa18ecbf68fa5649ce459a88c71d69e000899e4b46d5c59fe956fcd1 SHA512 b1d91efa873f180bf635f6006d6c4b7a33b64b630955c639fe923bb340ce8104474688e05eea151d1ac1557388947ae81618cfc8a578f14706aa07b5cdc45cda |
30 |
|
31 |
diff --git a/media-gfx/freecad/files/freecad-0.19.2-0006-add-boost-serialization-to-find_package.patch b/media-gfx/freecad/files/freecad-0.19.2-0006-add-boost-serialization-to-find_package.patch |
32 |
deleted file mode 100644 |
33 |
index f9120e051919..000000000000 |
34 |
--- a/media-gfx/freecad/files/freecad-0.19.2-0006-add-boost-serialization-to-find_package.patch |
35 |
+++ /dev/null |
36 |
@@ -1,53 +0,0 @@ |
37 |
-From fc4ae2ff217c67eae39947ed6b655b8afaa83859 Mon Sep 17 00:00:00 2001 |
38 |
-From: Bernd Waibel <waebbl-gentoo@××××××.net> |
39 |
-Date: Sun, 20 Jun 2021 15:38:45 +0200 |
40 |
-Subject: [PATCH] add boost::serialization to find_package |
41 |
- |
42 |
-Swaps SetupBoost() after SetupSalomeSMESH() has been called. |
43 |
-SetupSalomeSMESH() looks for vtk, which searches for boost::serialization |
44 |
-overriding the default libraries detected by SetupBoost(). |
45 |
- |
46 |
-Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
47 |
---- |
48 |
- CMakeLists.txt | 4 +++- |
49 |
- cMake/FreeCAD_Helpers/SetupBoost.cmake | 2 +- |
50 |
- 2 files changed, 4 insertions(+), 2 deletions(-) |
51 |
- |
52 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
53 |
-index 5b17736..c241ebe 100644 |
54 |
---- a/CMakeLists.txt |
55 |
-+++ b/CMakeLists.txt |
56 |
-@@ -45,7 +45,6 @@ if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER) |
57 |
- SetupPython() |
58 |
- SetupPCL() |
59 |
- SetupPybind11() |
60 |
-- SetupBoost() |
61 |
- SetupXercesC() |
62 |
- find_package(ZLIB REQUIRED) |
63 |
- find_package(PyCXX REQUIRED) |
64 |
-@@ -57,6 +56,9 @@ if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER) |
65 |
- SetupOpenGL() |
66 |
- endif(BUILD_GUI) |
67 |
- SetupSalomeSMESH() |
68 |
-+ # needs to be called after SMESH which pulls in VTK, which only add boost::serialization |
69 |
-+ # overriding the values of SetupBoost() |
70 |
-+ SetupBoost() |
71 |
- if (BUILD_FEM_NETGEN) |
72 |
- find_package(NETGEN) |
73 |
- endif(BUILD_FEM_NETGEN) |
74 |
-diff --git a/cMake/FreeCAD_Helpers/SetupBoost.cmake b/cMake/FreeCAD_Helpers/SetupBoost.cmake |
75 |
-index 76c6d64..77c415b 100644 |
76 |
---- a/cMake/FreeCAD_Helpers/SetupBoost.cmake |
77 |
-+++ b/cMake/FreeCAD_Helpers/SetupBoost.cmake |
78 |
-@@ -3,7 +3,7 @@ macro(SetupBoost) |
79 |
- |
80 |
- set(_boost_TEST_VERSIONS ${Boost_ADDITIONAL_VERSIONS}) |
81 |
- |
82 |
-- set (BOOST_COMPONENTS filesystem program_options regex system thread) |
83 |
-+ set (BOOST_COMPONENTS filesystem program_options regex serialization system thread) |
84 |
- find_package(Boost ${BOOST_MIN_VERSION} |
85 |
- COMPONENTS ${BOOST_COMPONENTS} REQUIRED) |
86 |
- |
87 |
--- |
88 |
-2.32.0 |
89 |
- |
90 |
|
91 |
diff --git a/media-gfx/freecad/files/freecad-0.19.4-backport-correctly-find-PySide2Tools.patch b/media-gfx/freecad/files/freecad-0.19.4-backport-correctly-find-PySide2Tools.patch |
92 |
deleted file mode 100644 |
93 |
index b297727033db..000000000000 |
94 |
--- a/media-gfx/freecad/files/freecad-0.19.4-backport-correctly-find-PySide2Tools.patch |
95 |
+++ /dev/null |
96 |
@@ -1,106 +0,0 @@ |
97 |
-From https://github.com/FreeCAD/FreeCAD/tree/6b062b25e118fc6d260d8caff6cf46fafd6cfa0f |
98 |
-From: Bernd Waibel <waebbl-gentoo@××××××.net> |
99 |
-Date: Sat, 2 Apr 2022 09:30:09 +0200 |
100 |
-Subject: [PATCH] backport correctly find PySide2Tools |
101 |
- |
102 |
-Backported from current HEAD |
103 |
- |
104 |
-Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
105 |
---- a/cMake/FindPySide2Tools.cmake |
106 |
-+++ b/cMake/FindPySide2Tools.cmake |
107 |
-@@ -23,7 +23,7 @@ endif(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
108 |
- # Since Qt v5.14, pyside2-uic and pyside2-rcc are directly provided by Qt5Core uic and rcc, with '-g python' option |
109 |
- # We test Qt5Core version to act accordingly |
110 |
- |
111 |
--FIND_PACKAGE(Qt5Core) |
112 |
-+FIND_PACKAGE(Qt5 COMPONENTS Core) |
113 |
- |
114 |
- IF(Qt5Core_VERSION VERSION_LESS 5.14) |
115 |
- # Legacy (< 5.14) |
116 |
-@@ -33,13 +33,20 @@ IF(Qt5Core_VERSION VERSION_LESS 5.14) |
117 |
- set(RCCOPTIONS "") |
118 |
- ELSE(Qt5Core_VERSION VERSION_LESS 5.14) |
119 |
- # New (>= 5.14) |
120 |
-- FIND_PROGRAM(PYSIDE2UICBINARY NAMES uic-qt5 uic pyside2-uic) |
121 |
-- set(UICOPTIONS "--generator=python") |
122 |
-- FIND_PROGRAM(PYSIDE2RCCBINARY NAMES rcc-qt5 rcc pyside2-rcc) |
123 |
-- set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1") |
124 |
-+ if (TARGET Qt::uic) |
125 |
-+ get_property(PYSIDE2UICBINARY TARGET Qt::uic PROPERTY LOCATION) |
126 |
-+ set(UICOPTIONS "--generator=python") |
127 |
-+ endif() |
128 |
-+ if (TARGET Qt::rcc) |
129 |
-+ get_property(PYSIDE2RCCBINARY TARGET Qt::rcc PROPERTY LOCATION) |
130 |
-+ set(RCCOPTIONS "--generator=python" "--compress-algo=zlib" "--compress=1") |
131 |
-+ endif() |
132 |
- ENDIF(Qt5Core_VERSION VERSION_LESS 5.14) |
133 |
- |
134 |
- MACRO(PYSIDE_WRAP_UI outfiles) |
135 |
-+ if (NOT PYSIDE2UICBINARY) |
136 |
-+ message(FATAL_ERROR "Qt uic is required for generating ${ARGN}") |
137 |
-+ endif() |
138 |
- FOREACH(it ${ARGN}) |
139 |
- GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) |
140 |
- GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) |
141 |
-@@ -58,7 +65,7 @@ MACRO(PYSIDE_WRAP_UI outfiles) |
142 |
- # we follow the tool command with in-place sed. |
143 |
- ADD_CUSTOM_COMMAND(OUTPUT ${outfile} |
144 |
- COMMAND "${PYSIDE2UICBINARY}" ${UICOPTIONS} "${infile}" -o "${outfile}" |
145 |
-- COMMAND sed -i "/^# /d" "${outfile}" |
146 |
-+ COMMAND sed "/^# /d" "${outfile}" >"${outfile}.tmp" && mv "${outfile}.tmp" "${outfile}" |
147 |
- MAIN_DEPENDENCY "${infile}" |
148 |
- ) |
149 |
- endif() |
150 |
-@@ -67,6 +74,9 @@ MACRO(PYSIDE_WRAP_UI outfiles) |
151 |
- ENDMACRO (PYSIDE_WRAP_UI) |
152 |
- |
153 |
- MACRO(PYSIDE_WRAP_RC outfiles) |
154 |
-+ if (NOT PYSIDE2RCCBINARY) |
155 |
-+ message(FATAL_ERROR "Qt rcc is required for generating ${ARGN}") |
156 |
-+ endif() |
157 |
- FOREACH(it ${ARGN}) |
158 |
- GET_FILENAME_COMPONENT(outfile ${it} NAME_WE) |
159 |
- GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE) |
160 |
-@@ -85,7 +95,7 @@ MACRO(PYSIDE_WRAP_RC outfiles) |
161 |
- # we follow the tool command with in-place sed. |
162 |
- ADD_CUSTOM_COMMAND(OUTPUT "${outfile}" |
163 |
- COMMAND "${PYSIDE2RCCBINARY}" ${RCCOPTIONS} "${infile}" ${PY_ATTRIBUTE} -o "${outfile}" |
164 |
-- COMMAND sed -i "/^# /d" "${outfile}" |
165 |
-+ COMMAND sed "/^# /d" "${outfile}" >"${outfile}.tmp" && mv "${outfile}.tmp" "${outfile}" |
166 |
- MAIN_DEPENDENCY "${infile}" |
167 |
- ) |
168 |
- endif() |
169 |
-@@ -93,20 +103,17 @@ MACRO(PYSIDE_WRAP_RC outfiles) |
170 |
- ENDFOREACH(it) |
171 |
- ENDMACRO (PYSIDE_WRAP_RC) |
172 |
- |
173 |
--IF(EXISTS ${PYSIDE2UICBINARY} AND EXISTS ${PYSIDE2RCCBINARY}) |
174 |
-- set(PYSIDE2_TOOLS_FOUND TRUE) |
175 |
--ENDIF(EXISTS ${PYSIDE2UICBINARY} AND EXISTS ${PYSIDE2RCCBINARY}) |
176 |
-- |
177 |
- if(PYSIDE2RCCBINARY AND PYSIDE2UICBINARY) |
178 |
-+ set(PYSIDE2_TOOLS_FOUND TRUE) |
179 |
-+ if (NOT PySide2Tools_FIND_QUIETLY) |
180 |
-+ message(STATUS "Found PySide2 tools: ${PYSIDE2UICBINARY}, ${PYSIDE2RCCBINARY}") |
181 |
-+ endif (NOT PySide2Tools_FIND_QUIETLY) |
182 |
-+else(PYSIDE2RCCBINARY AND PYSIDE2UICBINARY) |
183 |
-+ if(PySide2Tools_FIND_REQUIRED) |
184 |
-+ message(FATAL_ERROR "PySide2 tools could not be found, but are required.") |
185 |
-+ else(PySide2Tools_FIND_REQUIRED) |
186 |
- if (NOT PySide2Tools_FIND_QUIETLY) |
187 |
-- message(STATUS "Found PySide2 tools: ${PYSIDE2UICBINARY}, ${PYSIDE2RCCBINARY}") |
188 |
-+ message(STATUS "PySide2 tools: not found.") |
189 |
- endif (NOT PySide2Tools_FIND_QUIETLY) |
190 |
--else(PYSIDE2RCCBINARY AND PYSIDE2UICBINARY) |
191 |
-- if(PySide2Tools_FIND_REQUIRED) |
192 |
-- message(FATAL_ERROR "PySide2 tools could not be found, but are required.") |
193 |
-- else(PySide2Tools_FIND_REQUIRED) |
194 |
-- if (NOT PySide2Tools_FIND_QUIETLY) |
195 |
-- message(STATUS "PySide2 tools: not found.") |
196 |
-- endif (NOT PySide2Tools_FIND_QUIETLY) |
197 |
-- endif(PySide2Tools_FIND_REQUIRED) |
198 |
-+ endif(PySide2Tools_FIND_REQUIRED) |
199 |
- endif(PYSIDE2RCCBINARY AND PYSIDE2UICBINARY) |
200 |
--- |
201 |
-2.35.1 |
202 |
- |
203 |
|
204 |
diff --git a/media-gfx/freecad/freecad-0.19.4-r1.ebuild b/media-gfx/freecad/freecad-0.19.4-r1.ebuild |
205 |
deleted file mode 100644 |
206 |
index c11fb328db6d..000000000000 |
207 |
--- a/media-gfx/freecad/freecad-0.19.4-r1.ebuild |
208 |
+++ /dev/null |
209 |
@@ -1,325 +0,0 @@ |
210 |
-# Copyright 1999-2022 Gentoo Authors |
211 |
-# Distributed under the terms of the GNU General Public License v2 |
212 |
- |
213 |
-EAPI=8 |
214 |
- |
215 |
-PYTHON_COMPAT=( python3_{8..10} ) |
216 |
- |
217 |
-inherit check-reqs cmake optfeature python-single-r1 xdg |
218 |
- |
219 |
-DESCRIPTION="QT based Computer Aided Design application" |
220 |
-HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" |
221 |
- |
222 |
-MY_PN=FreeCAD |
223 |
- |
224 |
-if [[ ${PV} = *9999 ]]; then |
225 |
- inherit git-r3 |
226 |
- EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" |
227 |
- S="${WORKDIR}/freecad-${PV}" |
228 |
-else |
229 |
- MY_PV=$(ver_cut 1-2) |
230 |
- MY_PV=$(ver_rs 1 '_' ${MY_PV}) |
231 |
- SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz |
232 |
- https://raw.githubusercontent.com/waebbl/waebbl-gentoo/master/patches/${PN}-0.19.2-0005-Make-smesh-compile-with-vtk9.patch.xz" |
233 |
- KEYWORDS="amd64" |
234 |
- S="${WORKDIR}/FreeCAD-${PV}" |
235 |
-fi |
236 |
- |
237 |
-# code is licensed LGPL-2 |
238 |
-# examples are licensed CC-BY-SA (without note of specific version) |
239 |
-LICENSE="LGPL-2 CC-BY-SA-4.0" |
240 |
-SLOT="0" |
241 |
-IUSE="debug headless pcl test" |
242 |
-RESTRICT="!test? ( test )" |
243 |
- |
244 |
-FREECAD_EXPERIMENTAL_MODULES="cloud plot ship" |
245 |
-FREECAD_STABLE_MODULES="addonmgr drawing fem idf image inspection |
246 |
- material openscad part-design path points raytracing robot show |
247 |
- surface techdraw tux" |
248 |
- |
249 |
-for module in ${FREECAD_STABLE_MODULES}; do |
250 |
- IUSE="${IUSE} +${module}" |
251 |
-done |
252 |
-for module in ${FREECAD_EXPERIMENTAL_MODULES}; do |
253 |
- IUSE="${IUSE} ${module}" |
254 |
-done |
255 |
-unset module |
256 |
- |
257 |
-RDEPEND=" |
258 |
- ${PYTHON_DEPS} |
259 |
- dev-libs/OpenNI2[opengl(+)] |
260 |
- dev-libs/libspnav[X] |
261 |
- dev-libs/xerces-c[icu] |
262 |
- dev-qt/designer:5 |
263 |
- dev-qt/qtconcurrent:5 |
264 |
- dev-qt/qtcore:5 |
265 |
- dev-qt/qtgui:5 |
266 |
- dev-qt/qtnetwork:5 |
267 |
- dev-qt/qtopengl:5 |
268 |
- dev-qt/qtprintsupport:5 |
269 |
- dev-qt/qtsvg:5 |
270 |
- dev-qt/qtwebengine:5[widgets] |
271 |
- dev-qt/qtwidgets:5 |
272 |
- dev-qt/qtx11extras:5 |
273 |
- dev-qt/qtxml:5 |
274 |
- >=media-libs/coin-4.0.0 |
275 |
- media-libs/freetype |
276 |
- media-libs/qhull:= |
277 |
- sci-libs/flann[openmp] |
278 |
- sci-libs/hdf5:=[fortran,zlib] |
279 |
- >=sci-libs/med-4.0.0-r1[python,${PYTHON_SINGLE_USEDEP}] |
280 |
- <sci-libs/opencascade-7.6.0:=[vtk(+)] |
281 |
- sci-libs/orocos_kdl:= |
282 |
- sys-libs/zlib |
283 |
- virtual/glu |
284 |
- virtual/libusb:1 |
285 |
- virtual/opengl |
286 |
- cloud? ( |
287 |
- dev-libs/openssl:= |
288 |
- net-misc/curl |
289 |
- ) |
290 |
- fem? ( sci-libs/vtk:=[boost(+),python,qt5,rendering,${PYTHON_SINGLE_USEDEP}] ) |
291 |
- openscad? ( media-gfx/openscad ) |
292 |
- pcl? ( >=sci-libs/pcl-1.8.1:=[opengl,openni2(+),qt5(+),vtk(+)] ) |
293 |
- $(python_gen_cond_dep ' |
294 |
- dev-libs/boost:=[python,${PYTHON_USEDEP}] |
295 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
296 |
- dev-python/numpy[${PYTHON_USEDEP}] |
297 |
- >=dev-python/pivy-0.6.5[${PYTHON_USEDEP}] |
298 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
299 |
- dev-python/pyside2[gui,svg,${PYTHON_USEDEP}] |
300 |
- dev-python/shiboken2[${PYTHON_USEDEP}] |
301 |
- addonmgr? ( dev-python/GitPython[${PYTHON_USEDEP}] ) |
302 |
- fem? ( dev-python/ply[${PYTHON_USEDEP}] ) |
303 |
- ') |
304 |
-" |
305 |
-DEPEND=" |
306 |
- ${RDEPEND} |
307 |
- >=dev-cpp/eigen-3.3.1:3 |
308 |
-" |
309 |
-BDEPEND=" |
310 |
- app-text/dos2unix |
311 |
- dev-lang/swig |
312 |
-" |
313 |
- |
314 |
-# To get required dependencies: |
315 |
-# 'grep REQUIRES_MODS cMake/FreeCAD_Helpers/CheckInterModuleDependencies.cmake' |
316 |
-# We set the following requirements by default: |
317 |
-# arch, draft, drawing, import, mesh, part, qt5, sketcher, spreadsheet, start, web. |
318 |
-# |
319 |
-# Additionally, we auto-enable mesh_part, flat_mesh and smesh |
320 |
-# Fem actually needs smesh, but as long as we don't have a smesh package, we enable |
321 |
-# smesh through the mesh USE flag. Note however, the fem<-smesh dependency isn't |
322 |
-# reflected by the REQUIRES_MODS macro, but at |
323 |
-# cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake:187. |
324 |
-# |
325 |
-# The increase in auto-enabled workbenches is due to their need in parts of the |
326 |
-# test suite when compiled with a minimal set of USE flags. |
327 |
-REQUIRED_USE=" |
328 |
- ${PYTHON_REQUIRED_USE} |
329 |
- inspection? ( points ) |
330 |
- path? ( robot ) |
331 |
- ship? ( image plot ) |
332 |
- techdraw? ( drawing ) |
333 |
-" |
334 |
- |
335 |
-PATCHES=( |
336 |
- "${FILESDIR}"/${P}-Gentoo-specific-don-t-check-vcs.patch |
337 |
- "${FILESDIR}"/${P}-backport-correctly-find-PySide2Tools.patch |
338 |
- "${FILESDIR}"/${PN}-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch |
339 |
- "${WORKDIR}"/${PN}-0.19.2-0005-Make-smesh-compile-with-vtk9.patch |
340 |
- "${FILESDIR}"/${PN}-0.19.2-0006-add-boost-serialization-to-find_package.patch |
341 |
-) |
342 |
- |
343 |
-DOCS=( CODE_OF_CONDUCT.md ChangeLog.txt README.md ) |
344 |
- |
345 |
-CHECKREQS_DISK_BUILD="2G" |
346 |
- |
347 |
-pkg_setup() { |
348 |
- check-reqs_pkg_setup |
349 |
- python-single-r1_pkg_setup |
350 |
- [[ -z ${CASROOT} ]] && die "\${CASROOT} not set, please run eselect opencascade" |
351 |
-} |
352 |
- |
353 |
-src_prepare() { |
354 |
- # the upstream provided file doesn't find the coin doc tag file, |
355 |
- # but cmake ships a working one, so we use this. |
356 |
- rm "${S}/cMake/FindCoin3D.cmake" || die |
357 |
- |
358 |
- # Fix desktop file |
359 |
- sed -e 's/Exec=FreeCAD/Exec=freecad/' -i src/XDGData/org.freecadweb.FreeCAD.desktop || die |
360 |
- |
361 |
- find "${S}" -type f -exec dos2unix -q {} \; || die "failed to convert to unix line endings" |
362 |
- |
363 |
- cmake_src_prepare |
364 |
-} |
365 |
- |
366 |
-src_configure() { |
367 |
- local mycmakeargs=( |
368 |
- -DBUILD_ADDONMGR=$(usex addonmgr) |
369 |
- -DBUILD_ARCH=ON |
370 |
- -DBUILD_ASSEMBLY=OFF # deprecated |
371 |
- -DBUILD_CLOUD=$(usex cloud) |
372 |
- -DBUILD_COMPLETE=OFF # deprecated |
373 |
- -DBUILD_DRAFT=ON |
374 |
- -DBUILD_DRAWING=$(usex drawing) |
375 |
- -DBUILD_ENABLE_CXX_STD:STRING="C++17" # needed for >=boost-1.77.0 |
376 |
- -DBUILD_FEM=$(usex fem) |
377 |
- -DBUILD_FEM_NETGEN=OFF |
378 |
- -DBUILD_FLAT_MESH=ON |
379 |
- -DBUILD_FORCE_DIRECTORY=ON # force building in a dedicated directory |
380 |
- -DBUILD_FREETYPE=ON # automagic dep |
381 |
- -DBUILD_GUI=$(usex !headless) |
382 |
- -DBUILD_IDF=$(usex idf) |
383 |
- -DBUILD_IMAGE=$(usex image) |
384 |
- -DBUILD_IMPORT=ON # import module for various file formats |
385 |
- -DBUILD_INSPECTION=$(usex inspection) |
386 |
- -DBUILD_JTREADER=OFF # code has been removed upstream, but option is still there |
387 |
- -DBUILD_MATERIAL=$(usex material) |
388 |
- -DBUILD_MESH=ON |
389 |
- -DBUILD_MESH_PART=ON |
390 |
- -DBUILD_OPENSCAD=$(usex openscad) |
391 |
- -DBUILD_PART=ON |
392 |
- -DBUILD_PART_DESIGN=$(usex part-design) |
393 |
- -DBUILD_PATH=$(usex path) |
394 |
- -DBUILD_PLOT=$(usex plot) # conflicts with possible external workbench |
395 |
- -DBUILD_POINTS=$(usex points) |
396 |
- -DBUILD_QT5=ON # OFF means to use Qt4 |
397 |
- -DBUILD_RAYTRACING=$(usex raytracing) |
398 |
- -DBUILD_REVERSEENGINEERING=OFF # currently only an empty sandbox |
399 |
- -DBUILD_ROBOT=$(usex robot) |
400 |
- -DBUILD_SHIP=$(usex ship) # conflicts with possible external workbench |
401 |
- -DBUILD_SHOW=$(usex show) |
402 |
- -DBUILD_SKETCHER=ON # needed by draft workspace |
403 |
- -DBUILD_SMESH=ON |
404 |
- -DBUILD_SPREADSHEET=ON |
405 |
- -DBUILD_START=ON |
406 |
- -DBUILD_SURFACE=$(usex surface) |
407 |
- -DBUILD_TECHDRAW=$(usex techdraw) |
408 |
- -DBUILD_TEST=ON # always build test workbench for run-time testing |
409 |
- -DBUILD_TUX=$(usex tux) |
410 |
- -DBUILD_VR=OFF |
411 |
- -DBUILD_WEB=ON # needed by start workspace |
412 |
- -DBUILD_WITH_CONDA=OFF |
413 |
- |
414 |
- -DCMAKE_INSTALL_DATADIR=/usr/share/${PN}/data |
415 |
- -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
416 |
- -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${PN} |
417 |
- -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN} |
418 |
- |
419 |
- -DFREECAD_BUILD_DEBIAN=OFF |
420 |
- |
421 |
- -DFREECAD_USE_EXTERNAL_KDL=ON |
422 |
- -DFREECAD_USE_EXTERNAL_SMESH=OFF # no package in Gentoo |
423 |
- -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF # doesn't work yet, also no package in Gentoo tree |
424 |
- -DFREECAD_USE_FREETYPE=ON |
425 |
- -DFREECAD_USE_OCC_VARIANT:STRING="Official Version" |
426 |
- -DFREECAD_USE_PCL=$(usex pcl) |
427 |
- -DFREECAD_USE_PYBIND11=ON |
428 |
- -DFREECAD_USE_QT_FILEDIALOG=ON |
429 |
- -DFREECAD_USE_QTWEBMODULE:STRING="Qt WebEngine" |
430 |
- |
431 |
- # install python modules to site-packages' dir. True only for the main package, |
432 |
- # sub-packages will still be installed inside /usr/lib64/freecad |
433 |
- -DINSTALL_TO_SITEPACKAGES=ON |
434 |
- |
435 |
- # Use the version of shiboken2 that matches the selected python version |
436 |
- -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" |
437 |
- -DPython3_EXECUTABLE=${PYTHON} |
438 |
- ) |
439 |
- |
440 |
- if use debug; then |
441 |
- mycmakeargs+=( |
442 |
- -DBUILD_SANDBOX=ON |
443 |
- -DBUILD_TEMPLATE=ON |
444 |
- ) |
445 |
- else |
446 |
- mycmakeargs+=( |
447 |
- -DBUILD_SANDBOX=OFF |
448 |
- -DBUILD_TEMPLATE=OFF |
449 |
- ) |
450 |
- fi |
451 |
- |
452 |
- cmake_src_configure |
453 |
-} |
454 |
- |
455 |
-# We use the FreeCADCmd binary instead of the FreeCAD binary here |
456 |
-# for two reasons: |
457 |
-# 1. It works out of the box with USE=headless as well, not needing a guard |
458 |
-# 2. We don't need virtualx.eclass and it's dependencies |
459 |
-# The exported environment variables are needed, so freecad does know |
460 |
-# where to save it's temporary files, and where to look and write it's |
461 |
-# configuration. Without those, there are sandbox violation, when it |
462 |
-# tries to create /var/lib/portage/home/.FreeCAD directory. |
463 |
-src_test() { |
464 |
- pushd "${BUILD_DIR}" > /dev/null || die |
465 |
- export FREECAD_USER_HOME="${HOME}" |
466 |
- export FREECAD_USER_DATA="${T}" |
467 |
- export FREECAD_USER_TEMP="${T}" |
468 |
- nonfatal ./bin/FreeCADCmd --run-test 0 |
469 |
- popd > /dev/null || die |
470 |
-} |
471 |
- |
472 |
-src_install() { |
473 |
- cmake_src_install |
474 |
- |
475 |
- dobin src/Tools/freecad-thumbnailer |
476 |
- |
477 |
- if ! use headless; then |
478 |
- dosym -r /usr/$(get_libdir)/${PN}/bin/FreeCAD /usr/bin/freecad |
479 |
- mv "${ED}"/usr/$(get_libdir)/${PN}/share/* "${ED}"/usr/share || die "failed to move shared resources" |
480 |
- fi |
481 |
- dosym -r /usr/$(get_libdir)/${PN}/bin/FreeCADCmd /usr/bin/freecadcmd |
482 |
- |
483 |
- python_optimize "${ED}"/usr/share/${PN}/data/Mod/Start/StartPage "${ED}"/usr/$(get_libdir)/${PN}{/Ext,/Mod}/ |
484 |
- # compile main package in python site-packages as well |
485 |
- python_optimize |
486 |
-} |
487 |
- |
488 |
-pkg_postinst() { |
489 |
- xdg_pkg_postinst |
490 |
- |
491 |
- if use plot; then |
492 |
- einfo "Note: You are enabling the 'plot' USE flag." |
493 |
- einfo "This conflicts with the plot workbench that can be loaded" |
494 |
- einfo "via the addon manager! You can only install one of those." |
495 |
- fi |
496 |
- |
497 |
- if use ship; then |
498 |
- einfo "Note: You are enabling the 'ship' USE flag." |
499 |
- einfo "This conflicts with the ship workbench that can be loaded" |
500 |
- einfo "via the addon manager! You can only install one of those." |
501 |
- fi |
502 |
- |
503 |
- einfo "You can load a lot of additional workbenches using the integrated" |
504 |
- einfo "AddonManager." |
505 |
- |
506 |
- # ToDo: check opencv, pysolar (::science), elmerfem (::science) |
507 |
- # ifc++, ifcopenshell, netgen, z88 (no pkgs), calculix-ccx (::waebbl) |
508 |
- einfo "There are a lot of additional tools, for which FreeCAD has builtin" |
509 |
- einfo "support. Some of them are available in Gentoo. Take a look at" |
510 |
- einfo "https://wiki.freecadweb.org/Installing#External_software_supported_by_FreeCAD" |
511 |
- optfeature_header "Computational utilities" |
512 |
- optfeature "BLAS library" sci-libs/openblas |
513 |
- optfeature "Statistical computation with Python" dev-python/pandas |
514 |
- optfeature "Use scientific computation with Python" dev-python/scipy |
515 |
- optfeature "Use symbolic math with Python" dev-python/sympy |
516 |
- optfeature_header "Imaging, Plotting and Rendering utilities" |
517 |
- optfeature "Dependency graphs" media-gfx/graphviz |
518 |
- optfeature "PBR Rendering" media-gfx/povray |
519 |
- optfeature_header "Import / Export" |
520 |
- optfeature "Interact with git repositories" dev-python/GitPython |
521 |
- optfeature "Work with COLLADA documents" dev-python/pycollada |
522 |
- optfeature "YAML importer and emitter" dev-python/pyyaml |
523 |
- optfeature "Importing and exporting 2D AutoCAD DWG files" media-gfx/libredwg |
524 |
- optfeature "Importing and exporting geospatial data formats" sci-libs/gdal |
525 |
- optfeature "Working with projection data" sci-libs/proj |
526 |
- optfeature_header "Meshing and FEM" |
527 |
- optfeature "FEM mesh generator" sci-libs/gmsh |
528 |
- optfeature "Triangulating meshes" sci-libs/gts |
529 |
- optfeature "Visualization" sci-visualization/paraview |
530 |
-} |
531 |
- |
532 |
-pkg_postrm() { |
533 |
- xdg_pkg_postrm |
534 |
-} |
535 |
|
536 |
diff --git a/media-gfx/freecad/freecad-0.20-r1.ebuild b/media-gfx/freecad/freecad-0.20-r1.ebuild |
537 |
deleted file mode 100644 |
538 |
index 855707bb154b..000000000000 |
539 |
--- a/media-gfx/freecad/freecad-0.20-r1.ebuild |
540 |
+++ /dev/null |
541 |
@@ -1,309 +0,0 @@ |
542 |
-# Copyright 1999-2022 Gentoo Authors |
543 |
-# Distributed under the terms of the GNU General Public License v2 |
544 |
- |
545 |
-EAPI=8 |
546 |
- |
547 |
-PYTHON_COMPAT=( python3_{8..10} ) |
548 |
- |
549 |
-inherit check-reqs cmake optfeature python-single-r1 xdg |
550 |
- |
551 |
-DESCRIPTION="QT based Computer Aided Design application" |
552 |
-HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" |
553 |
- |
554 |
-MY_PN=FreeCAD |
555 |
- |
556 |
-if [[ ${PV} = *9999 ]]; then |
557 |
- inherit git-r3 |
558 |
- EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" |
559 |
- S="${WORKDIR}/freecad-${PV}" |
560 |
-else |
561 |
- SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
562 |
- KEYWORDS="~amd64" |
563 |
- S="${WORKDIR}/FreeCAD-${PV}" |
564 |
-fi |
565 |
- |
566 |
-# code is licensed LGPL-2 |
567 |
-# examples are licensed CC-BY-SA (without note of specific version) |
568 |
-LICENSE="LGPL-2 CC-BY-SA-4.0" |
569 |
-SLOT="0" |
570 |
-# directory for USE=designer not yet packaged in tarball |
571 |
-# see https://forum.freecadweb.org/viewtopic.php?f=4&t=69450 |
572 |
-IUSE="debug headless test" |
573 |
- |
574 |
-FREECAD_EXPERIMENTAL_MODULES="cloud pcl" |
575 |
-FREECAD_STABLE_MODULES="addonmgr fem idf image inspection material |
576 |
- openscad part-design path points raytracing robot show surface |
577 |
- techdraw tux" |
578 |
- |
579 |
-for module in ${FREECAD_STABLE_MODULES}; do |
580 |
- IUSE="${IUSE} +${module}" |
581 |
-done |
582 |
-for module in ${FREECAD_EXPERIMENTAL_MODULES}; do |
583 |
- IUSE="${IUSE} ${module}" |
584 |
-done |
585 |
-unset module |
586 |
- |
587 |
-RESTRICT="!test? ( test )" |
588 |
- |
589 |
-RDEPEND=" |
590 |
- ${PYTHON_DEPS} |
591 |
- dev-libs/OpenNI2[opengl(+)] |
592 |
- dev-libs/libspnav[X] |
593 |
- dev-libs/xerces-c[icu] |
594 |
- dev-qt/designer:5 |
595 |
- dev-qt/qtconcurrent:5 |
596 |
- dev-qt/qtcore:5 |
597 |
- dev-qt/qtgui:5 |
598 |
- dev-qt/qtnetwork:5 |
599 |
- dev-qt/qtopengl:5 |
600 |
- dev-qt/qtprintsupport:5 |
601 |
- dev-qt/qtsvg:5 |
602 |
- dev-qt/qtwebengine:5[widgets] |
603 |
- dev-qt/qtwidgets:5 |
604 |
- dev-qt/qtx11extras:5 |
605 |
- dev-qt/qtxml:5 |
606 |
- >=media-libs/coin-4.0.0 |
607 |
- media-libs/freetype |
608 |
- media-libs/qhull:= |
609 |
- sci-libs/flann[openmp] |
610 |
- sci-libs/hdf5:=[fortran,zlib] |
611 |
- >=sci-libs/med-4.0.0-r1[python,${PYTHON_SINGLE_USEDEP}] |
612 |
- sci-libs/opencascade:=[json,vtk] |
613 |
- sci-libs/orocos_kdl:= |
614 |
- sys-libs/zlib |
615 |
- virtual/glu |
616 |
- virtual/libusb:1 |
617 |
- virtual/opengl |
618 |
- cloud? ( |
619 |
- dev-libs/openssl:= |
620 |
- net-misc/curl |
621 |
- ) |
622 |
- fem? ( sci-libs/vtk:=[boost(+),python,qt5,rendering,${PYTHON_SINGLE_USEDEP}] ) |
623 |
- openscad? ( media-gfx/openscad ) |
624 |
- pcl? ( >=sci-libs/pcl-1.8.1:=[opengl,openni2,qt5,vtk] ) |
625 |
- $(python_gen_cond_dep ' |
626 |
- dev-libs/boost:=[python,${PYTHON_USEDEP}] |
627 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
628 |
- dev-python/numpy[${PYTHON_USEDEP}] |
629 |
- >=dev-python/pivy-0.6.5[${PYTHON_USEDEP}] |
630 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
631 |
- dev-python/pyside2[gui,svg,webchannel,webengine,${PYTHON_USEDEP}] |
632 |
- dev-python/shiboken2[${PYTHON_USEDEP}] |
633 |
- addonmgr? ( dev-python/GitPython[${PYTHON_USEDEP}] ) |
634 |
- fem? ( dev-python/ply[${PYTHON_USEDEP}] ) |
635 |
- ') |
636 |
-" |
637 |
-DEPEND=" |
638 |
- ${RDEPEND} |
639 |
- >=dev-cpp/eigen-3.3.1:3 |
640 |
-" |
641 |
-BDEPEND=" |
642 |
- app-text/dos2unix |
643 |
- dev-lang/swig |
644 |
-" |
645 |
- |
646 |
-# To get required dependencies: |
647 |
-# 'grep REQUIRES_MODS cMake/FreeCAD_Helpers/CheckInterModuleDependencies.cmake' |
648 |
-# We set the following requirements by default: |
649 |
-# arch, draft, drawing, import, mesh, part, qt5, sketcher, spreadsheet, start, web. |
650 |
-# |
651 |
-# Additionally, we auto-enable mesh_part, flat_mesh and smesh |
652 |
-# Fem actually needs smesh, but as long as we don't have a smesh package, we enable |
653 |
-# smesh through the mesh USE flag. Note however, the fem<-smesh dependency isn't |
654 |
-# reflected by the REQUIRES_MODS macro, but at |
655 |
-# cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake:187. |
656 |
-# |
657 |
-# The increase in auto-enabled workbenches is due to their need in parts of the |
658 |
-# test suite when compiled with a minimal set of USE flags. |
659 |
-REQUIRED_USE=" |
660 |
- ${PYTHON_REQUIRED_USE} |
661 |
- inspection? ( points ) |
662 |
- path? ( robot ) |
663 |
-" |
664 |
- |
665 |
-PATCHES=( |
666 |
- "${FILESDIR}"/${PN}-0.19.4-Gentoo-specific-don-t-check-vcs.patch |
667 |
- "${FILESDIR}"/${PN}-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch |
668 |
-) |
669 |
- |
670 |
-DOCS=( CODE_OF_CONDUCT.md ChangeLog.txt README.md ) |
671 |
- |
672 |
-CHECKREQS_DISK_BUILD="2G" |
673 |
- |
674 |
-pkg_setup() { |
675 |
- check-reqs_pkg_setup |
676 |
- python-single-r1_pkg_setup |
677 |
- [[ -z ${CASROOT} ]] && die "\${CASROOT} not set, please run eselect opencascade" |
678 |
-} |
679 |
- |
680 |
-src_prepare() { |
681 |
- # the upstream provided file doesn't find the coin doc tag file, |
682 |
- # but cmake ships a working one, so we use this. |
683 |
- rm "${S}/cMake/FindCoin3D.cmake" || die |
684 |
- |
685 |
- # Fix desktop file |
686 |
- sed -e 's/Exec=FreeCAD/Exec=freecad/' -i src/XDGData/org.freecadweb.FreeCAD.desktop || die |
687 |
- |
688 |
- find "${S}" -type f -exec dos2unix -q {} \; || die "failed to convert to unix line endings" |
689 |
- |
690 |
- cmake_src_prepare |
691 |
-} |
692 |
- |
693 |
-src_configure() { |
694 |
- local mycmakeargs=( |
695 |
- -DBUILD_ADDONMGR=$(usex addonmgr) |
696 |
- -DBUILD_ARCH=ON |
697 |
- -DBUILD_ASSEMBLY=OFF # deprecated |
698 |
- -DBUILD_CLOUD=$(usex cloud) |
699 |
- -DBUILD_COMPLETE=OFF # deprecated |
700 |
- -DBUILD_DRAFT=ON |
701 |
-# -DBUILD_DESIGNER_PLUGIN=$(usex designer) |
702 |
- -DBUILD_DRAWING=ON |
703 |
- -DBUILD_ENABLE_CXX_STD:STRING="C++17" # needed for >=boost-1.77.0 |
704 |
- -DBUILD_FEM=$(usex fem) |
705 |
- -DBUILD_FEM_NETGEN=OFF |
706 |
- -DBUILD_FLAT_MESH=ON |
707 |
- -DBUILD_FORCE_DIRECTORY=ON # force building in a dedicated directory |
708 |
- -DBUILD_FREETYPE=ON # automagic dep |
709 |
- -DBUILD_GUI=$(usex !headless) |
710 |
- -DBUILD_IDF=$(usex idf) |
711 |
- -DBUILD_IMAGE=$(usex image) |
712 |
- -DBUILD_IMPORT=ON # import module for various file formats |
713 |
- -DBUILD_INSPECTION=$(usex inspection) |
714 |
- -DBUILD_JTREADER=OFF # code has been removed upstream, but option is still there |
715 |
- -DBUILD_MATERIAL=$(usex material) |
716 |
- -DBUILD_MESH=ON |
717 |
- -DBUILD_MESH_PART=ON |
718 |
- -DBUILD_OPENSCAD=$(usex openscad) |
719 |
- -DBUILD_PART=ON |
720 |
- -DBUILD_PART_DESIGN=$(usex part-design) |
721 |
- -DBUILD_PATH=$(usex path) |
722 |
- -DBUILD_POINTS=$(usex points) |
723 |
- -DBUILD_QT5=ON # OFF means to use Qt4 |
724 |
- -DBUILD_RAYTRACING=$(usex raytracing) |
725 |
- -DBUILD_REVERSEENGINEERING=OFF # currently only an empty sandbox |
726 |
- -DBUILD_ROBOT=$(usex robot) |
727 |
- -DBUILD_SHOW=$(usex show) |
728 |
- -DBUILD_SKETCHER=ON # needed by draft workspace |
729 |
- -DBUILD_SMESH=ON |
730 |
- -DBUILD_SPREADSHEET=ON |
731 |
- -DBUILD_START=ON |
732 |
- -DBUILD_SURFACE=$(usex surface) |
733 |
- -DBUILD_TECHDRAW=$(usex techdraw) |
734 |
- -DBUILD_TEST=ON # always build test workbench for run-time testing |
735 |
- -DBUILD_TUX=$(usex tux) |
736 |
- -DBUILD_VR=OFF |
737 |
- -DBUILD_WEB=ON # needed by start workspace |
738 |
- -DBUILD_WITH_CONDA=OFF |
739 |
- |
740 |
- -DCMAKE_INSTALL_DATADIR=/usr/share/${PN}/data |
741 |
- -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
742 |
- -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${PN} |
743 |
- -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN} |
744 |
- |
745 |
- -DFREECAD_BUILD_DEBIAN=OFF |
746 |
- |
747 |
- -DFREECAD_USE_EXTERNAL_KDL=ON |
748 |
- -DFREECAD_USE_EXTERNAL_SMESH=OFF # no package in Gentoo |
749 |
- -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF # doesn't work yet, also no package in Gentoo tree |
750 |
- -DFREECAD_USE_FREETYPE=ON |
751 |
- -DFREECAD_USE_OCC_VARIANT:STRING="Official Version" |
752 |
- -DFREECAD_USE_PCL=$(usex pcl) |
753 |
- -DFREECAD_USE_PYBIND11=ON |
754 |
- -DFREECAD_USE_QT_FILEDIALOG=ON |
755 |
- -DFREECAD_USE_QTWEBMODULE:STRING="Qt WebEngine" |
756 |
- |
757 |
- # install python modules to site-packages' dir. True only for the main package, |
758 |
- # sub-packages will still be installed inside /usr/lib64/freecad |
759 |
- -DINSTALL_TO_SITEPACKAGES=ON |
760 |
- |
761 |
- # Use the version of shiboken2 that matches the selected python version |
762 |
- -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" |
763 |
- -DPython3_EXECUTABLE=${PYTHON} |
764 |
- ) |
765 |
- |
766 |
- if use debug; then |
767 |
- # BUILD_SANDBOX currently broken, see |
768 |
- # https://forum.freecadweb.org/viewtopic.php?f=4&t=36071&start=30#p504595 |
769 |
- mycmakeargs+=( |
770 |
- -DBUILD_SANDBOX=OFF |
771 |
- -DBUILD_TEMPLATE=ON |
772 |
- ) |
773 |
- else |
774 |
- mycmakeargs+=( |
775 |
- -DBUILD_SANDBOX=OFF |
776 |
- -DBUILD_TEMPLATE=OFF |
777 |
- ) |
778 |
- fi |
779 |
- |
780 |
- cmake_src_configure |
781 |
-} |
782 |
- |
783 |
-# We use the FreeCADCmd binary instead of the FreeCAD binary here |
784 |
-# for two reasons: |
785 |
-# 1. It works out of the box with USE=headless as well, not needing a guard |
786 |
-# 2. We don't need virtualx.eclass and it's dependencies |
787 |
-# The exported environment variables are needed, so freecad does know |
788 |
-# where to save it's temporary files, and where to look and write it's |
789 |
-# configuration. Without those, there are sandbox violation, when it |
790 |
-# tries to create /var/lib/portage/home/.FreeCAD directory. |
791 |
-src_test() { |
792 |
- pushd "${BUILD_DIR}" > /dev/null || die |
793 |
- export FREECAD_USER_HOME="${HOME}" |
794 |
- export FREECAD_USER_DATA="${T}" |
795 |
- export FREECAD_USER_TEMP="${T}" |
796 |
- nonfatal ./bin/FreeCADCmd --run-test 0 |
797 |
- popd > /dev/null || die |
798 |
-} |
799 |
- |
800 |
-src_install() { |
801 |
- cmake_src_install |
802 |
- |
803 |
- dobin src/Tools/freecad-thumbnailer |
804 |
- |
805 |
- if ! use headless; then |
806 |
- dosym -r /usr/$(get_libdir)/${PN}/bin/FreeCAD /usr/bin/freecad |
807 |
- mv "${ED}"/usr/$(get_libdir)/${PN}/share/* "${ED}"/usr/share || die "failed to move shared resources" |
808 |
- fi |
809 |
- dosym -r /usr/$(get_libdir)/${PN}/bin/FreeCADCmd /usr/bin/freecadcmd |
810 |
- |
811 |
- python_optimize "${ED}"/usr/share/${PN}/data/Mod/Start/StartPage "${ED}"/usr/$(get_libdir)/${PN}{/Ext,/Mod}/ |
812 |
- # compile main package in python site-packages as well |
813 |
- python_optimize |
814 |
-} |
815 |
- |
816 |
-pkg_postinst() { |
817 |
- xdg_pkg_postinst |
818 |
- |
819 |
- einfo "You can load a lot of additional workbenches using the integrated" |
820 |
- einfo "AddonManager." |
821 |
- |
822 |
- # ToDo: check opencv, pysolar (::science), elmerfem (::science) |
823 |
- # ifc++, ifcopenshell, netgen, z88 (no pkgs), calculix-ccx (::waebbl) |
824 |
- einfo "There are a lot of additional tools, for which FreeCAD has builtin" |
825 |
- einfo "support. Some of them are available in Gentoo. Take a look at" |
826 |
- einfo "https://wiki.freecadweb.org/Installing#External_software_supported_by_FreeCAD" |
827 |
- optfeature_header "Computational utilities" |
828 |
- optfeature "BLAS library" sci-libs/openblas |
829 |
- optfeature "Statistical computation with Python" dev-python/pandas |
830 |
- optfeature "Use scientific computation with Python" dev-python/scipy |
831 |
- optfeature "Use symbolic math with Python" dev-python/sympy |
832 |
- optfeature_header "Imaging, Plotting and Rendering utilities" |
833 |
- optfeature "Dependency graphs" media-gfx/graphviz |
834 |
- optfeature "PBR Rendering" media-gfx/povray |
835 |
- optfeature_header "Import / Export" |
836 |
- optfeature "Interact with git repositories" dev-python/GitPython |
837 |
- optfeature "Work with COLLADA documents" dev-python/pycollada |
838 |
- optfeature "YAML importer and emitter" dev-python/pyyaml |
839 |
- optfeature "Importing and exporting 2D AutoCAD DWG files" media-gfx/libredwg |
840 |
- optfeature "Importing and exporting geospatial data formats" sci-libs/gdal |
841 |
- optfeature "Working with projection data" sci-libs/proj |
842 |
- optfeature_header "Meshing and FEM" |
843 |
- optfeature "FEM mesh generator" sci-libs/gmsh |
844 |
- optfeature "Triangulating meshes" sci-libs/gts |
845 |
- optfeature "Visualization" sci-visualization/paraview |
846 |
-} |
847 |
- |
848 |
-pkg_postrm() { |
849 |
- xdg_pkg_postrm |
850 |
-} |
851 |
|
852 |
diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml |
853 |
index 120ff56fd4a2..d55000ab3501 100644 |
854 |
--- a/media-gfx/freecad/metadata.xml |
855 |
+++ b/media-gfx/freecad/metadata.xml |
856 |
@@ -22,14 +22,6 @@ |
857 |
Build and install the Qt designer plugin, so the FreeCAD widgets |
858 |
can be used from within designer. |
859 |
</flag> |
860 |
- <flag name="drawing"> |
861 |
- Build the Drawing workbench, a predecessor to the TechDraw workbench. |
862 |
- Users are encouraged to learn how to use the TechDraw workbench and |
863 |
- switch to it instead. |
864 |
- |
865 |
- This is a compatibility option and will be removed in a later (0.20+) |
866 |
- version of the package. |
867 |
- </flag> |
868 |
<flag name="fem"> |
869 |
Build the FEM module and workbench which provides Finite Element |
870 |
Analysis (FEA) workflows |
871 |
@@ -68,10 +60,6 @@ |
872 |
<flag name="pcl"> |
873 |
Use external <pkg>sci-libs/pcl</pkg> for point clouds support. |
874 |
</flag> |
875 |
- <flag name="plot"> |
876 |
- Build the internal plot workbench. NOTE: This conflicts with the |
877 |
- external plot workbench, which you can add via the Addon Manager! |
878 |
- </flag> |
879 |
<flag name="points"> |
880 |
Build the points module and workbench for working with point clouds |
881 |
</flag> |
882 |
@@ -81,11 +69,6 @@ |
883 |
<flag name="robot"> |
884 |
Build the robot module and workbench for studying robot movements |
885 |
</flag> |
886 |
- <flag name="ship"> |
887 |
- Build the ship module and workbench which works over ship entities, |
888 |
- that must be created on top of provided geometry. NOTE: This conflicts |
889 |
- with the external ship workbench, which you can add via the Addon Manager! |
890 |
- </flag> |
891 |
<flag name="show"> |
892 |
Build the show module, a helper module for visibility automation |
893 |
</flag> |