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/, media-gfx/superslicer/files/
Date: Sun, 06 Feb 2022 20:14:50
Message-Id: 1644178378.0dde665c76279e34423c63e0920b9a8aac492c91.egorr.berd@gentoo
1 commit: 0dde665c76279e34423c63e0920b9a8aac492c91
2 Author: Yahor Berdnikau <egorr.berd <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 6 20:12:58 2022 +0000
4 Commit: Yahor Berdnikau <egorr.berd <AT> gmail <DOT> com>
5 CommitDate: Sun Feb 6 20:12:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0dde665c
7
8 media-gfx/superslicer: Fix app name for 2.3.57.9
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 .../files/version-suffix-2.3.57.9.patch | 31 ++++++++++++++++++----
14 ....57.9.ebuild => superslicer-2.3.57.9-r1.ebuild} | 6 +----
15 2 files changed, 27 insertions(+), 10 deletions(-)
16
17 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
18 index 0daae037f..bd41db684 100644
19 --- a/media-gfx/superslicer/files/version-suffix-2.3.57.9.patch
20 +++ b/media-gfx/superslicer/files/version-suffix-2.3.57.9.patch
21 @@ -1,11 +1,8 @@
22 --- a/version.inc
23 +++ b/version.inc
24 -@@ -2,11 +2,11 @@
25 - # (the version numbers are generated by the build script from the git current label)
26 -
27 +@@ -4,9 +4,9 @@
28 # name of the slicer
29 --set(SLIC3R_APP_NAME "SuperSlicer")
30 -+set(SLIC3R_APP_NAME "SuperSlicer2.3")
31 + set(SLIC3R_APP_NAME "SuperSlicer")
32 # Key fo the slicer, must only contains ascii chars and no spaces (be valid in all filesystems)
33 -set(SLIC3R_APP_KEY "SuperSlicer")
34 +set(SLIC3R_APP_KEY "SuperSlicer2.3")
35 @@ -15,3 +12,27 @@
36 # versions
37 set(SLIC3R_VERSION "2.3.57")
38 set(SLIC3R_VERSION_FULL "2.3.57.9")
39 +--- a/src/platform/unix/Gcodeviewer.desktop.in
40 ++++ b/src/platform/unix/Gcodeviewer.desktop.in
41 +@@ -1,5 +1,5 @@
42 + [Desktop Entry]
43 +-Name=@GCODEVIEWER_APP_NAME@
44 ++Name=@GCODEVIEWER_APP_KEY@
45 + Comment=G-code viewer of Slic3r
46 + Exec=@SLIC3R_APP_CMD@ --gcodeviewer %F
47 + Icon=@GCODEVIEWER_APP_KEY@
48 +--- a/src/platform/unix/Slic3r.desktop.in
49 ++++ b/src/platform/unix/Slic3r.desktop.in
50 +@@ -1,5 +1,5 @@
51 + [Desktop Entry]
52 +-Name=@SLIC3R_APP_NAME@
53 ++Name=@SLIC3R_APP_KEY@
54 + GenericName=3D Printing Software
55 + Comment=G-code generator for 3D printers
56 + Icon=@SLIC3R_APP_KEY@
57 +@@ -10,4 +10,4 @@ MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;
58 + Categories=Graphics;3DGraphics;Engineering;
59 + Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA
60 + StartupNotify=false
61 +-StartupWMClass=@SLIC3R_APP_KEY@
62 ++StartupWMClass=@SLIC3R_APP_NAME@
63
64 diff --git a/media-gfx/superslicer/superslicer-2.3.57.9.ebuild b/media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild
65 similarity index 88%
66 rename from media-gfx/superslicer/superslicer-2.3.57.9.ebuild
67 rename to media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild
68 index 00ff86a24..c16a1f5c7 100644
69 --- a/media-gfx/superslicer/superslicer-2.3.57.9.ebuild
70 +++ b/media-gfx/superslicer/superslicer-2.3.57.9-r1.ebuild
71 @@ -103,11 +103,7 @@ src_install() {
72 cmake_src_install
73
74 if use gui; then
75 - newicon -s 128 resources/icons/Slic3r_128px.png SuperSli3er_2.3.png
76 + newicon -s 128 resources/icons/SuperSlicer2.3_128px.png SuperSlicer2.3.png
77 dosym superslicer-2.3 /usr/bin/superslicer-2.3-gcodeviewer
78 - make_desktop_entry superslicer "SuperSlicer 2.3" "SuperSli3er_2.3" "Graphics;3DGraphics;Engineering;" \
79 - "MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;" \
80 - "GenericName=3D Printing Software" \
81 - "Keywords=3D;Printing;Slicer;slice;3D;printer;convert;gcode;stl;obj;amf;SLA"
82 fi
83 }