3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
|
8 |
8 |
inherit check-reqs cmake optfeature python-single-r1 xdg
|
9 |
9 |
|
... | ... | |
47 |
47 |
${PYTHON_DEPS}
|
48 |
48 |
dev-libs/OpenNI2[opengl(+)]
|
49 |
49 |
dev-libs/boost:=
|
|
50 |
dev-libs/libfmt:=
|
50 |
51 |
dev-libs/libspnav[X]
|
51 |
52 |
dev-libs/xerces-c[icu]
|
52 |
53 |
dev-qt/qtconcurrent:5
|
... | ... | |
58 |
59 |
media-libs/qhull:=
|
59 |
60 |
sci-libs/hdf5:=[fortran,zlib]
|
60 |
61 |
>=sci-libs/med-4.0.0-r1
|
61 |
|
<sci-libs/opencascade-7.7.0:=[json,vtk]
|
|
62 |
sci-libs/opencascade:=[json,vtk]
|
62 |
63 |
sci-libs/orocos_kdl:=
|
63 |
64 |
sys-libs/zlib
|
64 |
65 |
virtual/libusb:1
|
... | ... | |
134 |
135 |
"
|
135 |
136 |
|
136 |
137 |
PATCHES=(
|
137 |
|
"${FILESDIR}"/${PN}-0.19.4-Gentoo-specific-don-t-check-vcs.patch
|
138 |
|
"${FILESDIR}"/${PN}-0.19.1-0001-Gentoo-specific-Remove-ccache-usage.patch
|
139 |
|
"${FILESDIR}"/${PN}-0.20.2-Netgen-add-headers-to-support-recent-Netgen.patch
|
140 |
|
"${FILESDIR}"/${PN}-0.20.2-Fixes-8206-FreeCAD-segfaults-being-run-with-paramete.patch
|
141 |
|
"${FILESDIR}"/${PN}-0.20.2-libE57Format-fix-compile-using-gcc13.patch
|
|
138 |
"${FILESDIR}"/${PN}-9999-Gentoo-specific-don-t-check-vcs.patch
|
|
139 |
"${FILESDIR}"/${PN}-0.21.0-0001-Gentoo-specific-disable-ccache-usage.patch
|
|
140 |
"${FILESDIR}"/${PN}-9999-tests-src-Qt-only-build-test-for-BUILD_GUI-ON.patch
|
142 |
141 |
)
|
143 |
142 |
|
144 |
|
DOCS=( CODE_OF_CONDUCT.md ChangeLog.txt README.md )
|
|
143 |
DOCS=( CODE_OF_CONDUCT.md README.md )
|
145 |
144 |
|
146 |
145 |
CHECKREQS_DISK_BUILD="2G"
|
147 |
146 |
|
... | ... | |
153 |
152 |
|
154 |
153 |
src_prepare() {
|
155 |
154 |
# Fix desktop file
|
156 |
|
sed -e 's/Exec=FreeCAD/Exec=freecad/' -i src/XDGData/org.freecadweb.FreeCAD.desktop || die
|
|
155 |
sed -e 's/Exec=FreeCAD/Exec=freecad/' -i src/XDGData/org.freecad.FreeCAD.desktop || die
|
157 |
156 |
|
158 |
157 |
find "${S}" -type f -exec dos2unix -q {} \; || die "failed to convert to unix line endings"
|
159 |
158 |
|
... | ... | |
170 |
169 |
-DBUILD_DRAFT=ON
|
171 |
170 |
-DBUILD_DESIGNER_PLUGIN=$(usex designer)
|
172 |
171 |
-DBUILD_DRAWING=ON
|
173 |
|
-DBUILD_ENABLE_CXX_STD:STRING="C++17" # needed for >=boost-1.77.0
|
|
172 |
-DBUILD_ENABLE_CXX_STD:STRING="C++17" # needed for current git master
|
174 |
173 |
-DBUILD_FEM=$(usex fem)
|
175 |
174 |
-DBUILD_FEM_NETGEN=$(usex netgen)
|
176 |
175 |
-DBUILD_FLAT_MESH=ON
|
... | ... | |
281 |
280 |
dosym -r /usr/$(get_libdir)/${PN}/bin/FreeCADCmd /usr/bin/freecadcmd
|
282 |
281 |
|
283 |
282 |
rm -r "${ED}"/usr/$(get_libdir)/${PN}/include/E57Format || die "failed to drop unneeded include directory E57Format"
|
|
283 |
use test && (rm -r "${ED}"/usr/include/${PN}/{gmock,gtest} || die)
|
284 |
284 |
|
285 |
285 |
python_optimize "${ED}"/usr/share/${PN}/data/Mod/Start/StartPage "${ED}"/usr/$(get_libdir)/${PN}{/Ext,/Mod}/
|
286 |
286 |
# compile main package in python site-packages as well
|