summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Arrifano <miknix@gentoo.org>2012-02-10 00:50:47 +0000
committerAngelo Arrifano <miknix@gentoo.org>2012-02-10 00:50:47 +0000
commitdbd0d786199b6ad051d486b7a26d72c02e35f902 (patch)
tree639555ef2bc218e95fbb725c2398d80e61d30a76 /dev-embedded
parentRemove dependency over audiofile, that was never used by PulseAudio (looks li... (diff)
downloadgentoo-2-dbd0d786199b6ad051d486b7a26d72c02e35f902.tar.gz
gentoo-2-dbd0d786199b6ad051d486b7a26d72c02e35f902.tar.bz2
gentoo-2-dbd0d786199b6ad051d486b7a26d72c02e35f902.zip
Add menu entry since upstream does not do it.
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/arduino/ChangeLog6
-rw-r--r--dev-embedded/arduino/arduino-1.0.ebuild8
-rw-r--r--dev-embedded/arduino/files/arduino.desktop10
3 files changed, 22 insertions, 2 deletions
diff --git a/dev-embedded/arduino/ChangeLog b/dev-embedded/arduino/ChangeLog
index 59a763d32cb6..47110ea5d252 100644
--- a/dev-embedded/arduino/ChangeLog
+++ b/dev-embedded/arduino/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-embedded/arduino
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.7 2012/02/10 00:09:27 miknix Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/ChangeLog,v 1.8 2012/02/10 00:50:47 miknix Exp $
+
+ 10 Feb 2012; Angelo Arrifano <miknix@gentoo.org> arduino-1.0.ebuild,
+ +files/arduino.desktop:
+ Add menu entry since upstream does not do it.
*arduino-1.0 (10 Feb 2012)
diff --git a/dev-embedded/arduino/arduino-1.0.ebuild b/dev-embedded/arduino/arduino-1.0.ebuild
index 846e660e5a32..d2061a298510 100644
--- a/dev-embedded/arduino/arduino-1.0.ebuild
+++ b/dev-embedded/arduino/arduino-1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-1.0.ebuild,v 1.1 2012/02/10 00:09:27 miknix Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-embedded/arduino/arduino-1.0.ebuild,v 1.2 2012/02/10 00:50:47 miknix Exp $
EAPI=3
inherit eutils
@@ -76,5 +76,11 @@ src_install() {
|| die "Couldn't symlink system avrdude files"
dosym /etc/avrdude.conf "/usr/share/${P}/hardware/tools/avrdude.conf" \
|| die "Couldn't symlink system avrdude files"
+
+ # install desktop icon
+ mkdir -p "${D}"/usr/share/applications
+ sed -e s@__P__@${P}@ < "${FILESDIR}"/arduino.desktop \
+ > "${D}"/usr/share/applications/arduino.desktop \
+ || die "Failed to install desktop icon"
fi
}
diff --git a/dev-embedded/arduino/files/arduino.desktop b/dev-embedded/arduino/files/arduino.desktop
new file mode 100644
index 000000000000..e435cdbd770e
--- /dev/null
+++ b/dev-embedded/arduino/files/arduino.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=arduino
+Comment=Open-source electronics prototyping platform
+Exec=arduino
+Icon=/usr/share/__P__/reference/img/logo.png
+Terminal=false
+Type=Application
+Categories=Development;
+StartupNotify=false