1 |
commit: 5f20c0efa01153b76ed2f28dc3cf10e1a1a1a818 |
2 |
Author: Yahor Berdnikau <egorr.berd <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 18 18:34:07 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 18 19:35:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f20c0ef |
7 |
|
8 |
media-gfx/superslicer: add version 2.3.57.11 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Yahor Berdnikau <egorr.berd <AT> gmail.com> |
12 |
|
13 |
media-gfx/superslicer/Manifest | 2 + |
14 |
.../files/missing-imports-2.3.57.11.patch | 10 ++ |
15 |
.../superslicer/files/symlink-fix-2.3.57.11.patch | 9 ++ |
16 |
.../files/version-suffix-2.3.57.11.patch | 42 ++++++++ |
17 |
media-gfx/superslicer/superslicer-2.3.57.11.ebuild | 108 +++++++++++++++++++++ |
18 |
5 files changed, 171 insertions(+) |
19 |
|
20 |
diff --git a/media-gfx/superslicer/Manifest b/media-gfx/superslicer/Manifest |
21 |
index ae10bbf82..0a6304018 100644 |
22 |
--- a/media-gfx/superslicer/Manifest |
23 |
+++ b/media-gfx/superslicer/Manifest |
24 |
@@ -1,6 +1,8 @@ |
25 |
DIST superslicer-2.2.53.4.tar.gz 33791161 BLAKE2B c8454ac66a5d75f5bbcd1c29f600897c697f03ad581c97539033758942eac1d4ba0d2acbac43e75307a06e565d25a39b192e6cde522cce6b728afc04c42f82bb SHA512 f883cca3eb2575186c5077e2c1f9ca37e497ff6ed9aeae45a58c1db4de1c52db36fc0f14e7fdcd95aaf375b340932674014614cdab8c6995c56b9988fe5baa06 |
26 |
DIST superslicer-2.3.57.10-profiles.zip 12193950 BLAKE2B c61be0190345bf886cbe60495f95266ec0b07824c803eaca7a29853a3465ab3d631d794899aebb9ef5f7660cb9341c70e9c38d6f8247a58655ed720deebbc584 SHA512 6beab170ae7e50e9880288673fd482f2903d5e9b87a0ddd6549098fa35f9b87e4891f015d0a26aedfac9736c3f55dcd1794d8abb3f9cc072bcdbb7e87f42a9fa |
27 |
DIST superslicer-2.3.57.10.tar.gz 32466957 BLAKE2B 7c5fff6ba8139a9bf66d931e6e48e6a9201e7911e90ce2e822ded7ae713f0b8fdf86b9cd317ded4802146c24758148ec989c213b5992c323a2fd442e17a4e228 SHA512 4d20078e11f5f99993220409bee54ca0a3f2a6fff04febfc09b5f1bc445ceaabc3a359f8f7f478127aa1504e8ba8a121a682c991adf2c45cb2ff1598ed2e3445 |
28 |
+DIST superslicer-2.3.57.11-profiles.zip 14382021 BLAKE2B f1908f3bdaebd742dcfa9d2a84dd94502b76261bccd5f924254d3ba10efa32f19923b3861f09c9e346092b77aeb7057830b0428462660967379d74b566744fd0 SHA512 af7c3843bfc1e7962b386ab1c6a20007e692abdb4d70e3129edf00739a082fe92193ab72e7746575b52aff4fd684c9c17b7f7698d7831aad8017310293895371 |
29 |
+DIST superslicer-2.3.57.11.tar.gz 32469197 BLAKE2B 8406717396acfa0c2cfe381587693d3961bdb4933f0d0821ed814e89f7597b4d90a56e877e3dd7e45fe4b14ee13f143e1cff241d59ce1798c39631dd7ffa706f SHA512 978eb5004d788e93ea58b788fbf8fe7a7c1c515b0a138e20662c3c1973b5c72373cd14c76d25ee180095c030416b5b4429b61bb73432910fe9288897a5d7cb4d |
30 |
DIST superslicer-2.3.57.7-profiles.zip 12193950 BLAKE2B c61be0190345bf886cbe60495f95266ec0b07824c803eaca7a29853a3465ab3d631d794899aebb9ef5f7660cb9341c70e9c38d6f8247a58655ed720deebbc584 SHA512 6beab170ae7e50e9880288673fd482f2903d5e9b87a0ddd6549098fa35f9b87e4891f015d0a26aedfac9736c3f55dcd1794d8abb3f9cc072bcdbb7e87f42a9fa |
31 |
DIST superslicer-2.3.57.7.tar.gz 32400355 BLAKE2B bcacf218ad18146327a9f7005d2c2217cf859d2793e8f74bfd453e2b8b12bf83d224f0325f6908b806735fb94c476b87c5dfe35c16026006bf5bd38de26e5f36 SHA512 d9a92366ed426dab77a5d49cddd7c7f37f2a0e026574bcbff342e579c555aefb19aaea8de7b5180bb87ab2749ba0cef96e870d808914fdbc58f3ddf04e1a4a65 |
32 |
DIST superslicer-2.3.57.9-profiles.zip 12193950 BLAKE2B c61be0190345bf886cbe60495f95266ec0b07824c803eaca7a29853a3465ab3d631d794899aebb9ef5f7660cb9341c70e9c38d6f8247a58655ed720deebbc584 SHA512 6beab170ae7e50e9880288673fd482f2903d5e9b87a0ddd6549098fa35f9b87e4891f015d0a26aedfac9736c3f55dcd1794d8abb3f9cc072bcdbb7e87f42a9fa |
33 |
|
34 |
diff --git a/media-gfx/superslicer/files/missing-imports-2.3.57.11.patch b/media-gfx/superslicer/files/missing-imports-2.3.57.11.patch |
35 |
new file mode 100644 |
36 |
index 000000000..009a4892a |
37 |
--- /dev/null |
38 |
+++ b/media-gfx/superslicer/files/missing-imports-2.3.57.11.patch |
39 |
@@ -0,0 +1,10 @@ |
40 |
+--- a/src/slic3r/Utils/PresetUpdater.cpp |
41 |
++++ b/src/slic3r/Utils/PresetUpdater.cpp |
42 |
+@@ -6,6 +6,7 @@ |
43 |
+ #include <ostream> |
44 |
+ #include <utility> |
45 |
+ #include <stdexcept> |
46 |
++#include <regex> |
47 |
+ |
48 |
+ #include <boost/algorithm/string.hpp> |
49 |
+ #include <boost/filesystem.hpp> |
50 |
|
51 |
diff --git a/media-gfx/superslicer/files/symlink-fix-2.3.57.11.patch b/media-gfx/superslicer/files/symlink-fix-2.3.57.11.patch |
52 |
new file mode 100644 |
53 |
index 000000000..80d9eddfa |
54 |
--- /dev/null |
55 |
+++ b/media-gfx/superslicer/files/symlink-fix-2.3.57.11.patch |
56 |
@@ -0,0 +1,9 @@ |
57 |
+--- a/src/CMakeLists.txt |
58 |
++++ b/src/CMakeLists.txt |
59 |
+@@ -273,5 +273,5 @@ else () |
60 |
+ install(TARGETS Slic3r RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") |
61 |
+ |
62 |
+ # Install the symlink for gcodeviewer |
63 |
+- install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink slic3r ${GCODEVIEWER_APP_CMD} WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})") |
64 |
++ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${SLIC3R_APP_CMD} ${GCODEVIEWER_APP_CMD} WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})") |
65 |
+ endif () |
66 |
|
67 |
diff --git a/media-gfx/superslicer/files/version-suffix-2.3.57.11.patch b/media-gfx/superslicer/files/version-suffix-2.3.57.11.patch |
68 |
new file mode 100644 |
69 |
index 000000000..476509e0a |
70 |
--- /dev/null |
71 |
+++ b/media-gfx/superslicer/files/version-suffix-2.3.57.11.patch |
72 |
@@ -0,0 +1,42 @@ |
73 |
+--- a/src/platform/unix/Gcodeviewer.desktop.in |
74 |
++++ b/src/platform/unix/Gcodeviewer.desktop.in |
75 |
+@@ -1,5 +1,5 @@ |
76 |
+ [Desktop Entry] |
77 |
+-Name=@GCODEVIEWER_APP_NAME@ |
78 |
++Name=@GCODEVIEWER_APP_KEY@ |
79 |
+ Comment=G-code viewer of Slic3r |
80 |
+ Exec=@SLIC3R_APP_CMD@ --gcodeviewer %F |
81 |
+ Icon=@GCODEVIEWER_APP_KEY@ |
82 |
+--- a/src/platform/unix/Slic3r.desktop.in |
83 |
++++ b/src/platform/unix/Slic3r.desktop.in |
84 |
+@@ -1,5 +1,5 @@ |
85 |
+ [Desktop Entry] |
86 |
+-Name=@SLIC3R_APP_NAME@ |
87 |
++Name=@SLIC3R_APP_KEY@ |
88 |
+ GenericName=3D Printing Software |
89 |
+ Comment=G-code generator for 3D printers |
90 |
+ Icon=@SLIC3R_APP_KEY@ |
91 |
+@@ -10,4 +10,4 @@ MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj; |
92 |
+ Categories=Graphics;3DGraphics;Engineering; |
93 |
+ Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA |
94 |
+ StartupNotify=false |
95 |
+-StartupWMClass=@SLIC3R_APP_KEY@ |
96 |
++StartupWMClass=@SLIC3R_APP_NAME@ |
97 |
+--- a/version.inc |
98 |
++++ b/version.inc |
99 |
+@@ -4,13 +4,13 @@ |
100 |
+ # name of the slicer |
101 |
+ set(SLIC3R_APP_NAME "SuperSlicer") |
102 |
+ # Key fo the slicer, must only contains ascii chars and no spaces (be valid in all filesystems) |
103 |
+-set(SLIC3R_APP_KEY "SuperSlicer") |
104 |
++set(SLIC3R_APP_KEY "SuperSlicer2.3") |
105 |
+ # exe name of the slicer, should be lowercase and valid in all os |
106 |
+-set(SLIC3R_APP_CMD "superslicer") |
107 |
++set(SLIC3R_APP_CMD "superslicer-2.3") |
108 |
+ # versions |
109 |
+ set(SLIC3R_VERSION "2.3.57") |
110 |
+ set(SLIC3R_VERSION_FULL "2.3.57.11") |
111 |
+-set(SLIC3R_BUILD_ID "${SLIC3R_APP_KEY}_${SLIC3R_VERSION_FULL}+UNKNOWN") |
112 |
++set(SLIC3R_BUILD_ID "${SLIC3R_APP_KEY}_${SLIC3R_VERSION_FULL}+Gentoo") |
113 |
+ set(SLIC3R_RC_VERSION "2,3,57,11") |
114 |
+ set(SLIC3R_RC_VERSION_DOTS "${SLIC3R_VERSION_FULL}") |
115 |
|
116 |
diff --git a/media-gfx/superslicer/superslicer-2.3.57.11.ebuild b/media-gfx/superslicer/superslicer-2.3.57.11.ebuild |
117 |
new file mode 100644 |
118 |
index 000000000..a0230fbb7 |
119 |
--- /dev/null |
120 |
+++ b/media-gfx/superslicer/superslicer-2.3.57.11.ebuild |
121 |
@@ -0,0 +1,108 @@ |
122 |
+# Copyright 2022 Gentoo Authors |
123 |
+# Distributed under the terms of the GNU General Public License v2 |
124 |
+ |
125 |
+EAPI=8 |
126 |
+ |
127 |
+WX_GTK_VER="3.0-gtk3" |
128 |
+ |
129 |
+inherit xdg cmake desktop wxwidgets |
130 |
+ |
131 |
+MY_PN="SuperSlicer" |
132 |
+DESCRIPTION="A mesh slicer to generated G-Code for fused-filament fabrication" |
133 |
+HOMEPAGE="https://github.com/supermerill/SuperSlicer" |
134 |
+SRC_URI="https://github.com/supermerill/SuperSlicer/archive/${PV}.tar.gz -> ${P}.tar.gz |
135 |
+ profiles? ( https://github.com/slic3r/slic3r-profiles/archive/0b8261ae8bbd7c31d736f371323476d6aff3ef3b.zip -> ${P}-profiles.zip )" |
136 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
137 |
+ |
138 |
+LICENSE="AGPL-3" |
139 |
+SLOT="23" |
140 |
+KEYWORDS="~amd64" |
141 |
+IUSE="gui test profiles" |
142 |
+ |
143 |
+# tests fail to link with USE=-gui, bug #760096 |
144 |
+REQUIRED_USE="test? ( gui )" |
145 |
+RESTRICT="!test? ( test )" |
146 |
+ |
147 |
+BDEPEND="profiles? ( app-arch/unzip )" |
148 |
+RDEPEND=" |
149 |
+ dev-cpp/eigen:3 |
150 |
+ dev-cpp/tbb |
151 |
+ >=dev-libs/boost-1.73.0:=[nls,threads(+)] |
152 |
+ dev-libs/cereal |
153 |
+ dev-libs/expat |
154 |
+ dev-libs/c-blosc |
155 |
+ dev-libs/gmp:= |
156 |
+ >=dev-libs/miniz-2.1.0-r2 |
157 |
+ dev-libs/mpfr:= |
158 |
+ >=media-gfx/openvdb-5.0.0 |
159 |
+ media-libs/ilmbase:= |
160 |
+ media-libs/libpng:0= |
161 |
+ media-libs/openexr:0= |
162 |
+ media-libs/qhull:= |
163 |
+ sci-libs/libigl |
164 |
+ sci-libs/nlopt |
165 |
+ >=sci-mathematics/cgal-5.0:= |
166 |
+ sys-apps/dbus |
167 |
+ sys-libs/zlib:= |
168 |
+ gui? ( |
169 |
+ dev-libs/glib:2 |
170 |
+ media-libs/glew:0= |
171 |
+ net-misc/curl |
172 |
+ virtual/glu |
173 |
+ virtual/opengl |
174 |
+ x11-libs/gtk+:3 |
175 |
+ >=x11-libs/wxGTK-3.0.5.1:=[X,opengl] |
176 |
+ ) |
177 |
+" |
178 |
+DEPEND="${RDEPEND} |
179 |
+ media-libs/qhull[static-libs] |
180 |
+ test? ( dev-cpp/gtest ) |
181 |
+" |
182 |
+ |
183 |
+PATCHES=( |
184 |
+ "${FILESDIR}/miniz-zip-header-2.2.53.4.patch" |
185 |
+ "${FILESDIR}/freecad-dialog-2.2.53.4.patch" |
186 |
+ "${FILESDIR}/missing-imports-${PV}.patch" |
187 |
+ "${FILESDIR}/version-suffix-${PV}.patch" |
188 |
+ "${FILESDIR}/symlink-fix-${PV}.patch" |
189 |
+) |
190 |
+ |
191 |
+src_unpack() { |
192 |
+ unpack ${P}.tar.gz |
193 |
+ mv "${S}/resources/icons/SuperSlicer_192px.png" "${S}/resources/icons/SuperSlicer2.3_192px.png" || die "Failed to rename icons" |
194 |
+ mv "${S}/resources/icons/SuperSlicer_192px_transparent.png" "${S}/resources/icons/SuperSlicer2.3_192px_transparent.png" || die "Failed to rename icons" |
195 |
+ mv "${S}/resources/icons/SuperSlicer_128px.png" "${S}/resources/icons/SuperSlicer2.3_128px.png" || die "Failed to rename icons" |
196 |
+ mv "${S}/resources/icons/SuperSlicer-gcodeviewer_128px.png" "${S}/resources/icons/SuperSlicer2.3-gcodeviewer_128px.png" || die "Failed to rename icons" |
197 |
+ mv "${S}/resources/icons/SuperSlicer-gcodeviewer_192px.png" "${S}/resources/icons/SuperSlicer2.3-gcodeviewer_192px.png" || die "Failed to rename icons" |
198 |
+ cp "${S}/resources/icons/SuperSlicer.png" "${S}/resources/icons/SuperSlicer2.3_logo.png" || die "Failed to make logo icon" |
199 |
+ |
200 |
+ use profiles && unpack ${P}-profiles.zip |
201 |
+ if use profiles ; then |
202 |
+ cp -r "${WORKDIR}/slic3r-profiles-0b8261ae8bbd7c31d736f371323476d6aff3ef3b/"* "${S}/resources/profiles" || die "Failed to copy profiles" |
203 |
+ fi |
204 |
+} |
205 |
+ |
206 |
+src_configure() { |
207 |
+ use gui && setup-wxwidgets |
208 |
+ |
209 |
+ CMAKE_BUILD_TYPE=Release |
210 |
+ local mycmakeargs=( |
211 |
+ -DSLIC3R_BUILD_TESTS=$(usex test) |
212 |
+ -DSLIC3R_FHS=ON |
213 |
+ -DSLIC3R_GTK=3 |
214 |
+ -DSLIC3R_GUI=$(usex gui) |
215 |
+ -DSLIC3R_PCH=OFF |
216 |
+ -DSLIC3R_WX_STABLE=ON |
217 |
+ -Wno-dev |
218 |
+ ) |
219 |
+ |
220 |
+ cmake_src_configure |
221 |
+} |
222 |
+ |
223 |
+src_install() { |
224 |
+ cmake_src_install |
225 |
+ |
226 |
+ if use gui; then |
227 |
+ newicon -s 128 resources/icons/SuperSlicer2.3_128px.png SuperSlicer2.3.png |
228 |
+ fi |
229 |
+} |