Gentoo Archives: gentoo-commits

From: Samuel Bauer <samuel.bauer@×××××.fr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/yuzu/
Date: Sun, 30 May 2021 19:21:13
Message-Id: 1622402445.643377b8784df7e5deec1ba73dd5297eebb3e952.samuel.bauer@gentoo
1 commit: 643377b8784df7e5deec1ba73dd5297eebb3e952
2 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
3 AuthorDate: Sun May 30 19:20:45 2021 +0000
4 Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
5 CommitDate: Sun May 30 19:20:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=643377b8
7
8 games-emulation/yuzu: compatibility list: add flag
9
10 Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
11
12 games-emulation/yuzu/metadata.xml | 5 +++--
13 games-emulation/yuzu/yuzu-9999.ebuild | 9 ++++++---
14 2 files changed, 9 insertions(+), 5 deletions(-)
15
16 diff --git a/games-emulation/yuzu/metadata.xml b/games-emulation/yuzu/metadata.xml
17 index ac55d48f0..3974ff3d6 100644
18 --- a/games-emulation/yuzu/metadata.xml
19 +++ b/games-emulation/yuzu/metadata.xml
20 @@ -2,12 +2,13 @@
21 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
22 <pkgmetadata>
23 <maintainer type="person">
24 - <name>Samuel Bauer</name>
25 - <email>samuel.bauer@×××××.fr</email>
26 + <name>mazes-80</name>
27 + <email>mazes-80@××××××.com</email>
28 </maintainer>
29 <use>
30 <flag name="boxcat">Enable the Boxcat service, a yuzu high-level implementation of BCAT</flag>
31 <flag name="cubeb">Enables the cubeb audio backend</flag>
32 + <flag name="compatibility-list">Downloads the latest compatibility list</flag>
33 <flag name="discord">Enables Discord Rich Presence</flag>
34 <flag name="webengine">Use QtWebEngine for web applet implementation</flag>
35 <flag name="webservice">Enable web services (telemetry, etc.)</flag>
36
37 diff --git a/games-emulation/yuzu/yuzu-9999.ebuild b/games-emulation/yuzu/yuzu-9999.ebuild
38 index ce3240a30..e7a2452f4 100644
39 --- a/games-emulation/yuzu/yuzu-9999.ebuild
40 +++ b/games-emulation/yuzu/yuzu-9999.ebuild
41 @@ -18,7 +18,7 @@ EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus'
42 LICENSE="GPL-3"
43 SLOT="0"
44 KEYWORDS=""
45 -IUSE="+boxcat +cubeb discord +qt5 sdl webengine +webservice"
46 +IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl webengine +webservice"
47
48 DEPEND="
49 discord? ( >=dev-libs/rapidjson-1.1.0 )
50 @@ -58,7 +58,7 @@ src_unpack() {
51 git-r3_src_unpack
52
53 # Do not fetch via sources because this file always changes
54 - curl https://api.yuzu-emu.org/gamedb/ > "${S}"/compatibility_list.json
55 + use compatibility-list && curl https://api.yuzu-emu.org/gamedb/ > "${S}"/compatibility_list.json
56 }
57
58 src_prepare() {
59 @@ -107,6 +107,7 @@ src_prepare() {
60 src_configure() {
61 local -a mycmakeargs=(
62 -DBUILD_SHARED_LIBS=OFF
63 + -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=$(usex compatibility-list)
64 -DENABLE_CUBEB=$(usex cubeb)
65 -DENABLE_QT=$(usex qt5)
66 -DENABLE_QT_TRANSLATION=$(usex qt5)
67 @@ -120,5 +121,7 @@ src_configure() {
68 cmake_src_configure
69
70 # This would be better in src_unpack but it would be unlinked
71 - mv "${S}"/compatibility_list.json "${BUILD_DIR}"/dist/compatibility_list/ || die
72 + if use compatibility-list; then
73 + mv "${S}"/compatibility_list.json "${BUILD_DIR}"/dist/compatibility_list/ || die
74 + fi
75 }