commit:     89af8ce70562259d66541cf44d7c08c68ada3758
Author:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Sun May 30 19:02:45 2021 +0000
Commit:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Sun May 30 19:06:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=89af8ce7

games-emulation/yuzu: enable compatibility list support

Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>

 games-emulation/yuzu/yuzu-9999.ebuild | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/games-emulation/yuzu/yuzu-9999.ebuild 
b/games-emulation/yuzu/yuzu-9999.ebuild
index 2942877d6..ce3240a30 100644
--- a/games-emulation/yuzu/yuzu-9999.ebuild
+++ b/games-emulation/yuzu/yuzu-9999.ebuild
@@ -54,8 +54,12 @@ pkg_setup() {
        fi
 }
 
-# May fetch this file from src_unpack to provide compatibility list support
-# curl https://api.yuzu-emu.org/gamedb/ > "${S}"/compatibility_list.json
+src_unpack() {
+       git-r3_src_unpack
+
+       # Do not fetch via sources because this file always changes
+       curl https://api.yuzu-emu.org/gamedb/ > "${S}"/compatibility_list.json
+}
 
 src_prepare() {
        # Set yuzu dev flags
@@ -112,10 +116,9 @@ src_configure() {
                -DYUZU_ALLOW_SYSTEM_SDL2=$(usex sdl)
                -DYUZU_ENABLE_BOXCAT=$(usex boxcat)
                -DYUZU_USE_QT_WEB_ENGINE=$(usex webengine)
-               -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF
        )
        cmake_src_configure
 
-       ## This would be better in src_unpack but it would be unlinked
-       #mv "${S}"/compatibility_list.json 
"${BUILD_DIR}"/dist/compatibility_list/ || die
+       # This would be better in src_unpack but it would be unlinked
+       mv "${S}"/compatibility_list.json 
"${BUILD_DIR}"/dist/compatibility_list/ || die
 }

Reply via email to