| 1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
|
inherit autotools pam qmake-utils readme.gentoo-r1 systemd vala xdg-utils
|
|
6 |
inherit autotools pam readme.gentoo-r1 systemd vala xdg-utils
|
| 7 |
7 |
|
| 8 |
8 |
DESCRIPTION="A lightweight display manager"
|
| 9 |
9 |
HOMEPAGE="https://github.com/canonical/lightdm"
|
| ... | ... | |
| 12 |
12 |
|
| 13 |
13 |
LICENSE="GPL-3 LGPL-3"
|
| 14 |
14 |
SLOT="0"
|
| 15 |
|
KEYWORDS="~alpha amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
|
| 16 |
|
IUSE="audit elogind +gnome +gtk +introspection non-root systemd vala X"
|
|
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
|
16 |
IUSE="audit elogind +gtk +introspection non-root qt6 systemd vala X"
|
| 17 |
17 |
|
| 18 |
18 |
REQUIRED_USE="^^ ( elogind systemd )
|
| 19 |
19 |
vala? ( introspection )"
|
| 20 |
20 |
|
| 21 |
21 |
RESTRICT="test"
|
| 22 |
22 |
|
| 23 |
|
COMMON_DEPEND="
|
|
23 |
DEPEND="
|
| 24 |
24 |
>=dev-libs/glib-2.44.0:2
|
| 25 |
25 |
dev-libs/libgcrypt:=
|
| 26 |
26 |
sys-libs/pam
|
| ... | ... | |
| 29 |
29 |
x11-libs/libXdmcp
|
| 30 |
30 |
x11-libs/libxklavier:=
|
| 31 |
31 |
audit? ( sys-process/audit )
|
| 32 |
|
gnome? ( sys-apps/accountsservice )
|
| 33 |
32 |
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2 )
|
|
33 |
qt6? ( dev-qt/qtbase:6[dbus,gui] )
|
| 34 |
34 |
X? ( x11-base/xorg-drivers )
|
| 35 |
35 |
"
|
| 36 |
|
RDEPEND="${COMMON_DEPEND}
|
|
36 |
RDEPEND="${DEPEND}
|
| 37 |
37 |
acct-group/lightdm
|
| 38 |
38 |
acct-group/video
|
| 39 |
39 |
acct-user/lightdm
|
| ... | ... | |
| 41 |
41 |
elogind? ( sys-auth/elogind[pam] )
|
| 42 |
42 |
systemd? ( sys-apps/systemd[pam] )
|
| 43 |
43 |
"
|
| 44 |
|
DEPEND="${COMMON_DEPEND}
|
| 45 |
|
gnome? ( gnome-base/gnome-common )
|
| 46 |
|
"
|
| 47 |
44 |
BDEPEND="
|
| 48 |
45 |
app-text/yelp-tools
|
| 49 |
|
dev-build/gtk-doc-am
|
|
46 |
dev-util/gtk-doc
|
| 50 |
47 |
dev-libs/libxml2
|
| 51 |
48 |
dev-util/intltool
|
| 52 |
49 |
sys-devel/gettext
|
| ... | ... | |
| 58 |
55 |
PATCHES=(
|
| 59 |
56 |
"${FILESDIR}"/${PN}-1.30.0-musl-locale.patch
|
| 60 |
57 |
"${FILESDIR}"/${PN}-1.30.0-musl-updwtmpx.patch
|
|
58 |
"${FILESDIR}"/${PN}-1.33.0-rename-dbus-displaymanager-conf.patch
|
| 61 |
59 |
)
|
| 62 |
60 |
|
| 63 |
61 |
DOCS=( NEWS )
|
| ... | ... | |
| 78 |
76 |
"/^#session-wrapper/s@^.*@session-wrapper=/etc/${PN}/Xsession@" \
|
| 79 |
77 |
data/lightdm.conf || die "Failed to fix lightdm.conf"
|
| 80 |
78 |
|
| 81 |
|
# use correct version of qmake. bug #566950
|
| 82 |
|
sed \
|
| 83 |
|
-e "/AC_CHECK_TOOLS(MOC5/a AC_SUBST(MOC5,$(qt5_get_bindir)/moc)" \
|
| 84 |
|
-i configure.ac || die
|
|
79 |
# Rename a dbus config file, see bug #980039
|
|
80 |
mv data/org.freedesktop.DisplayManager.conf data/org.freedesktop.lightdm.conf || die
|
| 85 |
81 |
|
| 86 |
82 |
default
|
| 87 |
83 |
|
| ... | ... | |
| 113 |
109 |
$(use_enable audit libaudit)
|
| 114 |
110 |
$(use_enable introspection)
|
| 115 |
111 |
--disable-liblightdm-qt5
|
|
112 |
$(use_enable qt6 liblightdm-qt6)
|
| 116 |
113 |
$(use_enable vala)
|
| 117 |
114 |
--with-user-session=${_session}
|
| 118 |
115 |
--with-greeter-session=${_greeter}
|