# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit eutils autotools
DESCRIPTION="LXDE Display Manager"
LICENSE="GPL-2 GPL-3 LGPL-2.1"
HOMEPAGE="http://lxde.org/"
SRC_URI="mirror://sourceforge/lxde/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="consolekit"
RDEPEND="x11-libs/gtk+:2
dev-libs/glib:2
sys-libs/pam
consolekit? ( sys-auth/consolekit )
x11-libs/libXmu
gnome-base/librsvg"
DEPEND="${RDEPEND}"
DOCS="AUTHORS README TODO"
src_prepare () {
cd "${S}"
epatch "${FILESDIR}/disable_pam_console.patch"
if ! use consolekit ; then
epatch "${FILESDIR}/disable-consolekit.patch"
fi
}
src_install () {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog README || die "dodoc failed"
# Get rid of the .la files.
find "${D}" -name '*.la' -delete
}