1 |
commit: 51b061083a0aeaa9580055a8082153be17990fe4 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 22:31:44 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 27 22:32:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b06108 |
7 |
|
8 |
dev-embedded/mcu8051ide: EAPI-8 bump, switch to cmake.eclass |
9 |
|
10 |
Fix HOMEPAGE |
11 |
Fix appdata installation path |
12 |
Fix desktop file |
13 |
Drop install of useless files |
14 |
Don't install compressed manpages |
15 |
|
16 |
Closes: https://bugs.gentoo.org/735720 |
17 |
Closes: https://bugs.gentoo.org/735726 |
18 |
Closes: https://bugs.gentoo.org/834305 |
19 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
20 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
21 |
|
22 |
.../files/mcu8051ide-1.4.10-appdata.patch | 22 ++++++++++ |
23 |
.../mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch | 36 ++++++++++++++++ |
24 |
.../files/mcu8051ide-1.4.10-desktop-file.patch | 23 ++++++++++ |
25 |
.../mcu8051ide/mcu8051ide-1.4.10-r1.ebuild | 49 ++++++++++++++++++++++ |
26 |
4 files changed, 130 insertions(+) |
27 |
|
28 |
diff --git a/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch |
29 |
new file mode 100644 |
30 |
index 000000000000..c92f5aedfd4a |
31 |
--- /dev/null |
32 |
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch |
33 |
@@ -0,0 +1,22 @@ |
34 |
+From: Carlos Henrique Lima Melara <charlesmelara@×××××××.com> |
35 |
+Subject: Update the appdata file to comply with the new standard |
36 |
+Last-Update: 2020-06-27 |
37 |
+ |
38 |
+--- a/mcu8051ide.appdata.xml |
39 |
++++ b/mcu8051ide.appdata.xml |
40 |
+@@ -1,7 +1,7 @@ |
41 |
+ <?xml version="1.0" encoding="UTF-8"?> |
42 |
+ <!-- Copyright 2014 Martin Ošmera <martin.osmera@××××××××××××××××××××.com> --> |
43 |
+-<application> |
44 |
+- <id type="desktop">mcu8051ide.desktop</id> |
45 |
++<component type="desktop-application"> |
46 |
++ <id>mcu8051ide.desktop</id> |
47 |
+ <metadata_license>CC0-1.0</metadata_license> |
48 |
+ <project_license>GPL-2.0+</project_license> |
49 |
+ <name>MCU 8051 IDE</name> |
50 |
+@@ -19,4 +19,4 @@ |
51 |
+ <url type="homepage">https://sourceforge.net/projects/mcu8051ide/</url> |
52 |
+ <updatecontact>martin.osmera@×××××.com</updatecontact> |
53 |
+ <project_group>Development</project_group> |
54 |
+-</application> |
55 |
++</component> |
56 |
|
57 |
diff --git a/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch |
58 |
new file mode 100644 |
59 |
index 000000000000..04b24f4c1e87 |
60 |
--- /dev/null |
61 |
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch |
62 |
@@ -0,0 +1,36 @@ |
63 |
+From: Carlos Henrique Lima Melara <charlesmelara@×××××××.com> |
64 |
+Subject: Remove unneeded files installation and update appstream location |
65 |
+Last-Update: 2020-06-27 |
66 |
+ |
67 |
+--- a/CMakeLists.txt |
68 |
++++ b/CMakeLists.txt |
69 |
+@@ -53,10 +53,6 @@ |
70 |
+ ENDFOREACH(ext) |
71 |
+ ENDFOREACH(subdir) |
72 |
+ |
73 |
+-# Install manual page(s) |
74 |
+-FILE(GLOB man doc/man/*) |
75 |
+-INSTALL(FILES ${man} DESTINATION share/man/man1) |
76 |
+- |
77 |
+ # Install demonstration project files |
78 |
+ FILE(GLOB demo demo/*) |
79 |
+ INSTALL(FILES ${demo} DESTINATION ${target_installation_directory}/demo) |
80 |
+@@ -72,7 +68,7 @@ INSTALL(FILES ${translations} DESTINATIO |
81 |
+ # Install .desktop spec and application icon |
82 |
+ INSTALL(FILES mcu8051ide.png DESTINATION share/pixmaps/) |
83 |
+ INSTALL(FILES mcu8051ide.desktop DESTINATION share/applications/) |
84 |
+-INSTALL(FILES mcu8051ide.appdata.xml DESTINATION share/appdata/) |
85 |
++INSTALL(FILES mcu8051ide.appdata.xml DESTINATION share/metainfo/) |
86 |
+ INSTALL(FILES application-x-mcu8051ide.xml DESTINATION share/mime/packages/) |
87 |
+ |
88 |
+ # Install launcher |
89 |
+@@ -84,9 +80,3 @@ INSTALL( |
90 |
+ OWNER_WRITE OWNER_READ OWNER_EXECUTE |
91 |
+ GROUP_EXECUTE GROUP_READ |
92 |
+ ) |
93 |
+- |
94 |
+-# Install misc. files |
95 |
+-INSTALL( |
96 |
+- FILES ChangeLog LICENSE |
97 |
+- DESTINATION ${target_installation_directory} |
98 |
+-) |
99 |
|
100 |
diff --git a/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-desktop-file.patch b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-desktop-file.patch |
101 |
new file mode 100644 |
102 |
index 000000000000..00dde9bdef96 |
103 |
--- /dev/null |
104 |
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-desktop-file.patch |
105 |
@@ -0,0 +1,23 @@ |
106 |
+Subject: Add Keywords and Field code to Exec field |
107 |
+ Fabricio added some keywords and Carlos added the Field code. |
108 |
+ |
109 |
+Author: Fabricio Alcalde <f@×××××××××.ar> |
110 |
+Author: Carlos Henrique Lima Melara <charlesmelara@×××××××.com> |
111 |
+Last-Update: 2020-06-27 |
112 |
+ |
113 |
+--- a/mcu8051ide.desktop |
114 |
++++ b/mcu8051ide.desktop |
115 |
+@@ -2,7 +2,7 @@ |
116 |
+ Categories=Development; |
117 |
+ Comment=Graphical IDE for MCS-51 based microcontrollers |
118 |
+ Comment[en_US]=Graphical IDE for MCS-51 based microcontrollers |
119 |
+-Exec=mcu8051ide |
120 |
++Exec=mcu8051ide %f |
121 |
+ GenericName=MCU 8051 IDE |
122 |
+ GenericName[en_US]=MCU 8051 IDE |
123 |
+ Icon=mcu8051ide |
124 |
+@@ -17,3 +17,4 @@ Version=1.0 |
125 |
+ X-DCOP-ServiceType= |
126 |
+ X-KDE-SubstituteUID=false |
127 |
+ X-KDE-Username= |
128 |
++Keywords=mcu8051ide;8051;ide |
129 |
|
130 |
diff --git a/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild b/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild |
131 |
new file mode 100644 |
132 |
index 000000000000..25736dcc3994 |
133 |
--- /dev/null |
134 |
+++ b/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild |
135 |
@@ -0,0 +1,49 @@ |
136 |
+# Copyright 1999-2022 Gentoo Authors |
137 |
+# Distributed under the terms of the GNU General Public License v2 |
138 |
+ |
139 |
+EAPI=8 |
140 |
+ |
141 |
+inherit cmake xdg |
142 |
+ |
143 |
+DESCRIPTION="Graphical IDE for microcontrollers based on 8051" |
144 |
+HOMEPAGE="https://sourceforge.net/projects/mcu8051ide/" |
145 |
+SRC_URI="mirror://gentoo/${P}.tar.gz" |
146 |
+ |
147 |
+LICENSE="GPL-2+" |
148 |
+SLOT="0" |
149 |
+KEYWORDS="~amd64" |
150 |
+ |
151 |
+# The doxygen dependency is suspect, but it appears to be used at runtime. |
152 |
+RDEPEND=" |
153 |
+ >=app-doc/doxygen-1.7 |
154 |
+ >=app-text/hunspell-1.3 |
155 |
+ >=dev-embedded/sdcc-2.5[mcs51] |
156 |
+ >=dev-lang/tcl-8.5.9:* |
157 |
+ >=dev-lang/tk-8.5.9:* |
158 |
+ >=dev-tcltk/bwidget-1.8 |
159 |
+ >dev-tcltk/itcl-3.3 |
160 |
+ >=dev-tcltk/tcllib-1.11 |
161 |
+ >=dev-tcltk/tclx-8.4 |
162 |
+ >=dev-tcltk/tdom-0.8 |
163 |
+ >=dev-tcltk/tkimg-1.4 |
164 |
+ >=dev-util/indent-2.2 |
165 |
+" |
166 |
+DEPEND="${RDEPEND}" |
167 |
+BDEPEND="app-arch/gzip" |
168 |
+ |
169 |
+PATCHES=( |
170 |
+ # Patches thanks to Debian |
171 |
+ "${FILESDIR}"/${P}-cmake.patch |
172 |
+ "${FILESDIR}"/${P}-appdata.patch |
173 |
+ "${FILESDIR}"/${P}-desktop-file.patch |
174 |
+) |
175 |
+ |
176 |
+src_prepare() { |
177 |
+ cmake_src_prepare |
178 |
+ gunzip doc/man/mcu8051ide.1.gz || die |
179 |
+} |
180 |
+ |
181 |
+src_install() { |
182 |
+ cmake_src_install |
183 |
+ doman doc/man/mcu8051ide.1 |
184 |
+} |