mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
games-emulation/yuzu: compatibility list: add flag
Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
This commit is contained in:
@@ -2,12 +2,13 @@
|
|||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<maintainer type="person">
|
||||||
<name>Samuel Bauer</name>
|
<name>mazes-80</name>
|
||||||
<email>samuel.bauer@yahoo.fr</email>
|
<email>mazes-80@github.com</email>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
<flag name="boxcat">Enable the Boxcat service, a yuzu high-level implementation of BCAT</flag>
|
<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="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="discord">Enables Discord Rich Presence</flag>
|
||||||
<flag name="webengine">Use QtWebEngine for web applet implementation</flag>
|
<flag name="webengine">Use QtWebEngine for web applet implementation</flag>
|
||||||
<flag name="webservice">Enable web services (telemetry, etc.)</flag>
|
<flag name="webservice">Enable web services (telemetry, etc.)</flag>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus'
|
|||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE="+boxcat +cubeb discord +qt5 sdl webengine +webservice"
|
IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl webengine +webservice"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
discord? ( >=dev-libs/rapidjson-1.1.0 )
|
discord? ( >=dev-libs/rapidjson-1.1.0 )
|
||||||
@@ -58,7 +58,7 @@ src_unpack() {
|
|||||||
git-r3_src_unpack
|
git-r3_src_unpack
|
||||||
|
|
||||||
# Do not fetch via sources because this file always changes
|
# 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() {
|
src_prepare() {
|
||||||
@@ -107,6 +107,7 @@ src_prepare() {
|
|||||||
src_configure() {
|
src_configure() {
|
||||||
local -a mycmakeargs=(
|
local -a mycmakeargs=(
|
||||||
-DBUILD_SHARED_LIBS=OFF
|
-DBUILD_SHARED_LIBS=OFF
|
||||||
|
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=$(usex compatibility-list)
|
||||||
-DENABLE_CUBEB=$(usex cubeb)
|
-DENABLE_CUBEB=$(usex cubeb)
|
||||||
-DENABLE_QT=$(usex qt5)
|
-DENABLE_QT=$(usex qt5)
|
||||||
-DENABLE_QT_TRANSLATION=$(usex qt5)
|
-DENABLE_QT_TRANSLATION=$(usex qt5)
|
||||||
@@ -120,5 +121,7 @@ src_configure() {
|
|||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
|
|
||||||
# This would be better in src_unpack but it would be unlinked
|
# 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user