tetromino    14/05/06 03:08:29

  Added:                cinnamon-settings-daemon-2.2.2-optional.patch
  Log:
  New package, used by cinnamon-2.x
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
CF0ADD61)

Revision  Changes    Path
1.1                  
gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-2.2.2-optional.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-2.2.2-optional.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-2.2.2-optional.patch?rev=1.1&content-type=text/plain

Index: cinnamon-settings-daemon-2.2.2-optional.patch
===================================================================
>From 2f53841e23559581ff69a7549094ab8da5fab5c9 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <[email protected]>
Date: Mon, 5 May 2014 21:50:25 -0400
Subject: [PATCH] Make colord and wacom support optional and non-automagic

---
 configure.ac        | 19 ++++++++++++++++---
 plugins/Makefile.am |  7 ++++++-
 2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 22db541..10c18a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -253,15 +253,28 @@ fi
 dnl ---------------------------------------------------------------------------
 dnl - color
 dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE(color,
+              AS_HELP_STRING([--disable-color], [disable Colord support 
(default: enabled)]),,
+              enable_colord=yes)
+build_color=false
+if test x"$enable_cups" != x"no" ; then
+  PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 cinnamon-desktop >= 
$CINNAMON_DESKTOP_REQUIRED_VERSION libcanberra-gtk3])
+  build_color=true
+fi
 
-PKG_CHECK_MODULES(COLOR, [colord >= 0.1.9 cinnamon-desktop >= 
$CINNAMON_DESKTOP_REQUIRED_VERSION libcanberra-gtk3])
+AM_CONDITIONAL(BUILD_COLOR, [test "x$build_color" = "xtrue"])
 
 dnl ---------------------------------------------------------------------------
 dnl - wacom
 dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE(wacom,
+              AS_HELP_STRING([--disable-wacom], [disable Wacom support 
(default: auto)]),,
+              enable_wacom=auto)
 build_wacom=false
-PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst 
gudev-1.0 cinnamon-desktop xorg-wacom librsvg-2.0 >= $LIBRSVG_REQUIRED_VERSION 
gtk+-3.0 >= 3.8.0],
-                  [build_wacom="true" AC_DEFINE(HAVE_WACOM, 1, [Define if 
wacom is being build])], [build_wacom="false"])
+if test x"$enable_wacom" != x"no" ; then
+  PKG_CHECK_MODULES(WACOM, [libwacom >= $LIBWACOM_REQUIRED_VERSION x11 xi xtst 
gudev-1.0 cinnamon-desktop xorg-wacom librsvg-2.0 >= $LIBRSVG_REQUIRED_VERSION 
gtk+-3.0 >= 3.8.0],
+                    [build_wacom="true" AC_DEFINE(HAVE_WACOM, 1, [Define if 
wacom is being build])], [build_wacom="false"])
+fi
 
 AM_CONDITIONAL(BUILD_WACOM, test "x$build_wacom" = "xtrue")
 
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 666bfef..2a7a4e1 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -5,7 +5,6 @@ enabled_plugins =       \
        a11y-settings   \
        automount       \
        clipboard       \
-       color           \
        cursor          \
        dummy           \
     datetime    \
@@ -22,6 +21,12 @@ enabled_plugins =    \
 
 disabled_plugins = $(NULL)
 
+if BUILD_COLOR
+enabled_plugins += color
+else
+disabled_plugins += color
+endif
+
 if BUILD_WACOM
 enabled_plugins += wacom
 else
-- 
1.9.2





Reply via email to