blob: 20c5cb3367223b82f6d45109e602200f19fc54ec (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils pam systemd
DESCRIPTION="A lightweight display manager"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/LightDM"
SRC_URI="http://launchpad.net/lightdm/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk +introspection nls qt4 systemd vala"
VALASLOT="0.12"
RDEPEND="
>=dev-libs/glib-2.26:2
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libX11
x11-libs/libxklavier
virtual/pam
gtk? ( x11-libs/gtk+:2 )
introspection? ( dev-libs/gobject-introspection )
nls? ( virtual/libintl )
qt4? (
x11-libs/qt-core:4
x11-libs/qt-dbus:4
x11-libs/qt-gui:4
)
vala? ( dev-lang/vala:${VALASLOT} )
"
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )
"
pkg_setup() {
export VALAC="$(type -p valac-${VALASLOT})"
enewgroup lightdm
enewuser lightdm -1 -1 /var/lib/lightdm lightdm
}
src_configure() {
econf \
--localstatedir="${EPREFIX}/var" \
--disable-static \
--disable-dependency-tracking \
--with-greeter-user=lightdm \
--with-xserver-binary="${EPREFIX}/usr/bin/X" \
--with-xsession-dir="${EPREFIX}/usr/share/xsessions" \
$(use_enable gtk liblightdm_gobject) \
$(use_enable introspection) \
$(use_enable nls) \
$(use_enable qt4 liblightdm_qt) || die
}
src_install() {
emake DESTDIR="${D}" install || die
use systemd && systemd_dounit "${FILES}"/lightdm.service
pamd_mimic system-local-login lightdm auth account session || die
find "${ED}" -name '*.la' -exec rm {} + || die
dodoc AUTHORS ChangeLog NEWS README || die
}
|