1 |
commit: 86f0ca57171bf6e3a9be0709608daa33acd30d39 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 15 06:00:28 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 15 06:00:39 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86f0ca57 |
7 |
|
8 |
x11-libs/snorenotify: Fix desktop files |
9 |
|
10 |
Revision bump adds upstream patch spotted by Coacher |
11 |
<itumaykin+gentoo <AT> gmail.com>. |
12 |
|
13 |
Gentoo-bug: 588756 |
14 |
|
15 |
Package-Manager: portage-2.3.0 |
16 |
|
17 |
.../files/snorenotify-0.7.0-desktop.patch | 41 +++++++++++++++ |
18 |
x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild | 59 ++++++++++++++++++++++ |
19 |
2 files changed, 100 insertions(+) |
20 |
|
21 |
diff --git a/x11-libs/snorenotify/files/snorenotify-0.7.0-desktop.patch b/x11-libs/snorenotify/files/snorenotify-0.7.0-desktop.patch |
22 |
new file mode 100644 |
23 |
index 0000000..914288d |
24 |
--- /dev/null |
25 |
+++ b/x11-libs/snorenotify/files/snorenotify-0.7.0-desktop.patch |
26 |
@@ -0,0 +1,41 @@ |
27 |
+From 897a64b18f8727c951dac8ca91ebf43f2c18f908 Mon Sep 17 00:00:00 2001 |
28 |
+From: Javier Llorente <javier@××××××××.org> |
29 |
+Date: Sat, 13 Feb 2016 12:20:03 +0100 |
30 |
+Subject: [PATCH] Fix desktop categories, remove version (see |
31 |
+ desktop-entry-spec), add a newline at eof |
32 |
+ |
33 |
+--- |
34 |
+ src/daemon/snorenotify.desktop.in | 3 +-- |
35 |
+ src/settings/snoresettings.desktop.in | 3 +-- |
36 |
+ 2 files changed, 2 insertions(+), 4 deletions(-) |
37 |
+ |
38 |
+diff --git a/src/daemon/snorenotify.desktop.in b/src/daemon/snorenotify.desktop.in |
39 |
+index 83f0e3f..9fc1876 100644 |
40 |
+--- a/src/daemon/snorenotify.desktop.in |
41 |
++++ b/src/daemon/snorenotify.desktop.in |
42 |
+@@ -1,8 +1,7 @@ |
43 |
+ [Desktop Entry] |
44 |
+ Type=Application |
45 |
+-Version=@SNORE_VERSION_MAJOR@.@SNORE_VERSION_MINOR@.@SNORE_VERSION_PATCH@ |
46 |
+ Name=SnoreNotify |
47 |
+ Comment=A daemon redirecting desktop notifications to one or multiple additional backends. |
48 |
+ Icon=snore |
49 |
+ Exec=snorenotify |
50 |
+-Categories=Qt;System; |
51 |
+\ No newline at end of file |
52 |
++Categories=Qt;Settings;Qt;Utility;DesktopSettings; |
53 |
+diff --git a/src/settings/snoresettings.desktop.in b/src/settings/snoresettings.desktop.in |
54 |
+index 823bb2d..497d119 100644 |
55 |
+--- a/src/settings/snoresettings.desktop.in |
56 |
++++ b/src/settings/snoresettings.desktop.in |
57 |
+@@ -1,8 +1,7 @@ |
58 |
+ [Desktop Entry] |
59 |
+ Type=Application |
60 |
+-Version=@SNORE_VERSION_MAJOR@.@SNORE_VERSION_MINOR@.@SNORE_VERSION_PATCH@ |
61 |
+ Name=SnoreSettings |
62 |
+ Comment=Settings client for applications using libsnore. |
63 |
+ Icon=snore |
64 |
+ Exec=snoresettings |
65 |
+-Categories=Qt;System; |
66 |
+\ No newline at end of file |
67 |
++Categories=Qt;Settings;Qt;Utility;DesktopSettings; |
68 |
|
69 |
diff --git a/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild b/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild |
70 |
new file mode 100644 |
71 |
index 0000000..f57f17e |
72 |
--- /dev/null |
73 |
+++ b/x11-libs/snorenotify/snorenotify-0.7.0-r1.ebuild |
74 |
@@ -0,0 +1,59 @@ |
75 |
+# Copyright 1999-2016 Gentoo Foundation |
76 |
+# Distributed under the terms of the GNU General Public License v2 |
77 |
+# $Id$ |
78 |
+ |
79 |
+EAPI=6 |
80 |
+ |
81 |
+inherit cmake-utils gnome2-utils virtualx |
82 |
+ |
83 |
+DESCRIPTION="Multi platform Qt notification framework" |
84 |
+HOMEPAGE="https://techbase.kde.org/Projects/Snorenotify" |
85 |
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
86 |
+ |
87 |
+LICENSE="LGPL-3+" |
88 |
+SLOT="0" |
89 |
+KEYWORDS="~amd64 ~arm ~x86" |
90 |
+IUSE="sound test" |
91 |
+ |
92 |
+RDEPEND=" |
93 |
+ dev-qt/qtcore:5 |
94 |
+ dev-qt/qtdbus:5 |
95 |
+ dev-qt/qtdeclarative:5 |
96 |
+ dev-qt/qtgui:5 |
97 |
+ dev-qt/qtnetwork:5 |
98 |
+ dev-qt/qtwebsockets:5 |
99 |
+ dev-qt/qtwidgets:5 |
100 |
+ sound? ( dev-qt/qtmultimedia:5 ) |
101 |
+" |
102 |
+DEPEND="${RDEPEND} |
103 |
+ dev-qt/linguist-tools:5 |
104 |
+ kde-frameworks/extra-cmake-modules |
105 |
+ test? ( dev-qt/qttest:5 ) |
106 |
+" |
107 |
+ |
108 |
+PATCHES=( "${FILESDIR}/${P}-desktop.patch" ) |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local mycmakeargs=( |
112 |
+ $(cmake-utils_use_find_package sound Qt5Multimedia) |
113 |
+ $(cmake-utils_use_find_package test Qt5Test) |
114 |
+ ) |
115 |
+ |
116 |
+ cmake-utils_src_configure |
117 |
+} |
118 |
+ |
119 |
+src_test() { |
120 |
+ virtx cmake-utils_src_test |
121 |
+} |
122 |
+ |
123 |
+pkg_preinst() { |
124 |
+ gnome2_icon_savelist |
125 |
+} |
126 |
+ |
127 |
+pkg_postinst() { |
128 |
+ gnome2_icon_cache_update |
129 |
+} |
130 |
+ |
131 |
+pkg_postrm() { |
132 |
+ gnome2_icon_cache_update |
133 |
+} |