Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/prusaslicer/
Date: Thu, 23 Sep 2021 23:40:23
Message-Id: 1632439113.d92534c71f93ba103aecee274942b7b2a82e5af7.sam@gentoo
1 commit: d92534c71f93ba103aecee274942b7b2a82e5af7
2 Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be>
3 AuthorDate: Thu Sep 23 21:06:39 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 23 23:18:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d92534c7
7
8 media-gfx/prusaslicer: version bump to 2.3.3
9
10 Dropping the gcc-11 patch, which is no longer necessary
11
12 Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be>
13 Closes: https://github.com/gentoo/gentoo/pull/22379
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 media-gfx/prusaslicer/Manifest | 1 +
17 media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild | 86 ++++++++++++++++++++++++++
18 2 files changed, 87 insertions(+)
19
20 diff --git a/media-gfx/prusaslicer/Manifest b/media-gfx/prusaslicer/Manifest
21 index bf50378cef5..737da7c2593 100644
22 --- a/media-gfx/prusaslicer/Manifest
23 +++ b/media-gfx/prusaslicer/Manifest
24 @@ -1 +1,2 @@
25 DIST prusaslicer-2.3.1.tar.gz 39583385 BLAKE2B 0d0fa11d21ec3cc0decb2708a1b1866bbe0ec5719236433ef87807541ada8abc67091f219392a1ae21b4f35c3821dde94bfd6dac72ec6617c40b7fda05cfc082 SHA512 2722ee9d5331fe03423ce179cec68196320b48c65bd3c6795b93469268956fb309609462cc62bf3e2b4f30d2fe720d0a28a16c010993737c045d82956493a1e3
26 +DIST prusaslicer-2.3.3.tar.gz 40659538 BLAKE2B 1e1a1f7aeb34934bab03410e004a91e5ed76aaf930ff59e5b373b2e229018b6703d8da8ee7ab9085be25c5b3ce4ef39aeb38204336400867fac4a55f52c76bd4 SHA512 1f6b97e135202ad9de8f0bb212239ce2497de4205ea32f860b483473fb1f1783451d539a67cd97ef31f512a797b29c1067a1eff4134ea4a29b6218e5757657e2
27
28 diff --git a/media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild b/media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild
29 new file mode 100644
30 index 00000000000..dd741d4ed3c
31 --- /dev/null
32 +++ b/media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild
33 @@ -0,0 +1,86 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +WX_GTK_VER="3.0-gtk3"
40 +
41 +inherit xdg cmake desktop wxwidgets
42 +
43 +MY_PN="PrusaSlicer"
44 +
45 +DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
46 +HOMEPAGE="https://www.prusa3d.com/prusaslicer/"
47 +SRC_URI="https://github.com/prusa3d/${MY_PN}/archive/version_${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +LICENSE="AGPL-3 Boost-1.0 GPL-2 LGPL-3 MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="gui test"
53 +
54 +# tests fail to link with USE=-gui, bug #760096
55 +REQUIRED_USE="test? ( gui )"
56 +RESTRICT="!test? ( test )"
57 +
58 +RDEPEND="
59 + dev-cpp/eigen:3
60 + dev-cpp/tbb
61 + >=dev-libs/boost-1.73.0:=[nls,threads(+)]
62 + dev-libs/cereal
63 + dev-libs/expat
64 + dev-libs/gmp:=
65 + >=dev-libs/miniz-2.1.0-r2
66 + dev-libs/mpfr:=
67 + >=media-gfx/openvdb-5.0.0
68 + media-libs/ilmbase:=
69 + media-libs/libpng:0=
70 + media-libs/qhull:=
71 + sci-libs/libigl
72 + sci-libs/nlopt
73 + >=sci-mathematics/cgal-5.0:=
74 + sys-apps/dbus
75 + sys-libs/zlib:=
76 + gui? (
77 + dev-libs/glib:2
78 + media-libs/glew:0=
79 + net-misc/curl
80 + virtual/glu
81 + virtual/opengl
82 + x11-libs/gtk+:3
83 + x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
84 + )
85 +"
86 +DEPEND="${RDEPEND}
87 + media-libs/qhull[static-libs]
88 +"
89 +
90 +S="${WORKDIR}/${MY_PN}-version_${PV}"
91 +
92 +PATCHES=(
93 + "${FILESDIR}/${PN}-2.3.0-miniz-zip-header.patch"
94 +)
95 +
96 +src_configure() {
97 + use gui && setup-wxwidgets
98 +
99 + local mycmakeargs=(
100 + -DSLIC3R_BUILD_TESTS=$(usex test)
101 + -DSLIC3R_FHS=ON
102 + -DSLIC3R_GTK=3
103 + -DSLIC3R_GUI=$(usex gui)
104 + -DSLIC3R_PCH=OFF
105 + -DSLIC3R_WX_STABLE=ON
106 + )
107 +
108 + cmake_src_configure
109 +}
110 +
111 +src_install() {
112 + cmake_src_install
113 +
114 + if use gui; then
115 + newicon -s 128 resources/icons/PrusaSlicer_128px.png PrusaSlicer.png
116 + newicon -s 128 resources/icons/PrusaSlicer-gcodeviewer_128px.png PrusaSlicer-gcodeviewer.png
117 + domenu src/platform/unix/Prusa{Slicer,Gcodeviewer}.desktop
118 + fi
119 +}