commit:     ab44d066809c6e8791afbaf828db5b7b846dad9b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 26 03:09:54 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Jun 26 03:13:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab44d066

games-emulation/desmume: fix openal automagic

There's a meson option to seemingly enable/disable openal, but in
reality only flips its "required" state and it's used anyway if found.

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

 ....11_p20210409.ebuild => desmume-0.9.11_p20210409-r1.ebuild} |  2 ++
 .../files/desmume-0.9.11_p20210409-openal-automagic.patch      | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/games-emulation/desmume/desmume-0.9.11_p20210409.ebuild 
b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
similarity index 96%
rename from games-emulation/desmume/desmume-0.9.11_p20210409.ebuild
rename to games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
index 752de42b7cb..c3a84760618 100644
--- a/games-emulation/desmume/desmume-0.9.11_p20210409.ebuild
+++ b/games-emulation/desmume/desmume-0.9.11_p20210409-r1.ebuild
@@ -35,7 +35,9 @@ DEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${P}-fix-gtk-cliopts.patch
+       "${FILESDIR}"/${P}-openal-automagic.patch
 )
+
 DOCS=( ${PN}/{AUTHORS,ChangeLog,README,README.LIN,doc/.} )
 
 src_configure() {

diff --git 
a/games-emulation/desmume/files/desmume-0.9.11_p20210409-openal-automagic.patch 
b/games-emulation/desmume/files/desmume-0.9.11_p20210409-openal-automagic.patch
new file mode 100644
index 00000000000..565ea3f5a7b
--- /dev/null
+++ 
b/games-emulation/desmume/files/desmume-0.9.11_p20210409-openal-automagic.patch
@@ -0,0 +1,10 @@
+Option only changes whether the dep is required and doesn't disable it.
+--- a/desmume/src/frontend/posix/meson.build
++++ b/desmume/src/frontend/posix/meson.build
+@@ -176,5 +176,5 @@
+ endif
+ 
+-if dep_openal.found()
++if dep_openal.found() and get_option('openal')
+   dependencies += dep_openal
+   libdesmume_src += [

Reply via email to