blob: 1aee5332c35c66920de8adfc0bf64ddb1b8957c4 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson vala xdg-utils
DESCRIPTION="A session manager for the Xfce desktop environment"
HOMEPAGE="
https://docs.xfce.org/xfce/xfce4-session/start
https://gitlab.xfce.org/xfce/xfce4-session
"
SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="X gtk-doc +introspection nls policykit vala wayland +xscreensaver"
REQUIRED_USE="
|| ( wayland X )
vala? ( introspection )
"
DEPEND="
>=dev-libs/glib-2.76.0
>=x11-libs/gdk-pixbuf-2.42.8
>=x11-libs/gtk+-3.24.0:3[X?,introspection?,wayland?]
>=xfce-base/libxfce4util-4.21.0:=[introspection?,vala?]
>=xfce-base/libxfce4ui-4.21.0:=
>=xfce-base/libxfce4windowing-4.19.2:=
>=xfce-base/xfconf-4.18.0:=
introspection? ( >=dev-libs/gobject-introspection-1.72.0:= )
policykit? ( >=sys-auth/polkit-0.102 )
wayland? (
>=dev-libs/wayland-1.23
>=gui-libs/gtk-layer-shell-0.7.0
)
X? (
x11-apps/iceauth
>=x11-libs/libICE-1.0.10
>=x11-libs/libSM-1.2.3
>=x11-libs/libX11-1.6.7
>=x11-libs/libwnck-3.10.0:3
)
"
RDEPEND="
${DEPEND}
x11-apps/xrdb
nls? ( x11-misc/xdg-user-dirs )
xscreensaver? (
|| (
xfce-extra/xfce4-screensaver
>=x11-misc/xscreensaver-5.26
x11-misc/light-locker
)
)
"
DEPEND+="
wayland? (
>=dev-libs/wayland-protocols-1.23
)
"
BDEPEND="
dev-build/xfce4-dev-tools
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
gtk-doc? ( dev-util/gtk-doc )
vala? ( $(vala_depend) )
wayland? (
>=dev-util/wayland-scanner-1.23
)
"
src_configure() {
local emesonargs=(
$(meson_feature X x11)
$(meson_use gtk-doc)
$(meson_use introspection)
$(meson_feature vala)
$(meson_feature wayland)
$(meson_feature wayland gtk-layer-shell)
$(meson_feature policykit polkit)
-Dxsession-prefix="${EPREFIX}"/usr
-Dwayland-session-prefix="${EPREFIX}"/usr
)
use vala && vala_setup
meson_src_configure
}
src_install() {
meson_src_install
exeinto /etc/X11/Sessions
newexe - Xfce4 <<-EOF
startxfce4
EOF
dosym Xfce4 /etc/X11/Sessions/Xfce
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}
|