Gentoo Archives: gentoo-commits

From: Yahor Berdnikau <egorr.berd@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/superslicer/files/, media-gfx/superslicer/
Date: Sun, 29 May 2022 20:39:09
Message-Id: 1653856571.fa6a68eb2d8a4ac721519067a145b84fa0827e3a.egorr.berd@gentoo
1 commit: fa6a68eb2d8a4ac721519067a145b84fa0827e3a
2 Author: Yahor Berdnikau <egorr.berd <AT> gmail <DOT> com>
3 AuthorDate: Sun May 29 20:36:11 2022 +0000
4 Commit: Yahor Berdnikau <egorr.berd <AT> gmail <DOT> com>
5 CommitDate: Sun May 29 20:36:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa6a68eb
7
8 media-gfx/superslicer: drop 2.3.57.9-r1
9
10 Signed-off-by: Yahor Berdnikau <egorr.berd <AT> gmail.com>
11
12 media-gfx/superslicer/Manifest | 2 -
13 .../files/missing-imports-2.3.57.9.patch | 10 --
14 .../files/string-to-char-conversion-2.3.56.9.patch | 10 --
15 .../files/version-suffix-2.3.57.9.patch | 38 -------
16 .../superslicer/superslicer-2.3.57.9-r1.ebuild | 109 ---------------------
17 5 files changed, 169 deletions(-)
18
19 diff --git a/media-gfx/superslicer/Manifest b/media-gfx/superslicer/Manifest
20 index 974642d1f..ea9073fee 100644
21 --- a/media-gfx/superslicer/Manifest
22 +++ b/media-gfx/superslicer/Manifest
23 @@ -5,5 +5,3 @@ DIST superslicer-2.3.57.11-profiles.zip 14382021 BLAKE2B f1908f3bdaebd742dcfa9d2
24 DIST superslicer-2.3.57.11.tar.gz 32469197 BLAKE2B 8406717396acfa0c2cfe381587693d3961bdb4933f0d0821ed814e89f7597b4d90a56e877e3dd7e45fe4b14ee13f143e1cff241d59ce1798c39631dd7ffa706f SHA512 978eb5004d788e93ea58b788fbf8fe7a7c1c515b0a138e20662c3c1973b5c72373cd14c76d25ee180095c030416b5b4429b61bb73432910fe9288897a5d7cb4d
25 DIST superslicer-2.3.57.12-profiles.zip 14382021 BLAKE2B f1908f3bdaebd742dcfa9d2a84dd94502b76261bccd5f924254d3ba10efa32f19923b3861f09c9e346092b77aeb7057830b0428462660967379d74b566744fd0 SHA512 af7c3843bfc1e7962b386ab1c6a20007e692abdb4d70e3129edf00739a082fe92193ab72e7746575b52aff4fd684c9c17b7f7698d7831aad8017310293895371
26 DIST superslicer-2.3.57.12.tar.gz 32472874 BLAKE2B 600ed29724476f2812c7bbea9bc26d1b54f2291d8994b883ad9da64899ad181ca19e3975865f190b1a3125341456fb38f982f5c20a5d4a0c36459de498a6588b SHA512 3830d275ef9dc5a4b1c62451e532012995647ba276a65007ae2160a89f2c044e18bad851dcf225f768a7023d00e92f398013ffdf1e1fd75e137f37e93edc8f59
27 -DIST superslicer-2.3.57.9-profiles.zip 12193950 BLAKE2B c61be0190345bf886cbe60495f95266ec0b07824c803eaca7a29853a3465ab3d631d794899aebb9ef5f7660cb9341c70e9c38d6f8247a58655ed720deebbc584 SHA512 6beab170ae7e50e9880288673fd482f2903d5e9b87a0ddd6549098fa35f9b87e4891f015d0a26aedfac9736c3f55dcd1794d8abb3f9cc072bcdbb7e87f42a9fa
28 -DIST superslicer-2.3.57.9.tar.gz 32406027 BLAKE2B 66c6c5cfb044165dd8cce3030fc9e6c29df078aaca94dfecef4c5943a21667fc9dd12d88e821952382e7556775119daf221030b2bb25fc1e52071c4f367fe041 SHA512 bf421afa55ad7d1c3eafa8dc15efb20ab463e21b78f5e03d188f68d018a7b32cd24c2163974d90eff80e1ebb39a669b3e877a614e1040bc31c7160cca7ffc554
29
30 diff --git a/media-gfx/superslicer/files/missing-imports-2.3.57.9.patch b/media-gfx/superslicer/files/missing-imports-2.3.57.9.patch
31 deleted file mode 100644
32 index ebc7ac3dc..000000000
33 --- a/media-gfx/superslicer/files/missing-imports-2.3.57.9.patch
34 +++ /dev/null
35 @@ -1,10 +0,0 @@
36 ---- a/src/libslic3r/PrintObject.cpp
37 -+++ b/src/libslic3r/PrintObject.cpp
38 -@@ -15,6 +15,7 @@
39 - #include "Format/STL.hpp"
40 -
41 - #include <atomic>
42 -+#include <chrono>
43 - #include <utility>
44 - #include <boost/log/trivial.hpp>
45 - #include <float.h>
46
47 diff --git a/media-gfx/superslicer/files/string-to-char-conversion-2.3.56.9.patch b/media-gfx/superslicer/files/string-to-char-conversion-2.3.56.9.patch
48 deleted file mode 100644
49 index 6cb596bf0..000000000
50 --- a/media-gfx/superslicer/files/string-to-char-conversion-2.3.56.9.patch
51 +++ /dev/null
52 @@ -1,10 +0,0 @@
53 ---- a/src/slic3r/GUI/GUI_App.cpp
54 -+++ b/src/slic3r/GUI/GUI_App.cpp
55 -@@ -837,7 +837,7 @@ bool GUI_App::on_init_inner()
56 - }
57 - wxString artist;
58 - if (!file_name.empty() && file_name != (std::string(SLIC3R_APP_NAME) + L(" icon"))) {
59 -- wxString splash_screen_path = wxString::FromUTF8((boost::filesystem::path(Slic3r::resources_dir()) / "splashscreen" / file_name).string());
60 -+ wxString splash_screen_path = wxString::FromUTF8((boost::filesystem::path(Slic3r::resources_dir()) / "splashscreen" / file_name).c_str());
61 - // make a bitmap with dark grey banner on the left side
62 - bmp = SplashScreen::MakeBitmap(wxBitmap(splash_screen_path, wxBITMAP_TYPE_JPEG));
63
64 diff --git a/media-gfx/superslicer/files/version-suffix-2.3.57.9.patch b/media-gfx/superslicer/files/version-suffix-2.3.57.9.patch
65 deleted file mode 100644
66 index bd41db684..000000000
67 --- a/media-gfx/superslicer/files/version-suffix-2.3.57.9.patch
68 +++ /dev/null
69 @@ -1,38 +0,0 @@
70 ---- a/version.inc
71 -+++ b/version.inc
72 -@@ -4,9 +4,9 @@
73 - # name of the slicer
74 - set(SLIC3R_APP_NAME "SuperSlicer")
75 - # Key fo the slicer, must only contains ascii chars and no spaces (be valid in all filesystems)
76 --set(SLIC3R_APP_KEY "SuperSlicer")
77 -+set(SLIC3R_APP_KEY "SuperSlicer2.3")
78 - # exe name of the slicer, should be lowercase and valid in all os
79 --set(SLIC3R_APP_CMD "superslicer")
80 -+set(SLIC3R_APP_CMD "superslicer-2.3")
81 - # versions
82 - set(SLIC3R_VERSION "2.3.57")
83 - set(SLIC3R_VERSION_FULL "2.3.57.9")
84 ---- a/src/platform/unix/Gcodeviewer.desktop.in
85 -+++ b/src/platform/unix/Gcodeviewer.desktop.in
86 -@@ -1,5 +1,5 @@
87 - [Desktop Entry]
88 --Name=@GCODEVIEWER_APP_NAME@
89 -+Name=@GCODEVIEWER_APP_KEY@
90 - Comment=G-code viewer of Slic3r
91 - Exec=@SLIC3R_APP_CMD@ --gcodeviewer %F
92 - Icon=@GCODEVIEWER_APP_KEY@
93 ---- a/src/platform/unix/Slic3r.desktop.in
94 -+++ b/src/platform/unix/Slic3r.desktop.in
95 -@@ -1,5 +1,5 @@
96 - [Desktop Entry]
97 --Name=@SLIC3R_APP_NAME@
98 -+Name=@SLIC3R_APP_KEY@
99 - GenericName=3D Printing Software
100 - Comment=G-code generator for 3D printers
101 - Icon=@SLIC3R_APP_KEY@
102 -@@ -10,4 +10,4 @@ MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;
103 - Categories=Graphics;3DGraphics;Engineering;
104 - Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA
105 - StartupNotify=false
106 --StartupWMClass=@SLIC3R_APP_KEY@
107 -+StartupWMClass=@SLIC3R_APP_NAME@
108
109 diff --git a/media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild b/media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild
110 deleted file mode 100644
111 index c16a1f5c7..000000000
112 --- a/media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild
113 +++ /dev/null
114 @@ -1,109 +0,0 @@
115 -# Copyright 2022 Gentoo Authors
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -EAPI=7
119 -
120 -WX_GTK_VER="3.0-gtk3"
121 -
122 -inherit xdg cmake desktop wxwidgets
123 -
124 -MY_PN="SuperSlicer"
125 -DESCRIPTION="A mesh slicer to generated G-Code for fused-filament fabrication"
126 -HOMEPAGE="https://github.com/supermerill/SuperSlicer"
127 -SRC_URI="https://github.com/supermerill/SuperSlicer/archive/${PV}.tar.gz -> ${P}.tar.gz
128 - profiles? ( https://github.com/slic3r/slic3r-profiles/archive/118aa919c16837eb2ff6ba97e2934fa4144ef806.zip -> ${P}-profiles.zip )"
129 -S="${WORKDIR}/${MY_PN}-${PV}"
130 -
131 -LICENSE="AGPL-3"
132 -SLOT="23"
133 -KEYWORDS="~amd64"
134 -IUSE="gui test profiles"
135 -
136 -# tests fail to link with USE=-gui, bug #760096
137 -REQUIRED_USE="test? ( gui )"
138 -RESTRICT="!test? ( test )"
139 -
140 -BDEPEND="profiles? ( app-arch/unzip )"
141 -RDEPEND="
142 - dev-cpp/eigen:3
143 - dev-cpp/tbb
144 - >=dev-libs/boost-1.73.0:=[nls,threads(+)]
145 - dev-libs/cereal
146 - dev-libs/expat
147 - dev-libs/c-blosc
148 - dev-libs/gmp:=
149 - >=dev-libs/miniz-2.1.0-r2
150 - dev-libs/mpfr:=
151 - >=media-gfx/openvdb-5.0.0
152 - media-libs/ilmbase:=
153 - media-libs/libpng:0=
154 - media-libs/openexr:0=
155 - media-libs/qhull:=
156 - sci-libs/libigl
157 - sci-libs/nlopt
158 - >=sci-mathematics/cgal-5.0:=
159 - sys-apps/dbus
160 - sys-libs/zlib:=
161 - gui? (
162 - dev-libs/glib:2
163 - media-libs/glew:0=
164 - net-misc/curl
165 - virtual/glu
166 - virtual/opengl
167 - x11-libs/gtk+:3
168 - >=x11-libs/wxGTK-3.0.5.1:=[X,opengl]
169 - )
170 -"
171 -DEPEND="${RDEPEND}
172 - media-libs/qhull[static-libs]
173 - test? ( dev-cpp/gtest )
174 -"
175 -
176 -PATCHES=(
177 - "${FILESDIR}/miniz-zip-header-2.2.53.4.patch"
178 - "${FILESDIR}/freecad-dialog-2.2.53.4.patch"
179 - "${FILESDIR}/missing-imports-${PV}.patch"
180 - "${FILESDIR}/string-to-char-conversion-2.3.56.9.patch"
181 - "${FILESDIR}/version-suffix-${PV}.patch"
182 -)
183 -
184 -src_unpack() {
185 - unpack ${P}.tar.gz
186 - mv "${S}/resources/icons/SuperSlicer_192px.png" "${S}/resources/icons/SuperSlicer2.3_192px.png" || die "Failed to rename icons"
187 - mv "${S}/resources/icons/SuperSlicer_192px_transparent.png" "${S}/resources/icons/SuperSlicer2.3_192px_transparent.png" || die "Failed to rename icons"
188 - mv "${S}/resources/icons/SuperSlicer_128px.png" "${S}/resources/icons/SuperSlicer2.3_128px.png" || die "Failed to rename icons"
189 - mv "${S}/resources/icons/SuperSlicer-gcodeviewer_128px.png" "${S}/resources/icons/SuperSlicer2.3-gcodeviewer_128px.png" || die "Failed to rename icons"
190 - mv "${S}/resources/icons/SuperSlicer-gcodeviewer_192px.png" "${S}/resources/icons/SuperSlicer2.3-gcodeviewer_192px.png" || die "Failed to rename icons"
191 - cp "${S}/resources/icons/SuperSlicer.png" "${S}/resources/icons/SuperSlicer2.3_logo.png" || die "Failed to make logo icon"
192 -
193 - use profiles && unpack ${P}-profiles.zip &&
194 - if use profiles ; then
195 - cp -r "${WORKDIR}/slic3r-profiles-118aa919c16837eb2ff6ba97e2934fa4144ef806/"* "${S}/resources/profiles" || die "Failed to copy profiles"
196 - fi
197 -}
198 -
199 -src_configure() {
200 - use gui && setup-wxwidgets
201 -
202 - CMAKE_BUILD_TYPE=Release
203 - local mycmakeargs=(
204 - -DSLIC3R_BUILD_TESTS=$(usex test)
205 - -DSLIC3R_FHS=ON
206 - -DSLIC3R_GTK=3
207 - -DSLIC3R_GUI=$(usex gui)
208 - -DSLIC3R_PCH=OFF
209 - -DSLIC3R_WX_STABLE=ON
210 - -Wno-dev
211 - )
212 -
213 - cmake_src_configure
214 -}
215 -
216 -src_install() {
217 - cmake_src_install
218 -
219 - if use gui; then
220 - newicon -s 128 resources/icons/SuperSlicer2.3_128px.png SuperSlicer2.3.png
221 - dosym superslicer-2.3 /usr/bin/superslicer-2.3-gcodeviewer
222 - fi
223 -}