blob: eab1233af0ca9ab056c22674b8168535ec2a4210 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools gnome2-utils
DESCRIPTION="A simple locker using lightdm"
HOMEPAGE="https://github.com/the-cavalry/light-locker"
SRC_URI="${HOMEPAGE}/releases/download/v${PV}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="consolekit +dpms elogind gtk3 +screensaver systemd +upower"
BDEPEND="dev-lang/perl
dev-perl/XML-Parser
dev-util/intltool
sys-devel/gettext"
DEPEND="dev-libs/dbus-glib
dev-libs/glib
sys-apps/dbus
x11-libs/cairo
x11-libs/libX11
x11-libs/pango
x11-libs/libXxf86vm
consolekit? ( sys-auth/consolekit )
dpms? ( x11-libs/libXext )
elogind? ( sys-auth/elogind )
!gtk3? ( x11-libs/gtk+:2 )
gtk3? ( x11-libs/gtk+:3 )
screensaver? ( x11-libs/libXScrnSaver )
systemd? ( sys-apps/systemd )
upower? ( sys-power/upower )"
RDEPEND="${DEPEND}
x11-misc/lightdm"
REQUIRED_USE="?? ( consolekit elogind systemd )"
DOCS=( AUTHORS HACKING NEWS README )
PATCHES=(
"${FILESDIR}/${PN}-${PV}-elogind.patch"
)
src_prepare() {
default
# remove xdt-autogen specific macro (just like upstream do) as we need to autoreconf
sed -si -e "/XDT_I18N/d" configure.ac || die
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_with consolekit console-kit)
$(use_with dpms dpms-ext)
$(use_with !gtk3 gtk2)
$(use_with screensaver x)
$(use_with screensaver mit-ext)
$(use_with systemd)
$(use_with elogind)
$(use_with upower)
)
econf "${myeconfargs[@]}"
}
pkg_postinst() {
gnome2_schemas_update
}
pkg_postrm() {
gnome2_schemas_update
}
|