| 1 |
|
# Copyright 1999-2026 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 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 xdg-utils
|
|
6 |
inherit meson xdg-utils
|
| 7 |
7 |
|
| 8 |
8 |
DESCRIPTION="A session manager for the Xfce desktop environment"
|
| 9 |
9 |
HOMEPAGE="
|
| 10 |
10 |
https://docs.xfce.org/xfce/xfce4-session/start
|
| 11 |
11 |
https://gitlab.xfce.org/xfce/xfce4-session
|
| 12 |
12 |
"
|
| 13 |
|
SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
|
|
13 |
SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.xz"
|
| 14 |
14 |
|
| 15 |
15 |
LICENSE="GPL-2+"
|
| 16 |
16 |
SLOT="0"
|
| ... | ... | |
| 20 |
20 |
|
| 21 |
21 |
DEPEND="
|
| 22 |
22 |
>=dev-libs/glib-2.72.0
|
|
23 |
>=x11-libs/gdk-pixbuf-2.42.8
|
| 23 |
24 |
>=x11-libs/gtk+-3.24.0:3[X?,wayland?]
|
| 24 |
25 |
>=xfce-base/libxfce4util-4.19.2:=
|
| 25 |
|
>=xfce-base/libxfce4ui-4.18.4:=
|
|
26 |
>=xfce-base/libxfce4ui-4.21.0:=
|
| 26 |
27 |
>=xfce-base/libxfce4windowing-4.19.2:=
|
| 27 |
28 |
>=xfce-base/xfconf-4.18.0:=
|
| 28 |
29 |
policykit? ( >=sys-auth/polkit-0.102 )
|
| ... | ... | |
| 30 |
31 |
>=gui-libs/gtk-layer-shell-0.7.0
|
| 31 |
32 |
)
|
| 32 |
33 |
X? (
|
|
34 |
x11-apps/iceauth
|
| 33 |
35 |
>=x11-libs/libICE-1.0.10
|
| 34 |
36 |
>=x11-libs/libSM-1.2.3
|
| 35 |
37 |
>=x11-libs/libX11-1.6.7
|
| ... | ... | |
| 40 |
42 |
${DEPEND}
|
| 41 |
43 |
x11-apps/xrdb
|
| 42 |
44 |
nls? ( x11-misc/xdg-user-dirs )
|
| 43 |
|
X? (
|
| 44 |
|
x11-apps/iceauth
|
| 45 |
|
)
|
| 46 |
45 |
xscreensaver? (
|
| 47 |
46 |
|| (
|
| 48 |
47 |
xfce-extra/xfce4-screensaver
|
| ... | ... | |
| 52 |
51 |
)
|
| 53 |
52 |
"
|
| 54 |
53 |
BDEPEND="
|
| 55 |
|
dev-libs/glib
|
| 56 |
54 |
>=sys-devel/gettext-0.19.8
|
| 57 |
55 |
virtual/pkgconfig
|
| 58 |
56 |
"
|
| 59 |
57 |
|
| 60 |
58 |
src_configure() {
|
| 61 |
|
local myconf=(
|
| 62 |
|
$(use_enable X x11)
|
| 63 |
|
$(use_enable policykit polkit)
|
| 64 |
|
$(use_enable wayland)
|
| 65 |
|
$(use_enable wayland gtk-layer-shell)
|
| 66 |
|
--with-xsession-prefix="${EPREFIX}"/usr
|
| 67 |
|
ICEAUTH="${EPREFIX}"/usr/bin/iceauth
|
|
59 |
local emesonargs=(
|
|
60 |
$(meson_feature X x11)
|
|
61 |
$(meson_feature wayland)
|
|
62 |
$(meson_feature wayland gtk-layer-shell)
|
|
63 |
$(meson_feature policykit polkit)
|
|
64 |
-Dxsession-prefix="${EPREFIX}"/usr
|
|
65 |
-Dwayland-session-prefix="${EPREFIX}"/usr
|
| 68 |
66 |
)
|
| 69 |
|
|
| 70 |
|
econf "${myconf[@]}"
|
|
67 |
meson_src_configure
|
| 71 |
68 |
}
|
| 72 |
69 |
|
| 73 |
70 |
src_install() {
|
| 74 |
|
default
|
| 75 |
|
find "${ED}" -name '*.la' -delete || die
|
|
71 |
meson_src_install
|
| 76 |
72 |
|
| 77 |
73 |
exeinto /etc/X11/Sessions
|
| 78 |
74 |
newexe - Xfce4 <<-EOF
|