media-sound/clementine: fix desktop file QA notice
authorAlexander Golubev <fatzer2@gmail.com>
Mon, 12 Sep 2016 17:27:32 +0000 (20:27 +0300)
committerDavid Seifert <soap@gentoo.org>
Tue, 13 Sep 2016 07:49:22 +0000 (09:49 +0200)
This fixes QA notice complaning that OnlyShowIn key for action groups is
deprecated.
See gentoo bug 460412#3
Closes: https://github.com/gentoo/gentoo/pull/2311

Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/clementine/clementine-1.3.1-r3.ebuild [moved from media-sound/clementine/clementine-1.3.1-r2.ebuild with 99% similarity]
media-sound/clementine/files/clementine-1.3.1-fix-desktop-file.patch [new file with mode: 0644]

similarity index 99%
rename from media-sound/clementine/clementine-1.3.1-r2.ebuild
rename to media-sound/clementine/clementine-1.3.1-r3.ebuild
index 18f42ef7067eb76ec075cf7fec8005f1e8231dd4..d0baf97ed2ef296d3092726e9bbda7dd7305b775 100644 (file)
@@ -94,6 +94,7 @@ S="${WORKDIR}/${MY_P^}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3-fix-tokenizer.patch
+       "${FILESDIR}"/${P}-fix-desktop-file.patch
 )
 
 src_prepare() {
diff --git a/media-sound/clementine/files/clementine-1.3.1-fix-desktop-file.patch b/media-sound/clementine/files/clementine-1.3.1-fix-desktop-file.patch
new file mode 100644 (file)
index 0000000..bb56131
--- /dev/null
@@ -0,0 +1,52 @@
+This patch fixes gentoo QA notices against the desktop file (see gentoo bug 460412#3)
+Based upon patch extracted from upstream git; original patch info:
+commit 04f73d125365d97fa6f72677ec5d220292690e56
+Author: Golubev Alexander <fatzer2@gmail.com>
+Date:   Mon Jul 18 13:45:03 2016 +0400
+
+    Remove OnlyShowIn=Unity from clementine.desktop's action sections (#5444)
+
+diff --git a/dist/clementine.desktop b/dist/clementine.desktop
+index 2fb9559..9ee881e 100644
+--- a/dist/clementine.desktop
++++ b/dist/clementine.desktop
+@@ -38,7 +38,6 @@ Actions=Play;Pause;Stop;Previous;Next;
+ [Desktop Action Play]
+ Name=Play
+ Exec=clementine --play
+-OnlyShowIn=Unity;
+ Name[af]=Speel
+ Name[be]=Прайграць
+ Name[bg]=Възпроизвеждане
+@@ -89,7 +88,6 @@ Name[zh_TW]=播放
+ [Desktop Action Pause]
+ Name=Pause
+ Exec=clementine --pause
+-OnlyShowIn=Unity;
+ Name[be]=Прыпыніць
+ Name[bg]=Пауза
+ Name[br]=Ehan
+@@ -135,7 +133,6 @@ Name[zh_TW]=暫停
+ [Desktop Action Stop]
+ Name=Stop
+ Exec=clementine --stop
+-OnlyShowIn=Unity;
+ Name[be]=Спыніць
+ Name[bg]=Спиране
+ Name[br]=Paouez
+@@ -184,7 +181,6 @@ Name[zh_TW]=停止
+ [Desktop Action Previous]
+ Name=Previous
+ Exec=clementine --previous
+-OnlyShowIn=Unity;
+ Name[af]=Vorige
+ Name[be]=Папярэдні
+ Name[bg]=Предишна
+@@ -232,7 +228,6 @@ Name[zh_TW]=往前
+ [Desktop Action Next]
+ Name=Next
+ Exec=clementine --next
+-OnlyShowIn=Unity;
+ Name[af]=Volgende
+ Name[be]=Далей
+ Name[bg]=Следваща