1 |
commit: 2fdec44028f9ca59ffb10018be9b0b6af79d3ceb |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 26 15:28:17 2015 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 26 15:28:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fdec440 |
7 |
|
8 |
gnome-extra/gnome-shell-extensions: Upstream finally solved the bug with missing entries, use the patches from 'master' then |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../gnome-shell-extensions-3.18.2-apps-menu.patch | 29 ++++++++ |
13 |
.../gnome-shell-extensions-3.18.2-apps-menu2.patch | 44 +++++++++++ |
14 |
.../gnome-shell-extensions-3.18.2-r2.ebuild | 86 ++++++++++++++++++++++ |
15 |
3 files changed, 159 insertions(+) |
16 |
|
17 |
diff --git a/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu.patch b/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu.patch |
18 |
new file mode 100644 |
19 |
index 0000000..5c8ca71 |
20 |
--- /dev/null |
21 |
+++ b/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu.patch |
22 |
@@ -0,0 +1,29 @@ |
23 |
+From 1958ce779467f03672e8d72afa45e2ab14bee5f5 Mon Sep 17 00:00:00 2001 |
24 |
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@×××××.org> |
25 |
+Date: Wed, 16 Dec 2015 22:32:59 +0100 |
26 |
+Subject: apps-menu: Remove unused variable |
27 |
+ |
28 |
+https://bugzilla.gnome.org/show_bug.cgi?id=759004 |
29 |
+--- |
30 |
+ extensions/apps-menu/extension.js | 4 +--- |
31 |
+ 1 file changed, 1 insertion(+), 3 deletions(-) |
32 |
+ |
33 |
+diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js |
34 |
+index 3180f3a..925d344 100644 |
35 |
+--- a/extensions/apps-menu/extension.js |
36 |
++++ b/extensions/apps-menu/extension.js |
37 |
+@@ -405,10 +405,8 @@ const ApplicationsButton = new Lang.Class({ |
38 |
+ continue; |
39 |
+ } |
40 |
+ let app = appSys.lookup_app(id); |
41 |
+- if (appInfo.should_show()) { |
42 |
+- let menu_id = dir.get_menu_id(); |
43 |
++ if (appInfo.should_show()) |
44 |
+ this.applicationsByCategory[categoryId].push(app); |
45 |
+- } |
46 |
+ } else if (nextType == GMenu.TreeItemType.DIRECTORY) { |
47 |
+ let subdir = iter.get_directory(); |
48 |
+ if (!subdir.get_is_nodisplay()) |
49 |
+-- |
50 |
+cgit v0.11.2 |
51 |
+ |
52 |
|
53 |
diff --git a/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu2.patch b/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu2.patch |
54 |
new file mode 100644 |
55 |
index 0000000..31dbaf2 |
56 |
--- /dev/null |
57 |
+++ b/gnome-extra/gnome-shell-extensions/files/gnome-shell-extensions-3.18.2-apps-menu2.patch |
58 |
@@ -0,0 +1,44 @@ |
59 |
+From 79c76a87e29e5ca70e74f3d62857c341a4ecae6c Mon Sep 17 00:00:00 2001 |
60 |
+From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@×××××.org> |
61 |
+Date: Wed, 16 Dec 2015 18:46:42 +0100 |
62 |
+Subject: apps-menu: Fix .desktop entries in subdirectories |
63 |
+ |
64 |
+GMenu's TreeEntries return an AppInfo that is created from the |
65 |
+.desktop filename, not from a desktop ID as expected by the |
66 |
+AppSystem. As a result, g_app_info_get_id() will simply return |
67 |
+the file's basename, which only matches the desktop ID if no |
68 |
+prefix-to-subdirectory mapping as described in the menu spec |
69 |
+is involved. |
70 |
+Fix this by basing the app lookup on the entry's desktop ID instead |
71 |
+of the AppInfo. |
72 |
+ |
73 |
+https://bugzilla.gnome.org/show_bug.cgi?id=759004 |
74 |
+--- |
75 |
+ extensions/apps-menu/extension.js | 5 ++--- |
76 |
+ 1 file changed, 2 insertions(+), 3 deletions(-) |
77 |
+ |
78 |
+diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js |
79 |
+index 925d344..796d235 100644 |
80 |
+--- a/extensions/apps-menu/extension.js |
81 |
++++ b/extensions/apps-menu/extension.js |
82 |
+@@ -397,15 +397,14 @@ const ApplicationsButton = new Lang.Class({ |
83 |
+ while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) { |
84 |
+ if (nextType == GMenu.TreeItemType.ENTRY) { |
85 |
+ let entry = iter.get_entry(); |
86 |
+- let appInfo = entry.get_app_info(); |
87 |
+ let id; |
88 |
+ try { |
89 |
+- id = appInfo.get_id(); // catch non-UTF8 filenames |
90 |
++ id = entry.get_desktop_file_id(); // catch non-UTF8 filenames |
91 |
+ } catch(e) { |
92 |
+ continue; |
93 |
+ } |
94 |
+ let app = appSys.lookup_app(id); |
95 |
+- if (appInfo.should_show()) |
96 |
++ if (app.get_app_info().should_show()) |
97 |
+ this.applicationsByCategory[categoryId].push(app); |
98 |
+ } else if (nextType == GMenu.TreeItemType.DIRECTORY) { |
99 |
+ let subdir = iter.get_directory(); |
100 |
+-- |
101 |
+cgit v0.11.2 |
102 |
+ |
103 |
|
104 |
diff --git a/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-3.18.2-r2.ebuild b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-3.18.2-r2.ebuild |
105 |
new file mode 100644 |
106 |
index 0000000..5601a69 |
107 |
--- /dev/null |
108 |
+++ b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-3.18.2-r2.ebuild |
109 |
@@ -0,0 +1,86 @@ |
110 |
+# Copyright 1999-2015 Gentoo Foundation |
111 |
+# Distributed under the terms of the GNU General Public License v2 |
112 |
+# $Id$ |
113 |
+ |
114 |
+EAPI="5" |
115 |
+GCONF_DEBUG="no" |
116 |
+ |
117 |
+inherit gnome2 readme.gentoo |
118 |
+ |
119 |
+DESCRIPTION="JavaScript extensions for GNOME Shell" |
120 |
+HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell/Extensions" |
121 |
+ |
122 |
+LICENSE="GPL-2" |
123 |
+SLOT="0" |
124 |
+IUSE="examples" |
125 |
+KEYWORDS="~amd64 ~x86" |
126 |
+ |
127 |
+COMMON_DEPEND=" |
128 |
+ >=dev-libs/glib-2.26:2 |
129 |
+ >=gnome-base/libgtop-2.28.3[introspection] |
130 |
+ >=app-eselect/eselect-gnome-shell-extensions-20111211 |
131 |
+" |
132 |
+RDEPEND="${COMMON_DEPEND} |
133 |
+ >=dev-libs/gjs-1.29 |
134 |
+ dev-libs/gobject-introspection:= |
135 |
+ dev-libs/atk[introspection] |
136 |
+ gnome-base/gnome-menus:3[introspection] |
137 |
+ >=gnome-base/gnome-shell-3.14.2 |
138 |
+ media-libs/clutter:1.0[introspection] |
139 |
+ net-libs/telepathy-glib[introspection] |
140 |
+ x11-libs/gdk-pixbuf:2[introspection] |
141 |
+ x11-libs/gtk+:3[introspection] |
142 |
+ x11-libs/pango[introspection] |
143 |
+ x11-themes/gnome-icon-theme-symbolic |
144 |
+" |
145 |
+DEPEND="${COMMON_DEPEND} |
146 |
+ >=dev-util/intltool-0.50 |
147 |
+ sys-devel/gettext |
148 |
+ virtual/pkgconfig |
149 |
+" |
150 |
+# eautoreconf needs gnome-base/gnome-common |
151 |
+ |
152 |
+DISABLE_AUTOFORMATTING="yes" |
153 |
+DOC_CONTENTS="Installed extensions installed are initially disabled by default. |
154 |
+To change the system default and enable some extensions, you can use |
155 |
+# eselect gnome-shell-extensions |
156 |
+ |
157 |
+Alternatively, to enable/disable extensions on a per-user basis, |
158 |
+you can use the https://extensions.gnome.org/ web interface, the |
159 |
+gnome-extra/gnome-tweak-tool GUI, or modify the org.gnome.shell |
160 |
+enabled-extensions gsettings key from the command line or a script." |
161 |
+ |
162 |
+src_prepare() { |
163 |
+ # Fix https://bugzilla.gnome.org/show_bug.cgi?id=759004 (from |
164 |
+ # 'master') |
165 |
+ epatch "${FILESDIR}"/${PN}-3.18.2-apps-menu{,2}.patch |
166 |
+ gnome2_src_prepare |
167 |
+} |
168 |
+ |
169 |
+src_configure() { |
170 |
+ gnome2_src_configure --enable-extensions=all |
171 |
+} |
172 |
+ |
173 |
+src_install() { |
174 |
+ gnome2_src_install |
175 |
+ |
176 |
+ local example="example@×××××××××××××××××××××××××××××××××××××.com" |
177 |
+ if use examples; then |
178 |
+ mv "${ED}usr/share/gnome-shell/extensions/${example}" \ |
179 |
+ "${ED}usr/share/doc/${PF}/" || die |
180 |
+ else |
181 |
+ rm -r "${ED}usr/share/gnome-shell/extensions/${example}" || die |
182 |
+ fi |
183 |
+ |
184 |
+ readme.gentoo_create_doc |
185 |
+} |
186 |
+ |
187 |
+pkg_postinst() { |
188 |
+ gnome2_pkg_postinst |
189 |
+ |
190 |
+ ebegin "Updating list of installed extensions" |
191 |
+ eselect gnome-shell-extensions update |
192 |
+ eend $? |
193 |
+ |
194 |
+ readme.gentoo_print_elog |
195 |
+} |