1 |
commit: 323056a93a539b1db585d62bfa4cb75e61a28c07 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 27 03:42:17 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jul 27 03:52:58 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=323056a9 |
7 |
|
8 |
net-wireless/gnome-bluetooth: 3.0.1 → 3.1.3 |
9 |
|
10 |
Bump to gnome-3.1.x version. Add a patch for gnome-control-center-3.1.4 |
11 |
compatibility; as a result of the patch, g-c-c has become purely a runtime |
12 |
dependency. |
13 |
|
14 |
--- |
15 |
.../files/gnome-bluetooth-3.1.3-cc-panel.patch | 280 ++++++++++++++++++++ |
16 |
...h-3.0.1.ebuild => gnome-bluetooth-3.1.3.ebuild} | 11 +- |
17 |
.../gnome-bluetooth/gnome-bluetooth-9999.ebuild | 12 +- |
18 |
3 files changed, 298 insertions(+), 5 deletions(-) |
19 |
|
20 |
diff --git a/net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.1.3-cc-panel.patch b/net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.1.3-cc-panel.patch |
21 |
new file mode 100644 |
22 |
index 0000000..0e82383 |
23 |
--- /dev/null |
24 |
+++ b/net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.1.3-cc-panel.patch |
25 |
@@ -0,0 +1,280 @@ |
26 |
+From e4ceaa852b837d0f52b391d75fdf1d786cceafba Mon Sep 17 00:00:00 2001 |
27 |
+From: Bastien Nocera <hadess@××××××.net> |
28 |
+Date: Fri, 15 Jul 2011 09:57:41 +0000 |
29 |
+Subject: properties: Work-around CC library disappearing |
30 |
+ |
31 |
+I was asking for ridicule in the code dept. |
32 |
+--- |
33 |
+diff --git a/configure.ac b/configure.ac |
34 |
+index 5405a6b..87f52b9 100644 |
35 |
+--- a/configure.ac |
36 |
++++ b/configure.ac |
37 |
+@@ -83,11 +83,12 @@ dnl Requires for the properties window |
38 |
+ PANELS_DIR="${libdir}/control-center-1/panels" |
39 |
+ AC_SUBST(PANELS_DIR) |
40 |
+ |
41 |
++dnl Missing libgnome-control-center |
42 |
++dnl which will be resolved at run-time |
43 |
+ PKG_CHECK_MODULES(PROPS, |
44 |
+ dbus-glib-1 >= $DBUS_GLIB_REQUIRED |
45 |
+ glib-2.0 >= $GLIB_REQUIRED |
46 |
+- gtk+-3.0 >= 2.90.7 |
47 |
+- libgnome-control-center) |
48 |
++ gtk+-3.0 >= 2.90.7) |
49 |
+ |
50 |
+ dnl Requires for the applet |
51 |
+ PKG_CHECK_MODULES(APPLET, |
52 |
+@@ -213,6 +214,7 @@ AC_OUTPUT(Makefile |
53 |
+ applet/bluetooth-applet.desktop.in |
54 |
+ properties/Makefile |
55 |
+ properties/bluetooth-properties.desktop.in |
56 |
++ properties/cut-n-paste/Makefile |
57 |
+ wizard/Makefile |
58 |
+ wizard/bluetooth-wizard.desktop.in |
59 |
+ sendto/Makefile |
60 |
+diff --git a/properties/Makefile.am b/properties/Makefile.am |
61 |
+index 08b4b21..0a716f8 100644 |
62 |
+--- a/properties/Makefile.am |
63 |
++++ b/properties/Makefile.am |
64 |
+@@ -1,4 +1,6 @@ |
65 |
+ |
66 |
++SUBDIRS = cut-n-paste |
67 |
++ |
68 |
+ ccpanelsdir = $(PANELS_DIR) |
69 |
+ ccpanels_LTLIBRARIES = libbluetooth.la |
70 |
+ |
71 |
+diff --git a/properties/cc-bluetooth-panel.c b/properties/cc-bluetooth-panel.c |
72 |
+index 26199f6..4aad398 100644 |
73 |
+--- a/properties/cc-bluetooth-panel.c |
74 |
++++ b/properties/cc-bluetooth-panel.c |
75 |
+@@ -26,7 +26,7 @@ |
76 |
+ #endif |
77 |
+ |
78 |
+ #include <glib/gi18n-lib.h> |
79 |
+-#include <libgnome-control-center/cc-shell.h> |
80 |
++#include "cut-n-paste/cc-shell.h" |
81 |
+ |
82 |
+ #include "cc-bluetooth-panel.h" |
83 |
+ |
84 |
+diff --git a/properties/cc-bluetooth-panel.h b/properties/cc-bluetooth-panel.h |
85 |
+index a074783..d3d7625 100644 |
86 |
+--- a/properties/cc-bluetooth-panel.h |
87 |
++++ b/properties/cc-bluetooth-panel.h |
88 |
+@@ -25,7 +25,7 @@ |
89 |
+ #ifndef _CC_BLUETOOTH_PANEL_H |
90 |
+ #define _CC_BLUETOOTH_PANEL_H |
91 |
+ |
92 |
+-#include <libgnome-control-center/cc-panel.h> |
93 |
++#include "cut-n-paste/cc-panel.h" |
94 |
+ |
95 |
+ G_BEGIN_DECLS |
96 |
+ |
97 |
+diff --git a/properties/cut-n-paste/Makefile.am b/properties/cut-n-paste/Makefile.am |
98 |
+new file mode 100644 |
99 |
+index 0000000..1e49a32 |
100 |
+--- a/dev/null |
101 |
++++ b/properties/cut-n-paste/Makefile.am |
102 |
+@@ -0,0 +1,3 @@ |
103 |
++ |
104 |
++ |
105 |
++EXTRA_DIST = cc-shell.h cc-panel.h |
106 |
+diff --git a/properties/cut-n-paste/cc-panel.h b/properties/cut-n-paste/cc-panel.h |
107 |
+new file mode 100644 |
108 |
+index 0000000..57169a9 |
109 |
+--- a/dev/null |
110 |
++++ b/properties/cut-n-paste/cc-panel.h |
111 |
+@@ -0,0 +1,81 @@ |
112 |
++/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- |
113 |
++ * |
114 |
++ * Copyright (C) 2010 Red Hat, Inc. |
115 |
++ * Copyright (C) 2010 Intel, Inc |
116 |
++ * |
117 |
++ * This program is free software; you can redistribute it and/or modify |
118 |
++ * it under the terms of the GNU General Public License as published by |
119 |
++ * the Free Software Foundation; either version 2 of the License, or |
120 |
++ * (at your option) any later version. |
121 |
++ * |
122 |
++ * This program is distributed in the hope that it will be useful, |
123 |
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
124 |
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
125 |
++ * GNU General Public License for more details. |
126 |
++ * |
127 |
++ * You should have received a copy of the GNU General Public License |
128 |
++ * along with this program; if not, write to the Free Software |
129 |
++ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
130 |
++ * |
131 |
++ * Authors: William Jon McCann <jmccann@××××××.com> |
132 |
++ * Thomas Wood <thomas.wood@×××××.com> |
133 |
++ */ |
134 |
++ |
135 |
++ |
136 |
++#ifndef __CC_PANEL_H |
137 |
++#define __CC_PANEL_H |
138 |
++ |
139 |
++#include <glib-object.h> |
140 |
++#include <gtk/gtk.h> |
141 |
++ |
142 |
++ |
143 |
++G_BEGIN_DECLS |
144 |
++ |
145 |
++#define CC_TYPE_PANEL (cc_panel_get_type ()) |
146 |
++#define CC_PANEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CC_TYPE_PANEL, CcPanel)) |
147 |
++#define CC_PANEL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CC_TYPE_PANEL, CcPanelClass)) |
148 |
++#define CC_IS_PANEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CC_TYPE_PANEL)) |
149 |
++#define CC_IS_PANEL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CC_TYPE_PANEL)) |
150 |
++#define CC_PANEL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CC_TYPE_PANEL, CcPanelClass)) |
151 |
++ |
152 |
++typedef struct CcPanelPrivate CcPanelPrivate; |
153 |
++ |
154 |
++typedef struct _CcPanel CcPanel; |
155 |
++typedef struct _CcPanelClass CcPanelClass; |
156 |
++ |
157 |
++/* cc-shell.h requires CcPanel, so make sure it is defined first */ |
158 |
++#include <cut-n-paste/cc-shell.h> |
159 |
++ |
160 |
++/** |
161 |
++ * CcPanel: |
162 |
++ * |
163 |
++ * The contents of this struct are private and should not be accessed directly. |
164 |
++ */ |
165 |
++struct _CcPanel |
166 |
++{ |
167 |
++ /*< private >*/ |
168 |
++ GtkBin parent; |
169 |
++ CcPanelPrivate *priv; |
170 |
++}; |
171 |
++/** |
172 |
++ * CcPanelClass: |
173 |
++ * |
174 |
++ * The contents of this struct are private and should not be accessed directly. |
175 |
++ */ |
176 |
++struct _CcPanelClass |
177 |
++{ |
178 |
++ /*< private >*/ |
179 |
++ GtkBinClass parent_class; |
180 |
++ |
181 |
++ GPermission * (* get_permission) (CcPanel *panel); |
182 |
++}; |
183 |
++ |
184 |
++GType cc_panel_get_type (void); |
185 |
++ |
186 |
++CcShell* cc_panel_get_shell (CcPanel *panel); |
187 |
++ |
188 |
++GPermission *cc_panel_get_permission (CcPanel *panel); |
189 |
++ |
190 |
++G_END_DECLS |
191 |
++ |
192 |
++#endif /* __CC_PANEL_H */ |
193 |
+diff --git a/properties/cut-n-paste/cc-shell.h b/properties/cut-n-paste/cc-shell.h |
194 |
+new file mode 100644 |
195 |
+index 0000000..bc142f1 |
196 |
+--- a/dev/null |
197 |
++++ b/properties/cut-n-paste/cc-shell.h |
198 |
+@@ -0,0 +1,105 @@ |
199 |
++/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- |
200 |
++ * |
201 |
++ * Copyright (c) 2010 Intel, Inc. |
202 |
++ * |
203 |
++ * The Control Center is free software; you can redistribute it and/or modify |
204 |
++ * it under the terms of the GNU General Public License as published by the |
205 |
++ * Free Software Foundation; either version 2 of the License, or (at your |
206 |
++ * option) any later version. |
207 |
++ * |
208 |
++ * The Control Center is distributed in the hope that it will be useful, but |
209 |
++ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
210 |
++ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
211 |
++ * for more details. |
212 |
++ * |
213 |
++ * You should have received a copy of the GNU General Public License along |
214 |
++ * with the Control Center; if not, write to the Free Software Foundation, |
215 |
++ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
216 |
++ * |
217 |
++ * Author: Thomas Wood <thos@×××××.org> |
218 |
++ */ |
219 |
++ |
220 |
++#ifndef _CC_SHELL_H |
221 |
++#define _CC_SHELL_H |
222 |
++ |
223 |
++#include <gtk/gtk.h> |
224 |
++ |
225 |
++G_BEGIN_DECLS |
226 |
++ |
227 |
++#define CC_TYPE_SHELL cc_shell_get_type() |
228 |
++ |
229 |
++#define CC_SHELL(obj) \ |
230 |
++ (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ |
231 |
++ CC_TYPE_SHELL, CcShell)) |
232 |
++ |
233 |
++#define CC_SHELL_CLASS(klass) \ |
234 |
++ (G_TYPE_CHECK_CLASS_CAST ((klass), \ |
235 |
++ CC_TYPE_SHELL, CcShellClass)) |
236 |
++ |
237 |
++#define CC_IS_SHELL(obj) \ |
238 |
++ (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ |
239 |
++ CC_TYPE_SHELL)) |
240 |
++ |
241 |
++#define CC_IS_SHELL_CLASS(klass) \ |
242 |
++ (G_TYPE_CHECK_CLASS_TYPE ((klass), \ |
243 |
++ CC_TYPE_SHELL)) |
244 |
++ |
245 |
++#define CC_SHELL_GET_CLASS(obj) \ |
246 |
++ (G_TYPE_INSTANCE_GET_CLASS ((obj), \ |
247 |
++ CC_TYPE_SHELL, CcShellClass)) |
248 |
++ |
249 |
++ |
250 |
++#define CC_SHELL_PANEL_EXTENSION_POINT "control-center-1" |
251 |
++ |
252 |
++typedef struct _CcShell CcShell; |
253 |
++typedef struct _CcShellClass CcShellClass; |
254 |
++typedef struct _CcShellPrivate CcShellPrivate; |
255 |
++ |
256 |
++/* cc-panel.h requires CcShell, so make sure they are defined first */ |
257 |
++#include <cut-n-paste/cc-panel.h> |
258 |
++ |
259 |
++/** |
260 |
++ * CcShell: |
261 |
++ * |
262 |
++ * The contents of this struct are private should not be accessed directly. |
263 |
++ */ |
264 |
++struct _CcShell |
265 |
++{ |
266 |
++ /*< private >*/ |
267 |
++ GObject parent; |
268 |
++ |
269 |
++ CcShellPrivate *priv; |
270 |
++}; |
271 |
++ |
272 |
++/** |
273 |
++ * CcShellClass: |
274 |
++ * @set_active_panel_from_id: virtual function to set the active panel from an |
275 |
++ * id string |
276 |
++ * |
277 |
++ */ |
278 |
++struct _CcShellClass |
279 |
++{ |
280 |
++ /*< private >*/ |
281 |
++ GObjectClass parent_class; |
282 |
++ |
283 |
++ /*< public >*/ |
284 |
++ /* vfuncs */ |
285 |
++ gboolean (*set_active_panel_from_id) (CcShell *shell, |
286 |
++ const gchar *id, |
287 |
++ GError **error); |
288 |
++ GtkWidget * (*get_toplevel) (CcShell *shell); |
289 |
++}; |
290 |
++ |
291 |
++GType cc_shell_get_type (void) G_GNUC_CONST; |
292 |
++ |
293 |
++CcPanel* cc_shell_get_active_panel (CcShell *shell); |
294 |
++void cc_shell_set_active_panel (CcShell *shell, |
295 |
++ CcPanel *panel); |
296 |
++gboolean cc_shell_set_active_panel_from_id (CcShell *shell, |
297 |
++ const gchar *id, |
298 |
++ GError **error); |
299 |
++GtkWidget * cc_shell_get_toplevel (CcShell *shell); |
300 |
++ |
301 |
++G_END_DECLS |
302 |
++ |
303 |
++#endif /* _CC_SHELL_H */ |
304 |
+-- |
305 |
+cgit v0.9 |
306 |
|
307 |
diff --git a/net-wireless/gnome-bluetooth/gnome-bluetooth-3.0.1.ebuild b/net-wireless/gnome-bluetooth/gnome-bluetooth-3.1.3.ebuild |
308 |
similarity index 91% |
309 |
rename from net-wireless/gnome-bluetooth/gnome-bluetooth-3.0.1.ebuild |
310 |
rename to net-wireless/gnome-bluetooth/gnome-bluetooth-3.1.3.ebuild |
311 |
index 9f2351a..3e7f46f 100644 |
312 |
--- a/net-wireless/gnome-bluetooth/gnome-bluetooth-3.0.1.ebuild |
313 |
+++ b/net-wireless/gnome-bluetooth/gnome-bluetooth-3.1.3.ebuild |
314 |
@@ -2,12 +2,12 @@ |
315 |
# Distributed under the terms of the GNU General Public License v2 |
316 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnome-bluetooth/gnome-bluetooth-2.32.0.ebuild,v 1.4 2010/12/19 11:51:36 pacho Exp $ |
317 |
|
318 |
-EAPI="3" |
319 |
+EAPI="4" |
320 |
GCONF_DEBUG="yes" |
321 |
# libgnome-bluetooth-applet.la is needed by gnome-shell during compilation |
322 |
GNOME2_LA_PUNT="no" |
323 |
|
324 |
-inherit eutils gnome2 multilib |
325 |
+inherit autotools eutils gnome2 multilib |
326 |
if [[ ${PV} = 9999 ]]; then |
327 |
inherit gnome2-live |
328 |
fi |
329 |
@@ -28,12 +28,12 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.7:2 |
330 |
>=x11-libs/gtk+-2.91.3:3[introspection?] |
331 |
>=x11-libs/libnotify-0.7.0 |
332 |
>=dev-libs/dbus-glib-0.74 |
333 |
- >=gnome-base/gnome-control-center-2.91 |
334 |
|
335 |
introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
336 |
sendto? ( >=gnome-extra/nautilus-sendto-2.91 ) |
337 |
" |
338 |
RDEPEND="${COMMON_DEPEND} |
339 |
+ >=gnome-base/gnome-control-center-2.91 |
340 |
>=net-wireless/bluez-4.34 |
341 |
app-mobilephone/obexd |
342 |
sys-fs/udev" |
343 |
@@ -71,6 +71,11 @@ pkg_setup() { |
344 |
} |
345 |
|
346 |
src_prepare() { |
347 |
+ # Fix gnome-control-center-3.1.4 compatibility, will be in next release |
348 |
+ mkdir properties/cut-n-paste || die |
349 |
+ epatch "${FILESDIR}/${P}-cc-panel.patch" |
350 |
+ eautoreconf |
351 |
+ |
352 |
# Add missing files for intltool checks |
353 |
echo "sendto/bluetooth-sendto.desktop.in" >> po/POTFILES.in |
354 |
echo "wizard/bluetooth-wizard.desktop.in" >> po/POTFILES.in |
355 |
|
356 |
diff --git a/net-wireless/gnome-bluetooth/gnome-bluetooth-9999.ebuild b/net-wireless/gnome-bluetooth/gnome-bluetooth-9999.ebuild |
357 |
index 9e3e6c5..15d0b3d 100644 |
358 |
--- a/net-wireless/gnome-bluetooth/gnome-bluetooth-9999.ebuild |
359 |
+++ b/net-wireless/gnome-bluetooth/gnome-bluetooth-9999.ebuild |
360 |
@@ -2,7 +2,7 @@ |
361 |
# Distributed under the terms of the GNU General Public License v2 |
362 |
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnome-bluetooth/gnome-bluetooth-2.32.0.ebuild,v 1.4 2010/12/19 11:51:36 pacho Exp $ |
363 |
|
364 |
-EAPI="3" |
365 |
+EAPI="4" |
366 |
GCONF_DEBUG="yes" |
367 |
# libgnome-bluetooth-applet.la is needed by gnome-shell during compilation |
368 |
GNOME2_LA_PUNT="no" |
369 |
@@ -28,12 +28,12 @@ COMMON_DEPEND=">=dev-libs/glib-2.25.7:2 |
370 |
>=x11-libs/gtk+-2.91.3:3[introspection?] |
371 |
>=x11-libs/libnotify-0.7.0 |
372 |
>=dev-libs/dbus-glib-0.74 |
373 |
- >=gnome-base/gnome-control-center-2.91 |
374 |
|
375 |
introspection? ( >=dev-libs/gobject-introspection-0.9.5 ) |
376 |
sendto? ( >=gnome-extra/nautilus-sendto-2.91 ) |
377 |
" |
378 |
RDEPEND="${COMMON_DEPEND} |
379 |
+ >=gnome-base/gnome-control-center-2.91 |
380 |
>=net-wireless/bluez-4.34 |
381 |
app-mobilephone/obexd |
382 |
sys-fs/udev" |
383 |
@@ -70,6 +70,14 @@ pkg_setup() { |
384 |
enewgroup plugdev |
385 |
} |
386 |
|
387 |
+src_prepare() { |
388 |
+ # Add missing files for intltool checks |
389 |
+ echo "sendto/bluetooth-sendto.desktop.in" >> po/POTFILES.in |
390 |
+ echo "wizard/bluetooth-wizard.desktop.in" >> po/POTFILES.in |
391 |
+ |
392 |
+ gnome2_src_prepare |
393 |
+} |
394 |
+ |
395 |
src_install() { |
396 |
gnome2_src_install |