commit:     35caab6dc2cd44a59cbd812d159c024ac364e531
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 12 11:35:31 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Oct 12 13:43:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35caab6d

games-emulation/mgba: sync live

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-emulation/mgba/mgba-9999.ebuild | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/games-emulation/mgba/mgba-9999.ebuild 
b/games-emulation/mgba/mgba-9999.ebuild
index c7121c11ef4a..a2fb0f2ce948 100644
--- a/games-emulation/mgba/mgba-9999.ebuild
+++ b/games-emulation/mgba/mgba-9999.ebuild
@@ -18,11 +18,10 @@ DESCRIPTION="Game Boy Advance Emulator"
 HOMEPAGE="https://mgba.io/";
 
 LICENSE="MPL-2.0 BSD LGPL-2.1+ public-domain discord? ( MIT )"
-SLOT="0/10"
-IUSE="debug discord elf ffmpeg gles2 gles3 gui libretro lua opengl +sdl sqlite 
test"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="debug discord elf ffmpeg gles2 gles3 gui libretro lua +opengl +sdl 
+sqlite test"
 REQUIRED_USE="
-       || ( gui sdl )
-       gui? ( || ( gles2 gles3 opengl ) )
+       gui? ( || ( gles2 gles3 opengl ) sqlite )
        lua? ( ${LUA_REQUIRED_USE} )"
 RESTRICT="!test? ( test )"
 
@@ -43,13 +42,17 @@ RDEPEND="
                dev-qt/qtnetwork:5
                dev-qt/qtwidgets:5
        )
-       sdl? ( media-libs/libsdl2[sound,joystick,opengl?,video] )
+       sdl? ( media-libs/libsdl2[sound,joystick,gles2?,opengl?,video] )
        sqlite? ( dev-db/sqlite:3 )"
 DEPEND="
        ${RDEPEND}
        test? ( dev-util/cmocka )"
 BDEPEND="lua? ( virtual/pkgconfig )"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.10.0-optional-updater.patch
+)
+
 pkg_setup() {
        use lua && lua-single_pkg_setup
 }
@@ -62,8 +65,9 @@ src_configure() {
                -DBUILD_GLES3=$(usex gles3)
                -DBUILD_LIBRETRO=$(usex libretro)
                -DBUILD_QT=$(usex gui)
-               -DBUILD_SDL=$(usex sdl)
+               -DBUILD_SDL=$(usex sdl) # also used for gamepads in QT build
                -DBUILD_SUITE=$(usex test)
+               -DBUILD_UPDATER=OFF
                -DENABLE_SCRIPTING=$(usex lua)
                -DMARKDOWN=OFF #752048
                -DUSE_DEBUGGERS=$(usex debug)

Reply via email to