Gentoo Archives: gentoo-commits

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