Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/cinnamon-settings-daemon/files/, ...
Date: Tue, 31 Jul 2018 08:38:50
Message-Id: 1533026072.1fa48e6948b3b979443b740baeb351d2d6b0816f.k_f@gentoo
1 commit: 1fa48e6948b3b979443b740baeb351d2d6b0816f
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 10:48:37 2018 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 08:34:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fa48e69
7
8 gnome-extra/cinnamon-settings-daemon: New upstream version 3.8.4
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 gnome-extra/cinnamon-settings-daemon/Manifest | 1 +
13 .../cinnamon-settings-daemon-3.8.4.ebuild | 87 ++++++++++++++++++++++
14 ...amon-settings-daemon-3.8.0-accountservice.patch | 57 ++++++++++++++
15 3 files changed, 145 insertions(+)
16
17 diff --git a/gnome-extra/cinnamon-settings-daemon/Manifest b/gnome-extra/cinnamon-settings-daemon/Manifest
18 index 587df8d1630..509210bf4f7 100644
19 --- a/gnome-extra/cinnamon-settings-daemon/Manifest
20 +++ b/gnome-extra/cinnamon-settings-daemon/Manifest
21 @@ -1 +1,2 @@
22 DIST cinnamon-settings-daemon-3.6.1.tar.gz 995005 BLAKE2B c512fe53b707099dca0926893f03056d508bbe22026367c3212a99f22df60d629e02e080fccdeb73151c7aa7e93396b47bede1820059f4a53eace11a56ae5521 SHA512 48a28decff08a191f4ec604386c3bb5c07001d4bc4f7b6d1da379626b41650653fdd14205bbed5321c41fbc281e8638b17e1de30dbba5d299f79cde03216cb33
23 +DIST cinnamon-settings-daemon-3.8.4.tar.gz 660607 BLAKE2B 1db6e8677c9f9e1fc649d29b3de46d2797f01dbaad3a907329eb6781c6c4ec17706d06045ae230315c7802a5ea176dda73dfcd437fd07e3398ad732e96240a83 SHA512 5bd91e781d47413b50b69b6a8d4cbe9060579452db7408d375f01b05b4070caa684d333ef875a7dda85d1acad3442cddd38e13167fa198e3a5540fef7bedfb75
24
25 diff --git a/gnome-extra/cinnamon-settings-daemon/cinnamon-settings-daemon-3.8.4.ebuild b/gnome-extra/cinnamon-settings-daemon/cinnamon-settings-daemon-3.8.4.ebuild
26 new file mode 100644
27 index 00000000000..538687301a2
28 --- /dev/null
29 +++ b/gnome-extra/cinnamon-settings-daemon/cinnamon-settings-daemon-3.8.4.ebuild
30 @@ -0,0 +1,87 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +GNOME2_LA_PUNT="yes"
36 +
37 +inherit autotools eutils gnome2 virtualx
38 +
39 +DESCRIPTION="Cinnamon's settings daemon"
40 +HOMEPAGE="http://cinnamon.linuxmint.com/"
41 +SRC_URI="https://github.com/linuxmint/cinnamon-settings-daemon/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="GPL-2+"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="+colord cups input_devices_wacom smartcard systemd"
47 +RESTRICT=test
48 +
49 +# udev is non-optional since lots of plugins, not just gudev, pull it in
50 +RDEPEND="
51 + >=dev-libs/glib-2.38:2
52 + >=gnome-base/libgnomekbd-3.6
53 + >=gnome-base/librsvg-2.36.2
54 + >=gnome-extra/cinnamon-desktop-2.8.0:0=
55 + media-libs/fontconfig
56 + >=media-libs/lcms-2.2:2
57 + media-libs/libcanberra:0=[gtk3]
58 + sys-apps/dbus
59 + >=sys-auth/polkit-0.97
60 + x11-libs/gdk-pixbuf:2
61 + >=x11-libs/gtk+-3.9.10:3
62 + >=x11-libs/libnotify-0.7.3:0=
63 + x11-libs/libX11
64 + x11-libs/libXext
65 + x11-libs/libXfixes
66 + x11-libs/libXi
67 + x11-libs/libxklavier
68 + virtual/libgudev:=
69 + >=sys-power/upower-0.9.11
70 +
71 + colord? ( >=x11-misc/colord-0.1.27:= )
72 + cups? ( >=net-print/cups-1.4[dbus] )
73 + input_devices_wacom? (
74 + >=dev-libs/libwacom-0.7
75 + x11-drivers/xf86-input-wacom
76 + x11-libs/libXtst )
77 + smartcard? ( >=dev-libs/nss-3.11.2 )
78 + systemd? ( sys-apps/systemd:0= )
79 + !systemd? ( sys-auth/elogind:0= )
80 +"
81 +DEPEND="${RDEPEND}
82 + dev-libs/libxml2:2
83 + >=dev-util/intltool-0.37.1
84 + x11-base/xorg-proto
85 + virtual/pkgconfig
86 +"
87 +
88 +src_prepare() {
89 + # make colord and wacom optional
90 + eapply "${FILESDIR}"/${PN}-3.0.1-optional.patch
91 + eapply "${FILESDIR}"/${PN}-3.8.0-accountservice.patch
92 +
93 + # Disable broken test
94 + sed -e '/g_test_add_func ("\/color\/edid/d' \
95 + -i plugins/color/gcm-self-test.c || die
96 +
97 + eautoreconf
98 + gnome2_src_prepare
99 +}
100 +
101 +src_configure() {
102 + # no point in disabling gudev since other plugins pull it in
103 + gnome2_src_configure \
104 + --disable-static \
105 + --enable-gudev \
106 + --enable-polkit \
107 + --enable-logind \
108 + --disable-accountservice \
109 + $(use_enable colord color) \
110 + $(use_enable cups) \
111 + $(use_enable smartcard smartcard-support) \
112 + $(use_enable input_devices_wacom wacom)
113 +}
114 +
115 +src_test() {
116 + virtx emake check
117 +}
118
119 diff --git a/gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-3.8.0-accountservice.patch b/gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-3.8.0-accountservice.patch
120 new file mode 100644
121 index 00000000000..c12f2730cea
122 --- /dev/null
123 +++ b/gnome-extra/cinnamon-settings-daemon/files/cinnamon-settings-daemon-3.8.0-accountservice.patch
124 @@ -0,0 +1,57 @@
125 +From 15b1c1488f28e69cee86ff25bf0c95ebf5245add Mon Sep 17 00:00:00 2001
126 +From: Kristian Fiskerstrand <kf@××××××××××××××××.com>
127 +Date: Sat, 30 Jun 2018 22:35:52 +0200
128 +Subject: [PATCH] Make account service optional
129 +
130 +---
131 + configure.ac | 6 ++++++
132 + plugins/background/csd-background-manager.c | 4 ++--
133 + 2 files changed, 8 insertions(+), 2 deletions(-)
134 +
135 +diff --git a/configure.ac b/configure.ac
136 +index af5d3a4..a30126e 100644
137 +--- a/configure.ac
138 ++++ b/configure.ac
139 +@@ -166,6 +166,12 @@ else
140 + fi
141 + AM_CONDITIONAL(HAVE_GUDEV, test x$have_gudev = xyes)
142 +
143 ++AC_ARG_ENABLE(accountservice, AS_HELP_STRING([--disable-accountservice],[Disable accountservice]), enable_accountservice=$enableval)
144 ++
145 ++if test x$enable_accountservice = "xyes"; then
146 ++ AC_DEFINE(HAVE_ACCOUNTSERVICE, 1, [define if accountservice is available])
147 ++fi
148 ++
149 + dnl ---------------------------------------------------------------------------
150 + dnl - common
151 + dnl ---------------------------------------------------------------------------
152 +diff --git a/plugins/background/csd-background-manager.c b/plugins/background/csd-background-manager.c
153 +index 282094a..a692c6e 100644
154 +--- a/plugins/background/csd-background-manager.c
155 ++++ b/plugins/background/csd-background-manager.c
156 +@@ -135,9 +135,9 @@ settings_change_event_cb (GSettings *settings,
157 + {
158 + gnome_bg_load_from_preferences (manager->priv->bg,
159 + manager->priv->settings);
160 +-
161 ++#ifdef HAVE_ACCOUNTSERVICE
162 + gnome_bg_set_accountsservice_background (gnome_bg_get_filename (manager->priv->bg));
163 +-
164 ++#endif
165 + return FALSE;
166 + }
167 +
168 +diff --git a/plugins/background/csd-background-manager.c
169 +b/plugins/background/csd-background-manager.c
170 +index a692c6e..a99b478 100644
171 +--- a/plugins/background/csd-background-manager.c
172 ++++ b/plugins/background/csd-background-manager.c
173 +@@ -186,8 +186,9 @@ setup_bg (CsdBackgroundManager *manager)
174 + watch_bg_preferences (manager);
175 + gnome_bg_load_from_preferences (manager->priv->bg,
176 + manager->priv->settings);
177 +-
178 ++#ifdef HAVE_ACCOUNTSERVICE
179 + gnome_bg_set_accountsservice_background (gnome_bg_get_filename (manager->priv->bg));
180 ++#endif
181 + }