minor adjustement

This commit is contained in:
mblob
2023-09-10 13:07:26 +02:00
parent c0f1870bb9
commit 14ae9865aa
2 changed files with 16 additions and 4 deletions

View File

@ -33,7 +33,11 @@ DEPEND="
media-libs/mesa
sys-apps/util-linux
x11-libs/libdrm
systemd? ( >=sys-apps/systemd-237 )
|| (
systemd? ( >=sys-apps/systemd-237 )
elogind? ( >=sys-auth/elogind-237 )
sys-libs/basu
)
"
RDEPEND="
${DEPEND}
@ -46,6 +50,14 @@ BDEPEND="
"
src_configure() {
local emesonargs=()
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
}