blob: 1b0e83e74ca3ec28a90bfb9da047835921dfa28e (
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
|
EAPI=8
inherit meson
DESCRIPTION="xdg-desktop-portal backend (termfilechooser)"
HOMEPAGE="https://github.com/hunkyburrito/xdg-desktop-portal-termfilechooser"
inherit git-r3
EGIT_REPO_URI="https://github.com/hunkyburrito/xdg-desktop-portal-termfilechooser"
LICENSE="MIT"
SLOT="0"
IUSE="elogind systemd"
REQUIRED_USE="?? ( elogind systemd )"
RDEPEND="
|| (
systemd? ( >=sys-apps/systemd-237 )
elogind? ( >=sys-auth/elogind-237 )
sys-libs/basu
)
"
DEPEND="
${RDEPEND}
"
BDEPEND="
dev-libs/inih
"
src_configure() {
local emesonargs=(
$(meson_feature systemd)
)
if use systemd; then
emesonargs+=('-Dsd-bus-provider=libsystemd')
elif use elogind; then
emesonargs+=('-Dsd-bus-provider=libelogind')
else
emesonargs+=('-Dsd-bus-provider=basu')
fi
meson_src_configure
}
|