blob: 134b58d5886de82253759bc1dd1c3e3150daaf76 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/lightdm-0.1.1.ebuild,v 1.2 2010/09/08 07:09:21 xarthisius Exp $
EAPI=2
inherit autotools eutils pam
DESCRIPTION="A lightweight display manager"
HOMEPAGE="http://launchpad.net/lightdm"
SRC_URI="http://people.ubuntu.com/~robert-ancell/${PN}/releases/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="consolekit doc nls webkit"
RDEPEND="dev-libs/glib:2
dev-libs/dbus-glib
webkit? ( net-libs/webkit-gtk )
consolekit? ( sys-auth/consolekit )
x11-libs/gtk+:2
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libxklavier
virtual/pam"
DEPEND="${RDEPEND}
dev-util/pkgconfig
doc? ( dev-util/gtk-doc )
nls? ( dev-util/intltool )"
src_prepare() {
# hardcoded service name to start PAM session
sed -e "s/check_pass/${PN}/" -i src/pam-session.c || die #report me upstream
# Fix ubuntu way of launching WM
sed -e "s:/etc/X11/Xsession::" -i src/display.c || die #report me upstream
epatch "${FILESDIR}"/${P}-webkit.patch
eautoreconf
}
src_configure() {
econf \
--disable-static \
$(use_enable doc gtk-doc) \
$(use_enable webkit) \
--disable-dependency-tracking \
--disable-introspection \
$(use_enable consolekit console-kit) \
$(use_enable nls) \
--with-html-dir=/usr/share/doc/${PF}/html \
--localstatedir=/var #overcoming econf default (fix me?)
}
src_install() {
emake DESTDIR="${D}" install || die
pamd_mimic_system lightdm auth account password session
dodoc ChangeLog NEWS || die
find "${D}" -name '*.la' -exec rm -f '{}' +
}
|