commit:     bdec9ff75969207c31ce201a5dbc709fd1fe7a8a
Author:     dakrk <dark <AT> darkok <DOT> xyz>
AuthorDate: Wed Apr  5 01:59:11 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Apr  5 02:40:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdec9ff7

games-emulation/melonds: add wayland USE flag

Signed-off-by: dakrk <dark <AT> darkok.xyz>
Closes: https://github.com/gentoo/gentoo/pull/30481
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 games-emulation/melonds/melonds-9999.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/games-emulation/melonds/melonds-9999.ebuild 
b/games-emulation/melonds/melonds-9999.ebuild
index d68ba29eb6b8..3bf0d22f5d0e 100644
--- a/games-emulation/melonds/melonds-9999.ebuild
+++ b/games-emulation/melonds/melonds-9999.ebuild
@@ -22,13 +22,12 @@ else
        KEYWORDS="~amd64"
 fi
 
-IUSE="+jit +opengl"
+IUSE="+jit +opengl wayland"
 LICENSE="BSD-2 GPL-2 GPL-3 Unlicense"
 SLOT="0"
 
 RDEPEND="
        app-arch/libarchive
-       dev-libs/wayland
        dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtmultimedia:5
@@ -37,9 +36,10 @@ RDEPEND="
        media-libs/libsdl2[sound,video]
        net-libs/libpcap
        net-libs/libslirp
+       wayland? ( dev-libs/wayland )
 "
 DEPEND="${RDEPEND}"
-BDEPEND="kde-frameworks/extra-cmake-modules:5"
+BDEPEND="wayland? ( kde-frameworks/extra-cmake-modules:5 )"
 
 # used for JIT recompiler
 QA_EXECSTACK="usr/bin/melonDS"
@@ -65,6 +65,7 @@ src_configure() {
                -DBUILD_SHARED_LIBS=OFF
                -DENABLE_JIT=$(usex jit)
                -DENABLE_OGLRENDERER=$(usex opengl)
+               -DENABLE_WAYLAND=$(usex wayland)
        )
        cmake_src_configure
 }

Reply via email to