From 14ae9865aaddb130af5d0da3dd70c0608b973b80 Mon Sep 17 00:00:00 2001 From: mblob Date: Sun, 10 Sep 2023 13:07:26 +0200 Subject: [PATCH] minor adjustement --- .../xdg-desktop-portal-hyprland-9999.ebuild | 14 +++++++++++++- .../gui-libs/xdg-desktop-portal-hyprland-9999 | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild index 8c17b7c..a3c36ed 100644 --- a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild +++ b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-9999.ebuild @@ -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 } diff --git a/metadata/md5-cache/gui-libs/xdg-desktop-portal-hyprland-9999 b/metadata/md5-cache/gui-libs/xdg-desktop-portal-hyprland-9999 index 502f281..22ae597 100644 --- a/metadata/md5-cache/gui-libs/xdg-desktop-portal-hyprland-9999 +++ b/metadata/md5-cache/gui-libs/xdg-desktop-portal-hyprland-9999 @@ -5,11 +5,11 @@ DESCRIPTION=xdg-desktop-portal backend for hyprland EAPI=8 HOMEPAGE=https://github.com/hyprwm/xdg-desktop-portal-hyprland INHERIT=meson git-r3 -IUSE=systemd +IUSE=elogind systemd LICENSE=MIT PROPERTIES=live RDEPEND=>=media-video/pipewire-0.3.41:= dev-libs/inih dev-libs/wayland dev-qt/qtbase dev-qt/qtcore dev-qt/qtgui dev-qt/qtwayland:6 dev-qt/qtwidgets media-libs/mesa sys-apps/util-linux x11-libs/libdrm systemd? ( >=sys-apps/systemd-237 ) sys-apps/xdg-desktop-portal -REQUIRED_USE=systemd +REQUIRED_USE=?? ( elogind systemd ) SLOT=0/9999 _eclasses_=multiprocessing b4e253ab22cef7b1085e9b67c7a3b730 ninja-utils f3010c780f65d1bb5aea15a9af1adc9c toolchain-funcs 862d337d98edb576796827be2c6b11ca multilib c19072c3cd7ac5cb21de013f7e9832e0 python-utils-r1 59e60e9c5cbd3f214d7f1002e798b387 meson 08b7183c3f4811568ee93eb0f79a89fe git-r3 2358a7b20091609e24bd3a83b3ac5991 -_md5_=b7f0e0779c2fff365d976a6b244caa27 +_md5_=379d54b9399d24c90c5c51e511bed048