1 |
commit: 0c353e4eeb41bedc59f8f69c649d60ed6ff08a8f |
2 |
Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 21:51:13 2023 +0000 |
4 |
Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 21:53:02 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c353e4e |
7 |
|
8 |
media-gfx/prusaslicer: 2.5.0-r2: relax opencascade dep. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/892647 |
11 |
Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org> |
12 |
|
13 |
media-gfx/prusaslicer/prusaslicer-2.5.0-r2.ebuild | 88 +++++++++++++++++++++++ |
14 |
1 file changed, 88 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/prusaslicer/prusaslicer-2.5.0-r2.ebuild b/media-gfx/prusaslicer/prusaslicer-2.5.0-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..65d30cb77442 |
19 |
--- /dev/null |
20 |
+++ b/media-gfx/prusaslicer/prusaslicer-2.5.0-r2.ebuild |
21 |
@@ -0,0 +1,88 @@ |
22 |
+# Copyright 1999-2023 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+WX_GTK_VER="3.0-gtk3" |
28 |
+MY_PN="PrusaSlicer" |
29 |
+MY_PV="$(ver_rs 3 -)" |
30 |
+ |
31 |
+inherit cmake wxwidgets xdg |
32 |
+ |
33 |
+DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)" |
34 |
+HOMEPAGE="https://www.prusa3d.com/prusaslicer/" |
35 |
+SRC_URI="https://github.com/prusa3d/PrusaSlicer/archive/refs/tags/version_${MY_PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="AGPL-3 Boost-1.0 GPL-2 LGPL-3 MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="test" |
41 |
+ |
42 |
+RESTRICT="test" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ dev-cpp/eigen:3 |
46 |
+ dev-cpp/tbb:= |
47 |
+ dev-libs/boost:=[nls] |
48 |
+ dev-libs/cereal |
49 |
+ dev-libs/expat |
50 |
+ dev-libs/glib:2 |
51 |
+ dev-libs/gmp:= |
52 |
+ dev-libs/mpfr:= |
53 |
+ >=media-gfx/openvdb-8.2:= |
54 |
+ net-misc/curl[adns] |
55 |
+ media-libs/glew:0= |
56 |
+ media-libs/libjpeg-turbo:= |
57 |
+ media-libs/libpng:0= |
58 |
+ media-libs/qhull:= |
59 |
+ sci-libs/libigl |
60 |
+ sci-libs/nlopt |
61 |
+ >=sci-libs/opencascade-7.6.2:= |
62 |
+ >=sci-mathematics/cgal-5.0:= |
63 |
+ sys-apps/dbus |
64 |
+ sys-libs/zlib:= |
65 |
+ virtual/opengl |
66 |
+ x11-libs/gtk+:3 |
67 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] |
68 |
+" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ media-libs/qhull[static-libs] |
71 |
+" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-2.5.0_alpha2-boost-fixes.patch" |
75 |
+ "${FILESDIR}/${PN}-2.5.0_rc1-cereal-1.3.1.patch" |
76 |
+ "${FILESDIR}/${PN}-2.5.0_rc1-fix-tests.patch" |
77 |
+ "${FILESDIR}/${PN}-2.5.0_boost-1.81-std-wxString-to-std-wstring.patch" |
78 |
+) |
79 |
+ |
80 |
+S="${WORKDIR}/${MY_PN}-version_${MY_PV}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ sed -i -e 's/PrusaSlicer-${SLIC3R_VERSION}+UNKNOWN/PrusaSlicer-${SLIC3R_VERSION}+Gentoo/g' version.inc || die |
84 |
+ |
85 |
+ sed -i -e 's/find_package(OpenCASCADE 7.6.2 REQUIRED)/find_package(OpenCASCADE REQUIRED)/g' \ |
86 |
+ src/occt_wrapper/CMakeLists.txt || die |
87 |
+ cmake_src_prepare |
88 |
+} |
89 |
+ |
90 |
+src_configure() { |
91 |
+ CMAKE_BUILD_TYPE="Release" |
92 |
+ |
93 |
+ setup-wxwidgets |
94 |
+ |
95 |
+ local mycmakeargs=( |
96 |
+ -DOPENVDB_FIND_MODULE_PATH="/usr/$(get_libdir)/cmake/OpenVDB" |
97 |
+ |
98 |
+ -DSLIC3R_BUILD_TESTS=$(usex test) |
99 |
+ -DSLIC3R_FHS=ON |
100 |
+ -DSLIC3R_GTK=3 |
101 |
+ -DSLIC3R_GUI=ON |
102 |
+ -DSLIC3R_PCH=OFF |
103 |
+ -DSLIC3R_STATIC=OFF |
104 |
+ -DSLIC3R_WX_STABLE=ON |
105 |
+ -Wno-dev |
106 |
+ ) |
107 |
+ |
108 |
+ cmake_src_configure |
109 |
+} |