1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 # Using strip-linguas in eutils
7 inherit eutils autotools systemd
9 DESCRIPTION="LXDE Display Manager"
10 HOMEPAGE="https://wiki.lxde.org/en/LXDM"
11 SRC_URI="mirror://sourceforge/lxde/${P}.tar.xz"
15 KEYWORDS="amd64 ~arm ~ppc x86"
17 IUSE="consolekit debug gtk3 nls pam"
19 RDEPEND="consolekit? ( sys-auth/consolekit )
21 gtk3? ( x11-libs/gtk+:3 )
22 !gtk3? ( x11-libs/gtk+:2 )
23 nls? ( sys-devel/gettext )
26 >=dev-util/intltool-0.40
28 DOCS=( AUTHORS README TODO )
31 # Upstream bug, tarball contains pre-made lxdm.conf
32 rm "${S}"/data/lxdm.conf || die
34 # Fix consolekit and selinux
35 eapply "${FILESDIR}/${P}-pam_console-disable.patch"
36 # Apply all upstream fixes in git until 2016-11-11
37 eapply "${FILESDIR}/lxdm-0.5.3-upstream-fixes.patch"
40 # this replaces the bootstrap/autogen script in most packages
45 einfo "Running intltoolize ..."
46 intltoolize --force --copy --automake || die
47 strip-linguas -i "${S}/po" || die
51 econf --enable-password \
54 --with-systemdsystemunitdir=$(systemd_get_systemunitdir) \
55 $(use_enable consolekit) \
65 #Use Gentoo specific Xsession startup file
67 doexe "${FILESDIR}"/Xsession