games-emulation/yuzu: compatibility list: add flag

Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
This commit is contained in:
Samuel Bauer
2021-05-30 21:20:45 +02:00
parent 89af8ce705
commit 643377b878
2 changed files with 9 additions and 5 deletions

View File

@@ -2,12 +2,13 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Samuel Bauer</name>
<email>samuel.bauer@yahoo.fr</email>
<name>mazes-80</name>
<email>mazes-80@github.com</email>
</maintainer>
<use>
<flag name="boxcat">Enable the Boxcat service, a yuzu high-level implementation of BCAT</flag>
<flag name="cubeb">Enables the cubeb audio backend</flag>
<flag name="compatibility-list">Downloads the latest compatibility list</flag>
<flag name="discord">Enables Discord Rich Presence</flag>
<flag name="webengine">Use QtWebEngine for web applet implementation</flag>
<flag name="webservice">Enable web services (telemetry, etc.)</flag>

View File

@@ -18,7 +18,7 @@ EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus'
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="+boxcat +cubeb discord +qt5 sdl webengine +webservice"
IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl webengine +webservice"
DEPEND="
discord? ( >=dev-libs/rapidjson-1.1.0 )
@@ -58,7 +58,7 @@ 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
use compatibility-list && curl https://api.yuzu-emu.org/gamedb/ > "${S}"/compatibility_list.json
}
src_prepare() {
@@ -107,6 +107,7 @@ src_prepare() {
src_configure() {
local -a mycmakeargs=(
-DBUILD_SHARED_LIBS=OFF
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=$(usex compatibility-list)
-DENABLE_CUBEB=$(usex cubeb)
-DENABLE_QT=$(usex qt5)
-DENABLE_QT_TRANSLATION=$(usex qt5)
@@ -120,5 +121,7 @@ src_configure() {
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
if use compatibility-list; then
mv "${S}"/compatibility_list.json "${BUILD_DIR}"/dist/compatibility_list/ || die
fi
}