public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-embedded/mcu8051ide/, dev-embedded/mcu8051ide/files/
@ 2022-02-27 22:32 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2022-02-27 22:32 UTC (permalink / raw
  To: gentoo-commits

commit:     51b061083a0aeaa9580055a8082153be17990fe4
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 27 22:31:44 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 27 22:32:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b06108

dev-embedded/mcu8051ide: EAPI-8 bump, switch to cmake.eclass

Fix HOMEPAGE
Fix appdata installation path
Fix desktop file
Drop install of useless files
Don't install compressed manpages

Closes: https://bugs.gentoo.org/735720
Closes: https://bugs.gentoo.org/735726
Closes: https://bugs.gentoo.org/834305
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/mcu8051ide-1.4.10-appdata.patch          | 22 ++++++++++
 .../mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch | 36 ++++++++++++++++
 .../files/mcu8051ide-1.4.10-desktop-file.patch     | 23 ++++++++++
 .../mcu8051ide/mcu8051ide-1.4.10-r1.ebuild         | 49 ++++++++++++++++++++++
 4 files changed, 130 insertions(+)

diff --git a/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch
new file mode 100644
index 000000000000..c92f5aedfd4a
--- /dev/null
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-appdata.patch
@@ -0,0 +1,22 @@
+From: Carlos Henrique Lima Melara <charlesmelara@outlook.com>
+Subject: Update the appdata file to comply with the new standard
+Last-Update: 2020-06-27
+
+--- a/mcu8051ide.appdata.xml
++++ b/mcu8051ide.appdata.xml
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Copyright 2014 Martin Ošmera <martin.osmera@moravia-microsystems.com> -->
+-<application>
+- <id type="desktop">mcu8051ide.desktop</id>
++<component type="desktop-application">
++ <id>mcu8051ide.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <name>MCU 8051 IDE</name>
+@@ -19,4 +19,4 @@
+  <url type="homepage">https://sourceforge.net/projects/mcu8051ide/</url>
+  <updatecontact>martin.osmera@gmail.com</updatecontact>
+  <project_group>Development</project_group>
+-</application>
++</component>

diff --git a/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch
new file mode 100644
index 000000000000..04b24f4c1e87
--- /dev/null
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-cmake.patch
@@ -0,0 +1,36 @@
+From: Carlos Henrique Lima Melara <charlesmelara@outlook.com>
+Subject: Remove unneeded files installation and update appstream location
+Last-Update: 2020-06-27
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -53,10 +53,6 @@
+ 	ENDFOREACH(ext)
+ ENDFOREACH(subdir)
+ 
+-# Install manual page(s)
+-FILE(GLOB man doc/man/*)
+-INSTALL(FILES ${man} DESTINATION share/man/man1)
+-
+ # Install demonstration project files
+ FILE(GLOB demo demo/*)
+ INSTALL(FILES ${demo} DESTINATION ${target_installation_directory}/demo)
+@@ -72,7 +68,7 @@ INSTALL(FILES ${translations} DESTINATIO
+ # Install .desktop spec and application icon
+ INSTALL(FILES mcu8051ide.png DESTINATION share/pixmaps/)
+ INSTALL(FILES mcu8051ide.desktop DESTINATION share/applications/)
+-INSTALL(FILES mcu8051ide.appdata.xml DESTINATION share/appdata/)
++INSTALL(FILES mcu8051ide.appdata.xml DESTINATION share/metainfo/)
+ INSTALL(FILES application-x-mcu8051ide.xml DESTINATION share/mime/packages/)
+ 
+ # Install launcher
+@@ -84,9 +80,3 @@ INSTALL(
+ 		OWNER_WRITE OWNER_READ OWNER_EXECUTE
+ 		GROUP_EXECUTE GROUP_READ
+ )
+-
+-# Install misc. files
+-INSTALL(
+-	FILES ChangeLog LICENSE
+-	DESTINATION ${target_installation_directory}
+-)

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
new file mode 100644
index 000000000000..00dde9bdef96
--- /dev/null
+++ b/dev-embedded/mcu8051ide/files/mcu8051ide-1.4.10-desktop-file.patch
@@ -0,0 +1,23 @@
+Subject: Add Keywords and Field code to Exec field
+ Fabricio added some keywords and Carlos added the Field code.
+
+Author: Fabricio Alcalde <f@lcald.com.ar>
+Author: Carlos Henrique Lima Melara <charlesmelara@outlook.com>
+Last-Update: 2020-06-27
+
+--- a/mcu8051ide.desktop
++++ b/mcu8051ide.desktop
+@@ -2,7 +2,7 @@
+ Categories=Development;
+ Comment=Graphical IDE for MCS-51 based microcontrollers
+ Comment[en_US]=Graphical IDE for MCS-51 based microcontrollers
+-Exec=mcu8051ide
++Exec=mcu8051ide %f
+ GenericName=MCU 8051 IDE
+ GenericName[en_US]=MCU 8051 IDE
+ Icon=mcu8051ide
+@@ -17,3 +17,4 @@ Version=1.0
+ X-DCOP-ServiceType=
+ X-KDE-SubstituteUID=false
+ X-KDE-Username=
++Keywords=mcu8051ide;8051;ide

diff --git a/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild b/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild
new file mode 100644
index 000000000000..25736dcc3994
--- /dev/null
+++ b/dev-embedded/mcu8051ide/mcu8051ide-1.4.10-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake xdg
+
+DESCRIPTION="Graphical IDE for microcontrollers based on 8051"
+HOMEPAGE="https://sourceforge.net/projects/mcu8051ide/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# The doxygen dependency is suspect, but it appears to be used at runtime.
+RDEPEND="
+	>=app-doc/doxygen-1.7
+	>=app-text/hunspell-1.3
+	>=dev-embedded/sdcc-2.5[mcs51]
+	>=dev-lang/tcl-8.5.9:*
+	>=dev-lang/tk-8.5.9:*
+	>=dev-tcltk/bwidget-1.8
+	>dev-tcltk/itcl-3.3
+	>=dev-tcltk/tcllib-1.11
+	>=dev-tcltk/tclx-8.4
+	>=dev-tcltk/tdom-0.8
+	>=dev-tcltk/tkimg-1.4
+	>=dev-util/indent-2.2
+"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/gzip"
+
+PATCHES=(
+	# Patches thanks to Debian
+	"${FILESDIR}"/${P}-cmake.patch
+	"${FILESDIR}"/${P}-appdata.patch
+	"${FILESDIR}"/${P}-desktop-file.patch
+)
+
+src_prepare() {
+	cmake_src_prepare
+	gunzip doc/man/mcu8051ide.1.gz || die
+}
+
+src_install() {
+	cmake_src_install
+	doman doc/man/mcu8051ide.1
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-27 22:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-27 22:32 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/mcu8051ide/, dev-embedded/mcu8051ide/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox