commit:     efe0763e72929a66ffcf113cba89af9524b0d174
Author:     YiFei Zhu <zhuyifei1999 <AT> gmail <DOT> com>
AuthorDate: Sun Jun 11 08:19:34 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sun Jun 11 08:21:47 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=efe0763e

media-sound/musikcube: Fix dependencies and cmake args

Closes: https://bugs.gentoo.org/908306
Signed-off-by: YiFei Zhu <zhuyifei1999 <AT> gmail.com>

 media-sound/musikcube/musikcube-3.0.1.ebuild | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/media-sound/musikcube/musikcube-3.0.1.ebuild 
b/media-sound/musikcube/musikcube-3.0.1.ebuild
index fcc08e3dd..e4b26c397 100644
--- a/media-sound/musikcube/musikcube-3.0.1.ebuild
+++ b/media-sound/musikcube/musikcube-3.0.1.ebuild
@@ -32,6 +32,7 @@ DEPEND="
        dev-cpp/asio
        libopenmpt? (
                media-libs/libopenmpt
+               media-sound/mpg123
        )
        mpris? (
                || (
@@ -78,16 +79,17 @@ src_configure() {
                -DENABLE_PIPEWIRE=$(usex pipewire true false)
                $(usex pulseaudio '' -DLIBPULSE=LIBPULSE-NOTFOUND)
                $(usex portaudio '' -DLIBPORTAUDIO=LIBPORTAUDIO-NOTFOUND)
-
-               if use mpris then
-                       -DUSE_ELOGIND=$(usex elogind true false)
-                       -DUSE_BASU=$(usex basu true false)
-               fi
-
                $(usex libopenmpt '' -DLIBOPENMPT=LIBOPENMPT-NOTFOUND)
                $(usex sndio '' -DLIBSNDIO=LIBSNDIO-NOTFOUND)
                -DBUILD_STANDALONE=false
        )
 
+       if use mpris; then
+               mycmakeargs+=(
+                       -DUSE_ELOGIND=$(usex elogind true false)
+                       -DUSE_BASU=$(usex basu true false)
+               )
+       fi
+
        cmake_src_configure
 }

Reply via email to