1 |
commit: ba49e1c413cad33d9c7a69afa8e8459cf773c0bd |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Mon Oct 18 04:55:32 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 2 10:04:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba49e1c4 |
7 |
|
8 |
media-gfx/freecad: drop 0.19.2-r3 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22619 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
media-gfx/freecad/freecad-0.19.2-r3.ebuild | 357 ----------------------------- |
16 |
1 file changed, 357 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/freecad/freecad-0.19.2-r3.ebuild b/media-gfx/freecad/freecad-0.19.2-r3.ebuild |
19 |
deleted file mode 100644 |
20 |
index 70fb0270fb5..00000000000 |
21 |
--- a/media-gfx/freecad/freecad-0.19.2-r3.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,357 +0,0 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=7 |
28 |
- |
29 |
-PYTHON_COMPAT=( python3_{8,9} ) |
30 |
- |
31 |
-inherit check-reqs cmake desktop eapi8-dosym optfeature python-single-r1 xdg |
32 |
- |
33 |
-DESCRIPTION="QT based Computer Aided Design application" |
34 |
-HOMEPAGE="https://www.freecadweb.org/ https://github.com/FreeCAD/FreeCAD" |
35 |
- |
36 |
-MY_PN=FreeCAD |
37 |
- |
38 |
-if [[ ${PV} = *9999 ]]; then |
39 |
- inherit git-r3 |
40 |
- EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" |
41 |
- S="${WORKDIR}/freecad-${PV}" |
42 |
-else |
43 |
- MY_PV=$(ver_cut 1-2) |
44 |
- MY_PV=$(ver_rs 1 '_' ${MY_PV}) |
45 |
- SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz |
46 |
- https://raw.githubusercontent.com/waebbl/waebbl-gentoo/master/patches/${P}-0005-Make-smesh-compile-with-vtk9.patch.xz" |
47 |
- KEYWORDS="~amd64" |
48 |
- S="${WORKDIR}/FreeCAD-${PV}" |
49 |
-fi |
50 |
- |
51 |
-# code is licensed LGPL-2 |
52 |
-# examples are licensed CC-BY-SA (without note of specific version) |
53 |
-LICENSE="LGPL-2 CC-BY-SA-4.0" |
54 |
-SLOT="0" |
55 |
-IUSE="debug headless pcl test" |
56 |
-RESTRICT="!test? ( test )" |
57 |
- |
58 |
-FREECAD_EXPERIMENTAL_MODULES="cloud plot ship" |
59 |
-FREECAD_STABLE_MODULES="addonmgr fem idf image inspection material |
60 |
- openscad part-design path points raytracing robot show surface |
61 |
- techdraw tux" |
62 |
- |
63 |
-for module in ${FREECAD_STABLE_MODULES}; do |
64 |
- IUSE="${IUSE} +${module}" |
65 |
-done |
66 |
-for module in ${FREECAD_EXPERIMENTAL_MODULES}; do |
67 |
- IUSE="${IUSE} ${module}" |
68 |
-done |
69 |
-unset module |
70 |
- |
71 |
-RDEPEND=" |
72 |
- ${PYTHON_DEPS} |
73 |
- >=dev-cpp/eigen-3.3.1:3 |
74 |
- dev-libs/OpenNI2[opengl(+)] |
75 |
- dev-libs/libspnav[X] |
76 |
- dev-libs/xerces-c[icu] |
77 |
- dev-qt/designer:5 |
78 |
- dev-qt/qtconcurrent:5 |
79 |
- dev-qt/qtcore:5 |
80 |
- dev-qt/qtgui:5 |
81 |
- dev-qt/qtnetwork:5 |
82 |
- dev-qt/qtopengl:5 |
83 |
- dev-qt/qtprintsupport:5 |
84 |
- dev-qt/qtsvg:5 |
85 |
- dev-qt/qtwebengine:5[widgets] |
86 |
- dev-qt/qtwidgets:5 |
87 |
- dev-qt/qtx11extras:5 |
88 |
- dev-qt/qtxml:5 |
89 |
- >=media-libs/coin-4.0.0 |
90 |
- media-libs/freetype |
91 |
- media-libs/qhull:= |
92 |
- sci-libs/flann[openmp] |
93 |
- sci-libs/hdf5:=[fortran,zlib] |
94 |
- >=sci-libs/med-4.0.0-r1[python,${PYTHON_SINGLE_USEDEP}] |
95 |
- sci-libs/opencascade:=[vtk(+)] |
96 |
- sci-libs/orocos_kdl:= |
97 |
- sys-libs/zlib |
98 |
- virtual/glu |
99 |
- virtual/libusb:1 |
100 |
- virtual/opengl |
101 |
- cloud? ( |
102 |
- dev-libs/openssl:= |
103 |
- net-misc/curl |
104 |
- ) |
105 |
- fem? ( sci-libs/vtk:=[boost,python,qt5,rendering,${PYTHON_SINGLE_USEDEP}] ) |
106 |
- openscad? ( media-gfx/openscad ) |
107 |
- pcl? ( >=sci-libs/pcl-1.8.1:=[opengl,openni2(+),qt5(+),vtk(+)] ) |
108 |
- $(python_gen_cond_dep ' |
109 |
- dev-libs/boost:=[python,threads(+),${PYTHON_USEDEP}] |
110 |
- dev-python/matplotlib[${PYTHON_USEDEP}] |
111 |
- dev-python/numpy[${PYTHON_USEDEP}] |
112 |
- >=dev-python/pivy-0.6.5[${PYTHON_USEDEP}] |
113 |
- dev-python/pybind11[${PYTHON_USEDEP}] |
114 |
- dev-python/pyside2[gui,svg,${PYTHON_USEDEP}] |
115 |
- dev-python/shiboken2[${PYTHON_USEDEP}] |
116 |
- addonmgr? ( dev-python/GitPython[${PYTHON_USEDEP}] ) |
117 |
- fem? ( dev-python/ply[${PYTHON_USEDEP}] ) |
118 |
- ') |
119 |
-" |
120 |
-DEPEND="${RDEPEND}" |
121 |
-BDEPEND="dev-lang/swig" |
122 |
- |
123 |
-# To get required dependencies: |
124 |
-# 'grep REQUIRES_MODS cMake/FreeCAD_Helpers/CheckInterModuleDependencies.cmake' |
125 |
-# We set the following requirements by default: |
126 |
-# arch, draft, drawing, import, mesh, part, qt5, sketcher, spreadsheet, start, web. |
127 |
-# |
128 |
-# Additionally, we auto-enable mesh_part, flat_mesh and smesh |
129 |
-# Fem actually needs smesh, but as long as we don't have a smesh package, we enable |
130 |
-# smesh through the mesh USE flag. Note however, the fem<-smesh dependency isn't |
131 |
-# reflected by the REQUIRES_MODS macro, but at |
132 |
-# cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake:187. |
133 |
-# |
134 |
-# The increase in auto-enabled workbenches is due to their need in parts of the |
135 |
-# test suite when compiled with a minimal set of USE flags. |
136 |
-REQUIRED_USE=" |
137 |
- ${PYTHON_REQUIRED_USE} |
138 |
- inspection? ( points ) |
139 |
- path? ( robot ) |
140 |
- ship? ( image plot ) |
141 |
-" |
142 |
- |
143 |
-PATCHES=( |
144 |
- "${FILESDIR}"/${PN}-0.19_pre20201231-0003-Gentoo-specific-don-t-check-vcs.patch |
145 |
- "${FILESDIR}"/${PN}-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch |
146 |
- "${FILESDIR}"/${P}-0001-fix-failing-test-workbench-testcase.patch |
147 |
- "${FILESDIR}"/${P}-0002-fix-femtest-failure-with-yaml-load.patch |
148 |
- "${FILESDIR}"/${P}-0003-fix-test-when-built-without-GUI.patch |
149 |
- "${WORKDIR}"/${P}-0005-Make-smesh-compile-with-vtk9.patch |
150 |
- "${FILESDIR}"/${P}-0006-add-boost-serialization-to-find_package.patch |
151 |
- "${FILESDIR}"/${P}-0007-fix-build-failure-with-opencascade-7.5.2.patch |
152 |
-) |
153 |
- |
154 |
-DOCS=( CODE_OF_CONDUCT.md ChangeLog.txt README.md ) |
155 |
- |
156 |
-CHECKREQS_DISK_BUILD="2G" |
157 |
- |
158 |
-pkg_setup() { |
159 |
- check-reqs_pkg_setup |
160 |
- python-single-r1_pkg_setup |
161 |
- [[ -z ${CASROOT} ]] && die "\${CASROOT} not set, plesae run eselect opencascade" |
162 |
-} |
163 |
- |
164 |
-src_prepare() { |
165 |
- # the upstream provided file doesn't find the coin doc tag file, |
166 |
- # but cmake ships a working one, so we use this. |
167 |
- rm "${S}/cMake/FindCoin3D.cmake" || die |
168 |
- |
169 |
- # Fix OpenCASCADE lookup |
170 |
- local OCC_P=$(best_version sci-libs/opencascade[vtk]) |
171 |
- OCC_P=${OCC_P#sci-libs/} |
172 |
- local OCC_PV=${OCC_P#opencascade-} |
173 |
- OCC_PV=$(ver_cut 1-2 ${OCC_PV}) |
174 |
- # check for CASROOT needed to ensure occ-7.5 is eselected and profile resourced |
175 |
- if [[ ${OCC_PV} = 7.5 && ${CASROOT} = "/usr" ]]; then |
176 |
- sed -e 's|/usr/include/opencascade|'${CASROOT}'/include/'${OCC_P}'|' \ |
177 |
- -e 's|/usr/lib|'${CASROOT}'/'$(get_libdir)'/'${OCC_P}' NO_DEFAULT_PATH|' \ |
178 |
- -i cMake/FindOpenCasCade.cmake || die |
179 |
- else |
180 |
- sed -e 's|/usr/include/opencascade|${CASROOT}/include/opencascade|' \ |
181 |
- -e 's|/usr/lib|${CASROOT}/'$(get_libdir)' NO_DEFAULT_PATH|' \ |
182 |
- -i cMake/FindOpenCasCade.cmake || die |
183 |
- fi |
184 |
- |
185 |
- # Fix desktop file |
186 |
- sed -e 's/Exec=FreeCAD/Exec=freecad/' -i src/XDGData/org.freecadweb.FreeCAD.desktop || die |
187 |
- |
188 |
- cmake_src_prepare |
189 |
-} |
190 |
- |
191 |
-src_configure() { |
192 |
- local mycmakeargs=( |
193 |
- -DBUILD_ADDONMGR=$(usex addonmgr) |
194 |
- -DBUILD_ARCH=ON |
195 |
- -DBUILD_ASSEMBLY=OFF # deprecated |
196 |
- -DBUILD_CLOUD=$(usex cloud) |
197 |
- -DBUILD_COMPLETE=OFF # deprecated |
198 |
- -DBUILD_DRAFT=ON |
199 |
- -DBUILD_DRAWING=ON |
200 |
- -DBUILD_ENABLE_CXX_STD:STRING="C++14" # needed for >=boost-1.75.0 |
201 |
- -DBUILD_FEM=$(usex fem) |
202 |
- -DBUILD_FEM_NETGEN=OFF |
203 |
- -DBUILD_FLAT_MESH=ON |
204 |
- -DBUILD_FORCE_DIRECTORY=ON # force building in a dedicated directory |
205 |
- -DBUILD_FREETYPE=ON # automagic dep |
206 |
- -DBUILD_GUI=$(usex !headless) |
207 |
- -DBUILD_IDF=$(usex idf) |
208 |
- -DBUILD_IMAGE=$(usex image) |
209 |
- -DBUILD_IMPORT=ON # import module for various file formats |
210 |
- -DBUILD_INSPECTION=$(usex inspection) |
211 |
- -DBUILD_JTREADER=OFF # code has been removed upstream, but option is still there |
212 |
- -DBUILD_MATERIAL=$(usex material) |
213 |
- -DBUILD_MESH=ON |
214 |
- -DBUILD_MESH_PART=ON |
215 |
- -DBUILD_OPENSCAD=$(usex openscad) |
216 |
- -DBUILD_PART=ON |
217 |
- -DBUILD_PART_DESIGN=$(usex part-design) |
218 |
- -DBUILD_PATH=$(usex path) |
219 |
- -DBUILD_PLOT=$(usex plot) # conflicts with possible external workbench |
220 |
- -DBUILD_POINTS=$(usex points) |
221 |
- -DBUILD_QT5=ON # OFF means to use Qt4 |
222 |
- -DBUILD_RAYTRACING=$(usex raytracing) |
223 |
- -DBUILD_REVERSEENGINEERING=OFF # currently only an empty sandbox |
224 |
- -DBUILD_ROBOT=$(usex robot) |
225 |
- -DBUILD_SHIP=$(usex ship) # conflicts with possible external workbench |
226 |
- -DBUILD_SHOW=$(usex show) |
227 |
- -DBUILD_SKETCHER=ON # needed by draft workspace |
228 |
- -DBUILD_SMESH=ON |
229 |
- -DBUILD_SPREADSHEET=ON |
230 |
- -DBUILD_START=ON |
231 |
- -DBUILD_SURFACE=$(usex surface) |
232 |
- -DBUILD_TECHDRAW=$(usex techdraw) |
233 |
- -DBUILD_TEST=ON # always build test workbench for run-time testing |
234 |
- -DBUILD_TUX=$(usex tux) |
235 |
- -DBUILD_VR=OFF |
236 |
- -DBUILD_WEB=ON # needed by start workspace |
237 |
- -DBUILD_WITH_CONDA=OFF |
238 |
- |
239 |
- -DCMAKE_INSTALL_DATADIR=/usr/share/${PN}/data |
240 |
- -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
241 |
- -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${PN} |
242 |
- -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN} |
243 |
- |
244 |
- -DFREECAD_BUILD_DEBIAN=OFF |
245 |
- |
246 |
- -DFREECAD_USE_EXTERNAL_KDL=ON |
247 |
- -DFREECAD_USE_EXTERNAL_SMESH=OFF # no package in Gentoo |
248 |
- -DFREECAD_USE_EXTERNAL_ZIPIOS=OFF # doesn't work yet, also no package in Gentoo tree |
249 |
- -DFREECAD_USE_FREETYPE=ON |
250 |
- -DFREECAD_USE_OCC_VARIANT:STRING="Official Version" |
251 |
- -DFREECAD_USE_PCL=$(usex pcl) |
252 |
- -DFREECAD_USE_PYBIND11=ON |
253 |
- -DFREECAD_USE_QT_FILEDIALOG=ON |
254 |
- -DFREECAD_USE_QTWEBMODULE:STRING="Qt WebEngine" |
255 |
- |
256 |
- # Use the version of shiboken2 that matches the selected python version |
257 |
- -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" |
258 |
- |
259 |
- # install python modules to site-packages' dir. True only for the main package, |
260 |
- # sub-packages will still be installed inside /usr/lib64/freecad |
261 |
- -DINSTALL_TO_SITEPACKAGES=ON |
262 |
- |
263 |
- -DOCCT_CMAKE_FALLBACK=ON # don't use occt-config which isn't included in opencascade for Gentoo |
264 |
- ) |
265 |
- |
266 |
- if has_version ">=sci-libs/opencascade-7.5"; then |
267 |
- # bug https://bugs.gentoo.org/788274 |
268 |
- local OCC_P=$(best_version sci-libs/opencascade[vtk]) |
269 |
- OCC_P=${OCC_P#sci-libs/} |
270 |
- OCC_P=${OCC_P%-r*} |
271 |
- mycmakeargs+=( |
272 |
- -DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P} |
273 |
- -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P} |
274 |
- ) |
275 |
- else |
276 |
- # <occ-7.5 uses different layout |
277 |
- mycmakeargs+=( |
278 |
- -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade |
279 |
- -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir) |
280 |
- ) |
281 |
- fi |
282 |
- |
283 |
- if use debug; then |
284 |
- mycmakeargs+=( |
285 |
- -DBUILD_SANDBOX=ON |
286 |
- -DBUILD_TEMPLATE=ON |
287 |
- ) |
288 |
- else |
289 |
- mycmakeargs+=( |
290 |
- -DBUILD_SANDBOX=OFF |
291 |
- -DBUILD_TEMPLATE=OFF |
292 |
- ) |
293 |
- fi |
294 |
- |
295 |
- cmake_src_configure |
296 |
-} |
297 |
- |
298 |
-# We use the FreeCADCmd binary instead of the FreeCAD binary here |
299 |
-# for two reasons: |
300 |
-# 1. It works out of the box with USE=headless as well, not needing a guard |
301 |
-# 2. We don't need virtualx.eclass and it's dependencies |
302 |
-# The exported environment variables are needed, so freecad does know |
303 |
-# where to save it's temporary files, and where to look and write it's |
304 |
-# configuration. Without those, there are sandbox violation, when it |
305 |
-# tries to create /var/lib/portage/home/.FreeCAD directory. |
306 |
-src_test() { |
307 |
- pushd "${BUILD_DIR}" > /dev/null || die |
308 |
- export FREECAD_USER_HOME="${HOME}" |
309 |
- export FREECAD_USER_DATA="${T}" |
310 |
- export FREECAD_USER_TEMP="${T}" |
311 |
- nonfatal ./bin/FreeCADCmd --run-test 0 |
312 |
- popd > /dev/null || die |
313 |
-} |
314 |
- |
315 |
-src_install() { |
316 |
- cmake_src_install |
317 |
- |
318 |
- if ! use headless; then |
319 |
- dosym8 -r /usr/$(get_libdir)/${PN}/bin/FreeCAD /usr/bin/freecad |
320 |
- mv "${ED}"/usr/$(get_libdir)/freecad/share/* "${ED}"/usr/share || die "failed to move shared ressources" |
321 |
- fi |
322 |
- dosym8 -r /usr/$(get_libdir)/${PN}/bin/FreeCADCmd /usr/bin/freecadcmd |
323 |
- |
324 |
- python_optimize "${ED}"/usr/share/${PN}/data/Mod/Start/StartPage "${ED}"/usr/$(get_libdir)/${PN}{/Ext,/Mod}/ |
325 |
- # compile main package in python site-packages as well |
326 |
- python_optimize |
327 |
- |
328 |
- doenvd "${FILESDIR}/99${PN}" |
329 |
-} |
330 |
- |
331 |
-pkg_postinst() { |
332 |
- xdg_pkg_postinst |
333 |
- |
334 |
- if use plot; then |
335 |
- einfo "Note: You are enabling the 'plot' USE flag." |
336 |
- einfo "This conflicts with the plot workbench that can be loaded" |
337 |
- einfo "via the addon manager! You can only install one of those." |
338 |
- fi |
339 |
- |
340 |
- if use ship; then |
341 |
- einfo "Note: You are enabling the 'ship' USE flag." |
342 |
- einfo "This conflicts with the ship workbench that can be loaded" |
343 |
- einfo "via the addon manager! You can only install one of those." |
344 |
- fi |
345 |
- |
346 |
- einfo "You can load a lot of additional workbenches using the integrated" |
347 |
- einfo "AddonManager." |
348 |
- |
349 |
- # ToDo: check opencv, pysolar (::science), elmerfem (::science) |
350 |
- # ifc++, ifcopenshell, netgen, z88 (no pkgs), calculix-ccx (::waebbl) |
351 |
- einfo "There are a lot of additional tools, for which FreeCAD has builtin" |
352 |
- einfo "support. Some of them are available in Gentoo. Take a look at" |
353 |
- einfo "https://wiki.freecadweb.org/Installing#External_software_supported_by_FreeCAD" |
354 |
- optfeature_header "Computational utilities" |
355 |
- optfeature "Numerical computations with Python" dev-python/numpy |
356 |
- optfeature "BLAS library" sci-libs/openblas |
357 |
- optfeature "Statistical computation with Python" dev-python/pandas |
358 |
- optfeature "Use Point Clouds" sci-libs/pcl |
359 |
- optfeature "Use scientific computation with Python" dev-python/scipy |
360 |
- optfeature "Use symbolic math with Python" dev-python/sympy |
361 |
- optfeature_header "Imaging, Plotting and Rendering utilities" |
362 |
- optfeature "Function plotting with Python" dev-python/matplotlib |
363 |
- optfeature "Dependency graphs" media-gfx/graphviz |
364 |
- optfeature "PBR Rendering" media-gfx/povray |
365 |
- optfeature_header "Import / Export" |
366 |
- optfeature "Interact with git repositories" dev-python/GitPython |
367 |
- optfeature "Work with COLLADA documents" dev-python/pycollada |
368 |
- optfeature "YAML importer and emitter" dev-python/pyyaml |
369 |
- optfeature "Importing and exporting 2D AutoCAD DWG files" media-gfx/libredwg |
370 |
- optfeature "Importing and exporting geospatial data formats" sci-libs/gdal |
371 |
- optfeature "Working with projection data" sci-libs/proj |
372 |
- optfeature_header "Meshing and FEM" |
373 |
- optfeature "FEM mesh generator" sci-libs/gmsh |
374 |
- optfeature "Triangulating meshes" sci-libs/gts |
375 |
- optfeature "Visualization" sci-visualization/paraview |
376 |
-} |
377 |
- |
378 |
-pkg_postrm() { |
379 |
- xdg_pkg_postrm |
380 |
-} |