1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils gnome2 virtualx
9 DESCRIPTION="Cinnamon's settings daemon"
10 HOMEPAGE="http://developer.linuxmint.com/projects/cinnamon-projects.html"
11 SRC_URI="https://github.com/linuxmint/cinnamon-settings-daemon/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 IUSE="+colord cups input_devices_wacom smartcard systemd"
19 # udev is non-optional since lots of plugins, not just gudev, pull it in
21 >=dev-libs/glib-2.38:2
23 >=gnome-base/libgnomekbd-3.6
24 >=gnome-base/librsvg-2.36.2
25 >=gnome-extra/cinnamon-desktop-2.8.0:0=
27 >=media-libs/lcms-2.2:2
28 media-libs/libcanberra:0=[gtk3]
30 >=sys-auth/polkit-0.97
32 >=x11-libs/gtk+-3.9.10:3
33 >=x11-libs/libnotify-0.7.3:0=
39 >=sys-power/upower-0.9.11
41 colord? ( >=x11-misc/colord-0.1.27:= )
42 cups? ( >=net-print/cups-1.4[dbus] )
43 input_devices_wacom? (
44 >=dev-libs/libwacom-0.7
45 x11-drivers/xf86-input-wacom
47 smartcard? ( >=dev-libs/nss-3.11.2 )
48 systemd? ( sys-apps/systemd:0= )
49 !systemd? ( sys-auth/elogind:0= )
53 >=dev-util/intltool-0.37.1
59 # make colord and wacom optional
60 eapply "${FILESDIR}"/${PN}-3.0.1-optional.patch
63 sed -e '/g_test_add_func ("\/color\/edid/d' \
64 -i plugins/color/gcm-self-test.c || die
71 # no point in disabling gudev since other plugins pull it in
72 gnome2_src_configure \
77 $(use_enable colord color) \
79 $(use_enable smartcard smartcard-support) \
80 $(use_enable input_devices_wacom wacom)