1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools gnome2-utils
8 DESCRIPTION="A simple locker using lightdm"
9 HOMEPAGE="https://github.com/the-cavalry/light-locker"
10 SRC_URI="https://github.com/the-cavalry/light-locker/releases/download/v${PV}/${P}.tar.bz2"
12 LICENSE="GPL-2 LGPL-2"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="consolekit +dpms elogind gtk3 +screensaver systemd +upower"
17 BDEPEND="dev-lang/perl
21 DEPEND="dev-libs/dbus-glib
28 consolekit? ( sys-auth/consolekit )
29 dpms? ( x11-libs/libXext )
30 elogind? ( sys-auth/elogind )
31 !gtk3? ( x11-libs/gtk+:2 )
32 gtk3? ( x11-libs/gtk+:3 )
33 screensaver? ( x11-libs/libXScrnSaver )
34 systemd? ( sys-apps/systemd )
35 upower? ( sys-power/upower )"
39 REQUIRED_USE="?? ( consolekit elogind systemd )"
41 DOCS=( AUTHORS HACKING NEWS README )
44 "${FILESDIR}/${PN}-${PV}-elogind.patch"
49 # remove xdt-autogen specific macro (just like upstream do) as we need to autoreconf
50 sed -si -e "/XDT_I18N/d" configure.ac || die
56 $(use_with consolekit console-kit)
57 $(use_with dpms dpms-ext)
58 $(use_with !gtk3 gtk2)
59 $(use_with screensaver x)
60 $(use_with screensaver mit-ext)
65 econf "${myeconfargs[@]}"