commit:     97985fb97c421b1301b70c750f90051fbcf70bae
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 25 22:08:39 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 25 22:09:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97985fb9

gui-apps/mako: fix automagic basu usage

Not sure how I missed that before!

Fixes: 8f162d2e7717b30d130925a72129d56a4fbd4daa
Closes: https://bugs.gentoo.org/783156
Reported-by: Arsen Arsenovic <arsen <AT> aarsen.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../mako/{mako-1.6-r2.ebuild => mako-1.6-r3.ebuild}     | 17 +++++++++++++----
 gui-apps/mako/mako-9999.ebuild                          | 17 +++++++++++++----
 2 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/gui-apps/mako/mako-1.6-r2.ebuild b/gui-apps/mako/mako-1.6-r3.ebuild
similarity index 72%
rename from gui-apps/mako/mako-1.6-r2.ebuild
rename to gui-apps/mako/mako-1.6-r3.ebuild
index 89b09c2d756e..dc520d5f6127 100644
--- a/gui-apps/mako/mako-1.6-r2.ebuild
+++ b/gui-apps/mako/mako-1.6-r3.ebuild
@@ -13,20 +13,20 @@ if [[ ${PV} == 9999 ]]; then
        EGIT_REPO_URI="https://github.com/emersion/${PN}.git";
 else
        SRC_URI="https://github.com/emersion/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="amd64 arm64 x86"
+       KEYWORDS="~amd64 ~arm64 ~x86"
 fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="+icons"
+IUSE="elogind +icons systemd"
 
 DEPEND="
        dev-libs/wayland
        x11-libs/pango
        x11-libs/cairo
        || (
-               sys-apps/systemd
-               sys-auth/elogind
+               systemd? ( sys-apps/systemd )
+               elogind? ( sys-auth/elogind )
                sys-libs/basu
        )
        sys-apps/dbus
@@ -49,5 +49,14 @@ src_configure() {
                -Dicons=$(usex icons enabled disabled)
                "-Dwerror=false"
        )
+
+       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/gui-apps/mako/mako-9999.ebuild b/gui-apps/mako/mako-9999.ebuild
index 920feefafb99..dc520d5f6127 100644
--- a/gui-apps/mako/mako-9999.ebuild
+++ b/gui-apps/mako/mako-9999.ebuild
@@ -18,15 +18,15 @@ fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE="+icons"
+IUSE="elogind +icons systemd"
 
 DEPEND="
        dev-libs/wayland
        x11-libs/pango
        x11-libs/cairo
        || (
-               sys-apps/systemd
-               sys-auth/elogind
+               systemd? ( sys-apps/systemd )
+               elogind? ( sys-auth/elogind )
                sys-libs/basu
        )
        sys-apps/dbus
@@ -37,7 +37,7 @@ DEPEND="
 "
 RDEPEND="
        ${DEPEND}
-       dev-libs/wayland-protocols
+       >=dev-libs/wayland-protocols-1.21
 "
 BDEPEND="
        virtual/pkgconfig
@@ -49,5 +49,14 @@ src_configure() {
                -Dicons=$(usex icons enabled disabled)
                "-Dwerror=false"
        )
+
+       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
 }

Reply via email to