Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gnome-control-center/files/, gnome-base/gnome-control-center/
Date: Wed, 08 Mar 2017 12:11:49
Message-Id: 1488975068.bb44e2b116d7e9e72759664e28fbed14ceb17a68.leio@gentoo
1 commit: bb44e2b116d7e9e72759664e28fbed14ceb17a68
2 Author: Timo Tambet <ttambet <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 26 00:33:21 2017 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 8 12:11:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb44e2b1
7
8 gnome-base/gnome-control-center: bump to 3.23.91
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 gnome-base/gnome-control-center/Manifest | 1 +
13 ...gnome-control-center-3.23.91-gentoo-paths.patch | 107 ++++
14 ...nter-3.23.91-make-networkmanager-optional.patch | 69 +++
15 .../gnome-control-center-3.23.91-optional.patch | 556 +++++++++++++++++++++
16 .../gnome-control-center-3.23.91.ebuild | 158 ++++++
17 5 files changed, 891 insertions(+)
18
19 diff --git a/gnome-base/gnome-control-center/Manifest b/gnome-base/gnome-control-center/Manifest
20 index d517a636010..d898426541d 100644
21 --- a/gnome-base/gnome-control-center/Manifest
22 +++ b/gnome-base/gnome-control-center/Manifest
23 @@ -1,2 +1,3 @@
24 DIST gnome-control-center-3.20.2.tar.xz 7103716 SHA256 ae380d9cb7a2c6f7f336718606274cd87021cbbcdf828ec67b1a420a2605776e SHA512 d68bccf16e5e854db4cd8dbb7abb64c40ad1b7370a8c71ff5e8790ef6f2eeb19cd6b2d41f5506bb4b8d956f1d65f54afb26f5d2c4c87adde6561079f1477ff41 WHIRLPOOL ccb4a35211d2fa3adca34b2897a09687bfc854f5d89a512f80d43f46d822b15f586424983df5e746771e12df36115c5b9b7eee220582c4b7042d68e48c4ccf17
25 DIST gnome-control-center-3.22.1.tar.xz 7206136 SHA256 5d69295bc43176392d65b3bdbe60eb85cdcac95b1ef76b86933f3ba9cf48091a SHA512 7c1bc17844f1b9ef2ca2b94fb36c3a64cbe88561cc2388e5fa26405dff73f3033dea49bf1aab8a85ee9d9680a8816913a0339855a5b09a8033cdaef5ebbb5c63 WHIRLPOOL 5f4cc4a6c75956a5bf05000d76a0b040b4fd9d6e0b416eaa2e12522f2dcde3506501022432ca8436e3435782ee537e560a30642d330ab66175f4ea44100f287b
26 +DIST gnome-control-center-3.23.91.tar.xz 7300216 SHA256 d8e0cfcfa43223b429aa22c7bbc47475f4763c312407a2e8256db81714c946ac SHA512 b795536afafbf87d2ecdde028651018e2c8129a89cd91077dd0a4cbeb96c2608ff7f401a2dfdf68f7b7fff4a7dfe0b95f2ebb4c6e3039d434d14850c0a76a8a0 WHIRLPOOL 1da42a542f34f6d6df626b9b1762871db5bc2679bdc9fc350ea6171f30e153a95e3c077164769a0bda2bd912af50bc695ebb25f717c127d1827316c69414d52f
27
28 diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-gentoo-paths.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-gentoo-paths.patch
29 new file mode 100644
30 index 00000000000..8bd0169df46
31 --- /dev/null
32 +++ b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-gentoo-paths.patch
33 @@ -0,0 +1,107 @@
34 +From d646361528717fb0a9134394c62cc2d729b69d39 Mon Sep 17 00:00:00 2001
35 +From: Timo Tambet <ttambet@×××××.com>
36 +Date: Sun, 26 Feb 2017 01:04:05 +0200
37 +Subject: [PATCH 4/4] Fix some absolute paths to be appropriate for Gentoo
38 +
39 +Signed-off-by: Gilles Dartiguelongue <eva@g.o>
40 +Signed-off-by: Alexandre Rostovtsev <tetromino@g.o>
41 +[Updated for 3.23.90; printer panel /usr/share path went away with print testpage button]
42 +Signed-off-by: Timo Tambet <ttambet@×××××.com>
43 +---
44 + panels/datetime/Makefile.am | 1 +
45 + panels/datetime/test-endianess.c | 4 ++--
46 + panels/datetime/test-timezone.c | 2 +-
47 + panels/datetime/tz.h | 4 ++--
48 + panels/printers/Makefile.am | 3 +++
49 + panels/printers/pp-host.c | 2 +-
50 + 6 files changed, 10 insertions(+), 6 deletions(-)
51 +
52 +diff --git a/panels/datetime/Makefile.am b/panels/datetime/Makefile.am
53 +index a003f0bce..c43062e98 100644
54 +--- a/panels/datetime/Makefile.am
55 ++++ b/panels/datetime/Makefile.am
56 +@@ -23,6 +23,7 @@ AM_CPPFLAGS = \
57 + $(DATETIME_PANEL_CFLAGS) \
58 + -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
59 + -DGNOMECC_DATA_DIR="\"$(pkgdatadir)\"" \
60 ++ -DREALDATADIR="\"$(datadir)\"" \
61 + $(NULL)
62 +
63 + # test-timezone is still too noisy
64 +diff --git a/panels/datetime/test-endianess.c b/panels/datetime/test-endianess.c
65 +index 06b26131b..eb52bb637 100644
66 +--- a/panels/datetime/test-endianess.c
67 ++++ b/panels/datetime/test-endianess.c
68 +@@ -26,11 +26,11 @@ test_endianess (void)
69 + GDir *dir;
70 + const char *name;
71 +
72 +- dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL);
73 ++ dir = g_dir_open (REALDATADIR "/i18n/locales/", 0, NULL);
74 + if (dir == NULL) {
75 + /* Try with /usr/share/locale/
76 + * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */
77 +- dir = g_dir_open ("/usr/share/locale/", 0, NULL);
78 ++ dir = g_dir_open (REALDATADIR "/locale/", 0, NULL);
79 + if (dir == NULL) {
80 + g_assert_not_reached ();
81 + }
82 +diff --git a/panels/datetime/test-timezone.c b/panels/datetime/test-timezone.c
83 +index db5c0307e..7ef5cef37 100644
84 +--- a/panels/datetime/test-timezone.c
85 ++++ b/panels/datetime/test-timezone.c
86 +@@ -2,7 +2,7 @@
87 + #include <gtk/gtk.h>
88 + #include "cc-timezone-map.h"
89 +
90 +-#define TZ_DIR "/usr/share/zoneinfo/"
91 ++#define TZ_DIR REALDATADIR "/zoneinfo/"
92 +
93 + static GList *
94 + get_timezone_list (GList *tzs,
95 +diff --git a/panels/datetime/tz.h b/panels/datetime/tz.h
96 +index 93905b3ab..1ba918c74 100644
97 +--- a/panels/datetime/tz.h
98 ++++ b/panels/datetime/tz.h
99 +@@ -28,9 +28,9 @@
100 + #include <glib.h>
101 +
102 + #ifndef __sun
103 +-# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
104 ++# define TZ_DATA_FILE REALDATADIR "/zoneinfo/zone.tab"
105 + #else
106 +-# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab"
107 ++# define TZ_DATA_FILE REALDATADIR "/lib/zoneinfo/tab/zone_sun.tab"
108 + #endif
109 +
110 + typedef struct _TzDB TzDB;
111 +diff --git a/panels/printers/Makefile.am b/panels/printers/Makefile.am
112 +index 575cda38c..d5da0bf68 100644
113 +--- a/panels/printers/Makefile.am
114 ++++ b/panels/printers/Makefile.am
115 +@@ -9,6 +9,9 @@ AM_CPPFLAGS = \
116 + -I$(top_srcdir)/shell/ \
117 + -DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
118 + -DTEST_SRCDIR=\""$(srcdir)/"\" \
119 ++ -DREALDATADIR="\"$(datadir)\"" \
120 ++ -DPREFIX="\"$(prefix)\"" \
121 ++ -DLIBEXECDIR="\"$(libexecdir)\"" \
122 + $(NULL)
123 +
124 + noinst_LTLIBRARIES = libprinters.la
125 +diff --git a/panels/printers/pp-host.c b/panels/printers/pp-host.c
126 +index 8af77e9a9..bb6df7880 100644
127 +--- a/panels/printers/pp-host.c
128 ++++ b/panels/printers/pp-host.c
129 +@@ -267,7 +267,7 @@ _pp_host_get_snmp_devices_thread (GSimpleAsyncResult *res,
130 + data->devices->devices = NULL;
131 +
132 + argv = g_new0 (gchar *, 3);
133 +- argv[0] = g_strdup ("/usr/lib/cups/backend/snmp");
134 ++ argv[0] = g_strdup (LIBEXECDIR "/cups/backend/snmp");
135 + argv[1] = g_strdup (priv->hostname);
136 +
137 + /* Use SNMP to get printer's informations */
138 +--
139 +2.11.1
140 +
141
142 diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-make-networkmanager-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-make-networkmanager-optional.patch
143 new file mode 100644
144 index 00000000000..a871e4628cf
145 --- /dev/null
146 +++ b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-make-networkmanager-optional.patch
147 @@ -0,0 +1,69 @@
148 +From ef596aeb01aac8d85fd5861cff360b93cc16ef16 Mon Sep 17 00:00:00 2001
149 +From: Timo Tambet <ttambet@×××××.com>
150 +Date: Sun, 26 Feb 2017 00:37:06 +0200
151 +Subject: [PATCH 3/4] Make network panel optional
152 +
153 +Signed-off-by: Gilles Dartiguelongue <eva@g.o>
154 +[Updated for 3.23.90]
155 +Signed-off-by: Timo Tambet <ttambet@×××××.com>
156 +---
157 + configure.ac | 43 +++++++++++++++++++++++++------------------
158 + 1 file changed, 25 insertions(+), 18 deletions(-)
159 +
160 +diff --git a/configure.ac b/configure.ac
161 +index edbf657f4..248db379e 100644
162 +--- a/configure.ac
163 ++++ b/configure.ac
164 +@@ -275,24 +275,31 @@ linux_usb_error_or_warn()
165 + esac
166 + }
167 +
168 +-PKG_CHECK_MODULES(NETWORK_MANAGER,
169 +- libnm >= $NETWORK_MANAGER_REQUIRED_VERSION
170 +- libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION
171 +- mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION,
172 +- [have_networkmanager=yes], have_networkmanager=no)
173 +-if test "x$have_networkmanager" = xno ; then
174 +- linux_error_or_warn "*** Network panel will not be built (NetworkManager or ModemManager not found) ***"
175 +-else
176 +- AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel])
177 +-fi
178 +-AM_CONDITIONAL(BUILD_NETWORK, [test x$have_networkmanager = xyes])
179 +-if test x${have_networkmanager} = xyes; then
180 +- AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available])
181 +- NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN
182 +- NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager`
183 +- AC_SUBST(NM_VPN_CONFIG_DIR)
184 +- AC_SUBST(NM_VPN_MODULE_DIR)
185 +-fi
186 ++AC_ARG_ENABLE([networkmanager],
187 ++ AS_HELP_STRING([--disable-networkmanager], [Disable network panel]),
188 ++ [],
189 ++ [enable_networkmanager=auto])
190 ++AS_IF([test "$enable_networkmanager" != "no"],
191 ++ [
192 ++ PKG_CHECK_MODULES(NETWORK_MANAGER,
193 ++ libnm >= $NETWORK_MANAGER_REQUIRED_VERSION
194 ++ libnma >= $NETWORK_MANAGER_APPLET_REQUIRED_VERSION
195 ++ mm-glib >= $MODEM_MANAGER_REQUIRED_VERSION,
196 ++ [have_networkmanager=yes], [have_networkmanager=no])
197 ++
198 ++ AS_IF([test "$have_networkmanager" = "no"],
199 ++ [
200 ++ AC_MSG_WARN([*** Network panel will not be built (NetworkManager or ModemManager not found) ***])
201 ++ ], [
202 ++ AC_DEFINE(BUILD_NETWORK, 1, [Define to 1 to build the Network panel])
203 ++ AC_DEFINE(HAVE_NETWORK_MANAGER, 1, [Define to 1 if NetworkManager is available])
204 ++ NM_VPN_CONFIG_DIR=`$PKG_CONFIG --variable configdir NetworkManager`/VPN
205 ++ NM_VPN_MODULE_DIR=`$PKG_CONFIG --variable plugindir NetworkManager`
206 ++ AC_SUBST([NM_VPN_CONFIG_DIR])
207 ++ AC_SUBST([NM_VPN_MODULE_DIR])
208 ++ ])
209 ++ ])
210 ++AM_CONDITIONAL(BUILD_NETWORK, [test "$have_networkmanager" = "yes"])
211 +
212 + # Check for power panel
213 + if test x${have_networkmanager} = xyes; then
214 +--
215 +2.11.1
216 +
217
218 diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-optional.patch b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-optional.patch
219 new file mode 100644
220 index 00000000000..f4bd22245d9
221 --- /dev/null
222 +++ b/gnome-base/gnome-control-center/files/gnome-control-center-3.23.91-optional.patch
223 @@ -0,0 +1,556 @@
224 +From 5ad997775501a1172846bccdf56aad6c9c4bcb1f Mon Sep 17 00:00:00 2001
225 +From: Timo Tambet <ttambet@×××××.com>
226 +Date: Sat, 25 Feb 2017 23:29:10 +0200
227 +Subject: [PATCH 1/4] Make bluetooth/colord/goa/kerberos/wacom optional
228 +
229 +Upstream is not interested in any part of this patch:
230 +
231 +https://bugzilla.gnome.org/show_bug.cgi?id=686840
232 +https://bugzilla.gnome.org/show_bug.cgi?id=697478
233 +https://bugzilla.gnome.org/show_bug.cgi?id=700145
234 +
235 +Signed-off-by: Ole Reifschneider <tranquility@g.o>
236 +Signed-off-by: Gilles Dartiguelongue <eva@g.o>
237 +Signed-off-by: Alexandre Rostovtsev <tetromino@g.o>
238 +---
239 + configure.ac | 171 ++++++++++++++++++++++++--------
240 + panels/Makefile.am | 10 +-
241 + panels/background/Makefile.am | 8 +-
242 + panels/background/bg-pictures-source.c | 20 ++++
243 + panels/power/cc-power-panel.c | 2 +-
244 + panels/user-accounts/um-realm-manager.c | 9 ++
245 + shell/Makefile.am | 10 +-
246 + shell/cc-panel-loader.c | 8 ++
247 + 8 files changed, 188 insertions(+), 50 deletions(-)
248 +
249 +diff --git a/configure.ac b/configure.ac
250 +index 12a8adee6..022635d34 100644
251 +--- a/configure.ac
252 ++++ b/configure.ac
253 +@@ -120,10 +120,6 @@ LIBGD_INIT([_view-common static])
254 + PKG_CHECK_MODULES(LIBLANGUAGE, $COMMON_MODULES gnome-desktop-3.0 fontconfig)
255 + PKG_CHECK_MODULES(LIBSHORTCUTS, $COMMON_MODULES x11)
256 + PKG_CHECK_MODULES(SHELL, $COMMON_MODULES x11 polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
257 +-PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0
258 +- gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
259 +- goa-1.0 >= $GOA_REQUIRED_VERSION
260 +- grilo-0.3 >= $GRILO_REQUIRED_VERSION)
261 + PKG_CHECK_MODULES(DATETIME_PANEL, $COMMON_MODULES
262 + gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
263 + polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
264 +@@ -141,12 +137,58 @@ PKG_CHECK_MODULES(MOUSE_PANEL, $COMMON_MODULES xi >= 1.2
265 + PKG_CHECK_MODULES(NETWORK_PANEL, $COMMON_MODULES gmodule-2.0
266 + polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION)
267 + PKG_CHECK_MODULES(NOTIFICATIONS_PANEL, $COMMON_MODULES)
268 +-PKG_CHECK_MODULES(ONLINE_ACCOUNTS_PANEL, $COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION)
269 +-PKG_CHECK_MODULES(COLOR_PANEL, $COMMON_MODULES
270 +- colord >= $COLORD_REQUIRED_VERSION
271 +- colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
272 +- libsoup-2.4
273 +- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION)
274 ++
275 ++build_online_accounts=no
276 ++background_online_accounts=
277 ++AC_ARG_ENABLE([goa],
278 ++ AS_HELP_STRING([--disable-goa],
279 ++ [disable online accounts management panel]),
280 ++ [],
281 ++ [enable_goa=auto])
282 ++
283 ++AS_IF([test "$enable_goa" != "no"],
284 ++ [PKG_CHECK_MODULES([ONLINE_ACCOUNTS_PANEL],
285 ++ [$COMMON_MODULES goa-1.0 goa-backend-1.0 >= $GOA_REQUIRED_VERSION],
286 ++ [
287 ++ AC_DEFINE(BUILD_ONLINE_ACCOUNTS, 1, [Define to 1 to build the Online Accounts panel])
288 ++ build_online_accounts=yes
289 ++ background_goa_dependencies="goa-1.0 >= $GOA_REQUIRED_VERSION grilo-0.3 >= $GRILO_REQUIRED_VERSION"
290 ++ ], [
291 ++ AS_IF([test "$enable_goa" = "yes"],
292 ++ [AC_MSG_ERROR([gnome-online-accounts support requested but not found])])
293 ++ ])
294 ++ ])
295 ++AM_CONDITIONAL(BUILD_ONLINE_ACCOUNTS, test "$build_online_accounts" = "yes")
296 ++
297 ++PKG_CHECK_MODULES(BACKGROUND_PANEL, $COMMON_MODULES cairo-gobject libxml-2.0 gnome-desktop-3.0
298 ++ gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
299 ++ $background_goa_dependencies)
300 ++
301 ++build_color=no
302 ++AC_ARG_ENABLE([color],
303 ++ AS_HELP_STRING([--disable-color],
304 ++ [disable color management panel]),
305 ++ [],
306 ++ [enable_color=auto])
307 ++
308 ++AS_IF([test "$enable_color" != "no"],
309 ++ [PKG_CHECK_MODULES([COLOR_PANEL],
310 ++ [
311 ++ $COMMON_MODULES
312 ++ colord >= $COLORD_REQUIRED_VERSION
313 ++ colord-gtk >= $COLORD_GTK_REQUIRED_VERSION
314 ++ libsoup-2.4
315 ++ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
316 ++ ], [
317 ++ AC_DEFINE(BUILD_COLOR, 1, [Define to 1 to build the Color panel])
318 ++ build_color=yes
319 ++ ], [
320 ++ AS_IF([test "$enable_color" = "yes"],
321 ++ [AC_MSG_ERROR([colord support requested but not found])])
322 ++ ])
323 ++ ])
324 ++AM_CONDITIONAL(BUILD_COLOR, test "$build_color" = "yes")
325 ++
326 + PKG_CHECK_MODULES(PRINTERS_PANEL, $COMMON_MODULES
327 + polkit-gobject-1 >= $POLKIT_REQUIRED_VERSION
328 + smbclient)
329 +@@ -254,17 +296,27 @@ else
330 + fi
331 +
332 + # Check for gnome-bluetooth
333 +-PKG_CHECK_MODULES(BLUETOOTH, $COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2,
334 +- [have_bluetooth=yes], have_bluetooth=no)
335 +-if test "x$have_bluetooth" = xyes ; then
336 +- AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel])
337 +-else
338 +- linux_usb_error_or_warn "*** Bluetooth panel will not be built"
339 +-fi
340 +-AM_CONDITIONAL(BUILD_BLUETOOTH, [test x$have_bluetooth = xyes])
341 +-if test x${have_bluetooth} = xyes; then
342 +- AC_DEFINE(HAVE_BLUETOOTH, 1, [Define to 1 if bluetooth support is available])
343 +-fi
344 ++have_bluetooth=no
345 ++AC_ARG_ENABLE([bluetooth],
346 ++ AS_HELP_STRING([--disable-bluetooth],
347 ++ [disable bluetooth management panel]),
348 ++ [],
349 ++ [enable_bluetooth=auto])
350 ++
351 ++AS_IF([test "$enable_bluetooth" = "yes"],
352 ++ [PKG_CHECK_MODULES([BLUETOOTH],
353 ++ [$COMMON_MODULES gnome-bluetooth-1.0 >= 3.18.2],
354 ++ [
355 ++ AC_DEFINE(BUILD_BLUETOOTH, 1, [Define to 1 to build the Bluetooth panel])
356 ++ have_bluetooth=yes
357 ++ ],
358 ++ [
359 ++ have_bluetooth=no
360 ++ AS_IF([test "$enable_bluetooth" = "yes"],
361 ++ [AC_MSG_ERROR([bluetooth support requested but not found])])
362 ++ ])
363 ++ ])
364 ++AM_CONDITIONAL(BUILD_BLUETOOTH, [test "$have_bluetooth" = "yes"])
365 +
366 + # Check for CUPS 1.4 or newer
367 + AC_PROG_SED
368 +@@ -319,32 +371,52 @@ fi
369 + AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
370 +
371 + # Wacom
372 +-PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
373 +- gnome-settings-daemon >= $GSD_REQUIRED_VERSION
374 +- xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
375 +- gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
376 +- clutter-gtk-1.0
377 +- clutter-1.0 >= $CLUTTER_REQUIRED_VERSION,
378 +- [have_wacom=yes], [have_wacom=no])
379 ++AC_ARG_ENABLE([wacom],
380 ++ AS_HELP_STRING([--disable-wacom],
381 ++ [disable wacom management panel]),
382 ++ [],
383 ++ [enable_wacom=yes])
384 ++AS_IF([test "x$enable_wacom" = "xyes"],
385 ++ [PKG_CHECK_MODULES([WACOM_PANEL],
386 ++ [
387 ++ $COMMON_MODULES
388 ++ gnome-settings-daemon >= $GSD_REQUIRED_VERSION
389 ++ xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
390 ++ gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED_VERSION
391 ++ clutter-gtk-1.0
392 ++ clutter-1.0 >= $CLUTTER_REQUIRED_VERSION
393 ++ ], [
394 ++ have_wacom=yes
395 ++ AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
396 ++ AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
397 ++ ], [
398 ++ have_wacom=no
399 ++ AC_MSG_ERROR([wacom support requested but not found])
400 ++ ])
401 ++ ])
402 +
403 +-if test "x$have_wacom" = xyes ; then
404 +- AC_DEFINE(BUILD_WACOM, 1, [Define to 1 to build the Wacom panel])
405 +- AC_DEFINE(HAVE_WACOM, 1, [Define to 1 is Wacom is supportted])
406 +-else
407 +- linux_usb_error_or_warn "*** Wacom panel will not be built"
408 +-fi
409 + AM_CONDITIONAL(BUILD_WACOM, [test x${have_wacom} = xyes])
410 +
411 + # Kerberos kerberos support
412 +-AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
413 +-if test "$KRB5_CONFIG" = "no"; then
414 +- AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries])
415 +-fi
416 +-
417 +-AC_MSG_CHECKING(for krb5 libraries and flags)
418 +-KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
419 +-KRB5_LIBS="`$KRB5_CONFIG --libs`"
420 +-AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
421 ++AC_ARG_ENABLE([kerberos],
422 ++ AS_HELP_STRING([--disable-kerberos],
423 ++ [disable kerberos support (default: enabled)]),
424 ++ [],
425 ++ [enable_kerberos=yes])
426 ++
427 ++AS_IF([test "$enable_kerberos" != "no"],
428 ++ [
429 ++ AC_PATH_PROG(KRB5_CONFIG, krb5-config, no)
430 ++
431 ++ AS_IF([test "$KRB5_CONFIG" = "no"],
432 ++ AC_MSG_ERROR([krb5-config executable not found in your path - should be installed with the kerberos libraries]))
433 ++
434 ++ AC_MSG_CHECKING([for krb5 libraries and flags])
435 ++ KRB5_CFLAGS="`$KRB5_CONFIG --cflags`"
436 ++ KRB5_LIBS="`$KRB5_CONFIG --libs`"
437 ++ AC_MSG_RESULT($KRB5_CFLAGS $KRB5_LIBS)
438 ++ AC_DEFINE(HAVE_KERBEROS, 1, [defined if krb5 is available])
439 ++ ])
440 +
441 + AC_SUBST(KRB5_CFLAGS)
442 + AC_SUBST(KRB5_LIBS)
443 +@@ -576,11 +648,24 @@ if test "x$have_bluetooth" = "xyes"; then
444 + else
445 + AC_MSG_NOTICE([ Bluetooth panel disabled])
446 + fi
447 ++
448 ++if test "x$build_color" = "xyes"; then
449 ++ AC_MSG_NOTICE([** colord (Color panel)])
450 ++else
451 ++ AC_MSG_NOTICE([ Color panel disabled])
452 ++fi
453 ++
454 ++
455 + if test "x$have_cheese" = "xyes"; then
456 + AC_MSG_NOTICE([** Cheese (Users panel webcam support)])
457 + else
458 + AC_MSG_NOTICE([ Users panel webcam support disabled])
459 + fi
460 ++if test "x$build_online_accounts" = "xyes"; then
461 ++ AC_MSG_NOTICE([** gnome-online-accounts (Online Accounts panel)])
462 ++else
463 ++ AC_MSG_NOTICE([ Online Accounts panel disabled])
464 ++fi
465 + if test "x$have_wacom" = "xyes"; then
466 + AC_MSG_NOTICE([** wacom (Wacom tablet panel)])
467 + else
468 +diff --git a/panels/Makefile.am b/panels/Makefile.am
469 +index 507cd2f54..2806c4555 100644
470 +--- a/panels/Makefile.am
471 ++++ b/panels/Makefile.am
472 +@@ -2,11 +2,9 @@ SUBDIRS= \
473 + common \
474 + background \
475 + power \
476 +- color \
477 + display \
478 + mouse \
479 + notifications \
480 +- online-accounts \
481 + region \
482 + info \
483 + sound \
484 +@@ -19,6 +17,10 @@ SUBDIRS= \
485 + sharing \
486 + printers
487 +
488 ++if BUILD_COLOR
489 ++SUBDIRS += color
490 ++endif
491 ++
492 + if BUILD_WACOM
493 + SUBDIRS += wacom
494 + endif
495 +@@ -31,4 +33,8 @@ if BUILD_BLUETOOTH
496 + SUBDIRS += bluetooth
497 + endif
498 +
499 ++if BUILD_ONLINE_ACCOUNTS
500 ++SUBDIRS += online-accounts
501 ++endif
502 ++
503 + -include $(top_srcdir)/git.mk
504 +diff --git a/panels/background/Makefile.am b/panels/background/Makefile.am
505 +index ccb80172f..bde4cdf43 100644
506 +--- a/panels/background/Makefile.am
507 ++++ b/panels/background/Makefile.am
508 +@@ -27,8 +27,6 @@ libbackground_chooser_la_SOURCES = \
509 + $(BUILT_SOURCES) \
510 + cc-background-chooser-dialog.c \
511 + cc-background-chooser-dialog.h \
512 +- cc-background-grilo-miner.c \
513 +- cc-background-grilo-miner.h \
514 + cc-background-item.c \
515 + cc-background-item.h \
516 + cc-background-xml.c \
517 +@@ -42,6 +40,12 @@ libbackground_chooser_la_SOURCES = \
518 + bg-colors-source.c \
519 + bg-colors-source.h
520 +
521 ++if BUILD_ONLINE_ACCOUNTS
522 ++libbackground_chooser_la_SOURCES += \
523 ++ cc-background-grilo-miner.c \
524 ++ cc-background-grilo-miner.h
525 ++endif
526 ++
527 + libbackground_chooser_la_LIBADD = $(PANEL_LIBS) $(BACKGROUND_PANEL_LIBS)
528 +
529 + libbackground_la_SOURCES = \
530 +diff --git a/panels/background/bg-pictures-source.c b/panels/background/bg-pictures-source.c
531 +index a33cee7f3..408359cba 100644
532 +--- a/panels/background/bg-pictures-source.c
533 ++++ b/panels/background/bg-pictures-source.c
534 +@@ -23,13 +23,17 @@
535 +
536 + #include "bg-pictures-source.h"
537 +
538 ++#ifdef BUILD_ONLINE_ACCOUNTS
539 + #include "cc-background-grilo-miner.h"
540 ++#endif
541 + #include "cc-background-item.h"
542 +
543 + #include <string.h>
544 + #include <cairo-gobject.h>
545 + #include <gio/gio.h>
546 ++#ifdef BUILD_ONLINE_ACCOUNTS
547 + #include <grilo.h>
548 ++#endif
549 + #include <libgnome-desktop/gnome-desktop-thumbnail.h>
550 + #include <gdesktop-enums.h>
551 +
552 +@@ -46,7 +50,9 @@ struct _BgPicturesSourcePrivate
553 + {
554 + GCancellable *cancellable;
555 +
556 ++#ifdef BUILD_ONLINE_ACCOUNTS
557 + CcBackgroundGriloMiner *grl_miner;
558 ++#endif
559 +
560 + GnomeDesktopThumbnailFactory *thumb_factory;
561 +
562 +@@ -84,7 +90,9 @@ bg_pictures_source_dispose (GObject *object)
563 + g_clear_object (&priv->cancellable);
564 + }
565 +
566 ++#ifdef BUILD_ONLINE_ACCOUNTS
567 + g_clear_object (&priv->grl_miner);
568 ++#endif
569 + g_clear_object (&priv->thumb_factory);
570 +
571 + G_OBJECT_CLASS (bg_pictures_source_parent_class)->dispose (object);
572 +@@ -414,7 +422,11 @@ add_single_file (BgPicturesSource *bg_source,
573 + gboolean needs_download;
574 + gboolean retval = FALSE;
575 + GFile *pictures_dir, *cache_dir;
576 ++#ifdef BUILD_ONLINE_ACCOUNTS
577 + GrlMedia *media;
578 ++#else
579 ++ gpointer media = NULL;
580 ++#endif
581 +
582 + /* find png and jpeg files */
583 + if (!content_type)
584 +@@ -473,7 +485,9 @@ add_single_file (BgPicturesSource *bg_source,
585 +
586 + read_file:
587 +
588 ++#ifdef BUILD_ONLINE_ACCOUNTS
589 + media = g_object_get_data (G_OBJECT (file), "grl-media");
590 ++#endif
591 + if (media == NULL)
592 + {
593 + g_object_set_data_full (G_OBJECT (file), "item", g_object_ref (item), g_object_unref);
594 +@@ -556,6 +570,7 @@ add_single_file_from_info (BgPicturesSource *bg_source,
595 + return add_single_file (bg_source, file, content_type, mtime, ret_row_ref);
596 + }
597 +
598 ++#ifdef BUILD_ONLINE_ACCOUNTS
599 + static gboolean
600 + add_single_file_from_media (BgPicturesSource *bg_source,
601 + GFile *file,
602 +@@ -580,6 +595,7 @@ add_single_file_from_media (BgPicturesSource *bg_source,
603 +
604 + return add_single_file (bg_source, file, content_type, (guint64) mtime_unix, NULL);
605 + }
606 ++#endif /* BUILD_ONLINE_ACCOUNTS */
607 +
608 + gboolean
609 + bg_pictures_source_add (BgPicturesSource *bg_source,
610 +@@ -923,6 +939,7 @@ monitor_path (BgPicturesSource *self,
611 + return monitor;
612 + }
613 +
614 ++#ifdef BUILD_ONLINE_ACCOUNTS
615 + static void
616 + media_found_cb (BgPicturesSource *self, GrlMedia *media)
617 + {
618 +@@ -934,6 +951,7 @@ media_found_cb (BgPicturesSource *self, GrlMedia *media)
619 + g_object_set_data_full (G_OBJECT (file), "grl-media", g_object_ref (media), g_object_unref);
620 + add_single_file_from_media (self, file, media);
621 + }
622 ++#endif /* BUILD_ONLINE_ACCOUNTS */
623 +
624 + static void
625 + bg_pictures_source_init (BgPicturesSource *self)
626 +@@ -961,9 +979,11 @@ bg_pictures_source_init (BgPicturesSource *self)
627 + priv->cache_dir_monitor = monitor_path (self, cache_path);
628 + g_free (cache_path);
629 +
630 ++#ifdef BUILD_ONLINE_ACCOUNTS
631 + priv->grl_miner = cc_background_grilo_miner_new ();
632 + g_signal_connect_swapped (priv->grl_miner, "media-found", G_CALLBACK (media_found_cb), self);
633 + cc_background_grilo_miner_start (priv->grl_miner);
634 ++#endif /* BUILD_ONLINE_ACCOUNTS */
635 +
636 + priv->thumb_factory =
637 + gnome_desktop_thumbnail_factory_new (GNOME_DESKTOP_THUMBNAIL_SIZE_LARGE);
638 +diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
639 +index db4e69a26..7677b58c4 100644
640 +--- a/panels/power/cc-power-panel.c
641 ++++ b/panels/power/cc-power-panel.c
642 +@@ -1882,7 +1882,7 @@ add_power_saving_section (CcPowerPanel *self)
643 + G_CALLBACK (wifi_switch_changed), self);
644 + #endif
645 +
646 +-#ifdef HAVE_BLUETOOTH
647 ++#ifdef BUILD_BLUETOOTH
648 + priv->bt_rfkill = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
649 + G_DBUS_PROXY_FLAGS_NONE,
650 + NULL,
651 +diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
652 +index 26391486f..977dab1d6 100644
653 +--- a/panels/user-accounts/um-realm-manager.c
654 ++++ b/panels/user-accounts/um-realm-manager.c
655 +@@ -22,7 +22,9 @@
656 +
657 + #include "um-realm-manager.h"
658 +
659 ++#ifdef HAVE_KERBEROS
660 + #include <krb5/krb5.h>
661 ++#endif
662 +
663 + #include <glib.h>
664 + #include <glib/gi18n.h>
665 +@@ -698,6 +700,7 @@ login_closure_free (gpointer data)
666 + g_slice_free (LoginClosure, login);
667 + }
668 +
669 ++#ifdef HAVE_KERBEROS
670 + static krb5_error_code
671 + login_perform_kinit (krb5_context k5,
672 + const gchar *realm,
673 +@@ -761,12 +764,14 @@ login_perform_kinit (krb5_context k5,
674 +
675 + return code;
676 + }
677 ++#endif /* HAVE_KERBEROS */
678 +
679 + static void
680 + kinit_thread_func (GSimpleAsyncResult *async,
681 + GObject *object,
682 + GCancellable *cancellable)
683 + {
684 ++#ifdef HAVE_KERBEROS
685 + LoginClosure *login = g_simple_async_result_get_op_res_gpointer (async);
686 + krb5_context k5 = NULL;
687 + krb5_error_code code;
688 +@@ -844,6 +849,10 @@ kinit_thread_func (GSimpleAsyncResult *async,
689 +
690 + if (k5)
691 + krb5_free_context (k5);
692 ++#else /* HAVE_KERBEROS */
693 ++ g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC,
694 ++ _("gnome-control-center was built without kerberos support"));
695 ++#endif
696 + }
697 +
698 + void
699 +diff --git a/shell/Makefile.am b/shell/Makefile.am
700 +index 6af3199d8..f3e49c7d9 100644
701 +--- a/shell/Makefile.am
702 ++++ b/shell/Makefile.am
703 +@@ -78,14 +78,12 @@ gnome_control_center_LDADD = \
704 + $(top_builddir)/panels/common/liblanguage.la \
705 + $(top_builddir)/panels/common/libdevice.la \
706 + $(top_builddir)/panels/background/libbackground.la \
707 +- $(top_builddir)/panels/color/libcolor.la \
708 + $(top_builddir)/panels/datetime/libdate_time.la \
709 + $(top_builddir)/panels/display/libdisplay.la \
710 + $(top_builddir)/panels/info/libinfo.la \
711 + $(top_builddir)/panels/keyboard/libkeyboard.la \
712 + $(top_builddir)/panels/mouse/libmouse-properties.la \
713 + $(top_builddir)/panels/notifications/libnotifications.la \
714 +- $(top_builddir)/panels/online-accounts/libonline-accounts.la \
715 + $(top_builddir)/panels/power/libpower.la \
716 + $(top_builddir)/panels/privacy/libprivacy.la \
717 + $(top_builddir)/panels/region/libregion.la \
718 +@@ -108,6 +106,14 @@ if BUILD_BLUETOOTH
719 + gnome_control_center_LDADD += $(top_builddir)/panels/bluetooth/libbluetooth.la
720 + endif
721 +
722 ++if BUILD_COLOR
723 ++gnome_control_center_LDADD += $(top_builddir)/panels/color/libcolor.la
724 ++endif
725 ++
726 ++if BUILD_ONLINE_ACCOUNTS
727 ++gnome_control_center_LDADD += $(top_builddir)/panels/online-accounts/libonline-accounts.la
728 ++endif
729 ++
730 + gnome_control_center_alt_LDADD = \
731 + $(gnome_control_center_LDADD) \
732 + alt/libshell_alt.la
733 +diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
734 +index 20ebb85d5..9104b45ba 100644
735 +--- a/shell/cc-panel-loader.c
736 ++++ b/shell/cc-panel-loader.c
737 +@@ -33,7 +33,9 @@ extern GType cc_background_panel_get_type (void);
738 + #ifdef BUILD_BLUETOOTH
739 + extern GType cc_bluetooth_panel_get_type (void);
740 + #endif /* BUILD_BLUETOOTH */
741 ++#ifdef BUILD_COLOR
742 + extern GType cc_color_panel_get_type (void);
743 ++#endif /* BUILD_COLOR */
744 + extern GType cc_date_time_panel_get_type (void);
745 + extern GType cc_display_panel_get_type (void);
746 + extern GType cc_info_panel_get_type (void);
747 +@@ -43,7 +45,9 @@ extern GType cc_mouse_panel_get_type (void);
748 + extern GType cc_network_panel_get_type (void);
749 + #endif /* BUILD_NETWORK */
750 + extern GType cc_notifications_panel_get_type (void);
751 ++#ifdef BUILD_ONLINE_ACCOUNTS
752 + extern GType cc_goa_panel_get_type (void);
753 ++#endif /* BUILD_ONLINE_ACCOUNTS */
754 + extern GType cc_power_panel_get_type (void);
755 + extern GType cc_printers_panel_get_type (void);
756 + extern GType cc_privacy_panel_get_type (void);
757 +@@ -75,7 +79,9 @@ static struct {
758 + #ifdef BUILD_BLUETOOTH
759 + PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type ),
760 + #endif
761 ++#ifdef BUILD_COLOR
762 + PANEL_TYPE("color", cc_color_panel_get_type ),
763 ++#endif
764 + PANEL_TYPE("datetime", cc_date_time_panel_get_type ),
765 + PANEL_TYPE("display", cc_display_panel_get_type ),
766 + PANEL_TYPE("info", cc_info_panel_get_type ),
767 +@@ -85,7 +91,9 @@ static struct {
768 + PANEL_TYPE("network", cc_network_panel_get_type ),
769 + #endif
770 + PANEL_TYPE("notifications", cc_notifications_panel_get_type),
771 ++#ifdef BUILD_ONLINE_ACCOUNTS
772 + PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
773 ++#endif
774 + PANEL_TYPE("power", cc_power_panel_get_type ),
775 + PANEL_TYPE("printers", cc_printers_panel_get_type ),
776 + PANEL_TYPE("privacy", cc_privacy_panel_get_type ),
777 +--
778 +2.11.1
779 +
780
781 diff --git a/gnome-base/gnome-control-center/gnome-control-center-3.23.91.ebuild b/gnome-base/gnome-control-center/gnome-control-center-3.23.91.ebuild
782 new file mode 100644
783 index 00000000000..c7cd92d87db
784 --- /dev/null
785 +++ b/gnome-base/gnome-control-center/gnome-control-center-3.23.91.ebuild
786 @@ -0,0 +1,158 @@
787 +# Copyright 1999-2017 Gentoo Foundation
788 +# Distributed under the terms of the GNU General Public License v2
789 +
790 +EAPI=6
791 +GNOME2_LA_PUNT="yes"
792 +
793 +inherit autotools bash-completion-r1 gnome2
794 +
795 +DESCRIPTION="GNOME's main interface to configure various aspects of the desktop"
796 +HOMEPAGE="https://git.gnome.org/browse/gnome-control-center/"
797 +
798 +LICENSE="GPL-2+"
799 +SLOT="2"
800 +IUSE="+bluetooth +colord debug +gnome-online-accounts +i18n input_devices_wacom kerberos networkmanager v4l wayland"
801 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-solaris"
802 +
803 +# False positives caused by nested configure scripts
804 +QA_CONFIGURE_OPTIONS=".*"
805 +
806 +# gnome-session-2.91.6-r1 is needed so that 10-user-dirs-update is run at login
807 +# g-s-d[policykit] needed for bug #403527
808 +# kerberos unfortunately means mit-krb5; build fails with heimdal
809 +# udev could be made optional, only conditions gsd-device-panel
810 +# (mouse, keyboards, touchscreen, etc)
811 +# display panel requires colord
812 +# printer panel is not optional and not yet patched
813 +COMMON_DEPEND="
814 + >=dev-libs/glib-2.44.0:2[dbus]
815 + >=x11-libs/gdk-pixbuf-2.23.0:2
816 + >=x11-libs/gtk+-3.22.0:3[X,wayland?]
817 + >=gnome-base/gsettings-desktop-schemas-3.21.4
818 + >=gnome-base/gnome-desktop-3.21.2:3=
819 + >=gnome-base/gnome-settings-daemon-3.19.1[colord?,policykit]
820 + >=x11-misc/colord-0.1.34:0=
821 +
822 + >=dev-libs/libpwquality-1.2.2
823 + dev-libs/libxml2:2
824 + gnome-base/libgtop:2=
825 + media-libs/fontconfig
826 + >=sys-apps/accountsservice-0.6.39
827 +
828 + >=media-libs/libcanberra-0.13[gtk3]
829 + >=media-sound/pulseaudio-2[glib]
830 + >=sys-auth/polkit-0.97
831 + >=sys-power/upower-0.99:=
832 +
833 + virtual/libgudev
834 + x11-apps/xmodmap
835 + x11-libs/cairo
836 + x11-libs/libX11
837 + x11-libs/libXxf86misc
838 + >=x11-libs/libXi-1.2
839 +
840 + bluetooth? ( >=net-wireless/gnome-bluetooth-3.18.2:= )
841 + colord? (
842 + net-libs/libsoup:2.4
843 + >=x11-misc/colord-0.1.34:0=
844 + >=x11-libs/colord-gtk-0.1.24 )
845 +
846 + >=net-print/cups-1.4[dbus]
847 + >=net-fs/samba-4.0.0[client]
848 +
849 + gnome-online-accounts? (
850 + >=media-libs/grilo-0.3.0:0.3=
851 + >=net-libs/gnome-online-accounts-3.21.5:= )
852 + i18n? ( >=app-i18n/ibus-1.5.2 )
853 + kerberos? ( app-crypt/mit-krb5 )
854 + networkmanager? (
855 + >=gnome-extra/nm-applet-1.2.0
856 + >=net-misc/networkmanager-1.2.0:=[modemmanager]
857 + >=net-misc/modemmanager-0.7.990 )
858 + v4l? (
859 + media-libs/clutter-gtk:1.0
860 + >=media-video/cheese-3.5.91 )
861 + input_devices_wacom? (
862 + >=dev-libs/libwacom-0.7
863 + >=media-libs/clutter-1.11.3:1.0
864 + media-libs/clutter-gtk:1.0
865 + >=x11-libs/libXi-1.2 )
866 +"
867 +# <gnome-color-manager-3.1.2 has file collisions with g-c-c-3.1.x
868 +# libgnomekbd needed only for gkbd-keyboard-display tool
869 +#
870 +# mouse panel needs a concrete set of X11 drivers at runtime, bug #580474
871 +# Also we need newer driver versions to allow wacom and libinput drivers to
872 +# not collide
873 +RDEPEND="${COMMON_DEPEND}
874 + || ( >=sys-apps/systemd-31 ( app-admin/openrc-settingsd sys-auth/consolekit ) )
875 + x11-themes/adwaita-icon-theme
876 + colord? ( >=gnome-extra/gnome-color-manager-3 )
877 + input_devices_wacom? ( gnome-base/gnome-settings-daemon[input_devices_wacom] )
878 + i18n? ( >=gnome-base/libgnomekbd-3 )
879 + wayland? ( dev-libs/libinput )
880 + !wayland? (
881 + >=x11-drivers/xf86-input-libinput-0.19.0
882 + input_devices_wacom? ( >=x11-drivers/xf86-input-wacom-0.33.0 ) )
883 +
884 + !<gnome-base/gdm-2.91.94
885 + !<gnome-extra/gnome-color-manager-3.1.2
886 + !gnome-extra/gnome-media[pulseaudio]
887 + !<gnome-extra/gnome-media-2.32.0-r300
888 + !<net-wireless/gnome-bluetooth-3.3.2
889 +"
890 +# PDEPEND to avoid circular dependency
891 +PDEPEND=">=gnome-base/gnome-session-2.91.6-r1"
892 +
893 +DEPEND="${COMMON_DEPEND}
894 + x11-proto/xproto
895 + x11-proto/xf86miscproto
896 + x11-proto/kbproto
897 +
898 + dev-libs/libxml2:2
899 + dev-libs/libxslt
900 + >=dev-util/intltool-0.40.1
901 + >=sys-devel/gettext-0.17
902 + virtual/pkgconfig
903 +
904 + gnome-base/gnome-common
905 + sys-devel/autoconf-archive
906 +"
907 +# Needed for autoreconf
908 +# gnome-base/gnome-common
909 +# sys-devel/autoconf-archive
910 +
911 +src_prepare() {
912 + # Make some panels and dependencies optional; requires eautoreconf
913 + # https://bugzilla.gnome.org/686840, 697478, 700145
914 + eapply "${FILESDIR}"/${P}-optional.patch
915 + eapply "${FILESDIR}"/${PN}-3.22.0-make-wayland-optional.patch
916 + eapply "${FILESDIR}"/${P}-make-networkmanager-optional.patch
917 +
918 + # Fix some absolute paths to be appropriate for Gentoo
919 + eapply "${FILESDIR}"/${P}-gentoo-paths.patch
920 +
921 + eautoreconf
922 + gnome2_src_prepare
923 +}
924 +
925 +src_configure() {
926 + gnome2_src_configure \
927 + --disable-update-mimedb \
928 + --disable-static \
929 + --enable-documentation \
930 + $(use_enable bluetooth) \
931 + $(use_enable colord color) \
932 + $(usex debug --enable-debug=yes ' ') \
933 + $(use_enable gnome-online-accounts goa) \
934 + $(use_enable i18n ibus) \
935 + $(use_enable kerberos) \
936 + $(use_enable networkmanager) \
937 + $(use_with v4l cheese) \
938 + $(use_enable input_devices_wacom wacom) \
939 + $(use_enable wayland)
940 +}
941 +
942 +src_install() {
943 + gnome2_src_install completiondir="$(get_bashcompdir)"
944 +}