emulators/yuzu-qt5: fix Compatibility == Not Tested

yuzu embeds game compatibility list during build. It cannot be updated
on demand unlike rpcs3. So, cache the list in local-distfiles.
This commit is contained in:
Jan Beich 2021-12-31 19:52:03 +00:00
parent fb41f4077d
commit 8042b64184
3 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -qt5
MASTERDIR= ${.CURDIR}/../yuzu

View File

@ -2,6 +2,10 @@ PORTNAME= yuzu
PORTVERSION= s20211228
PORTREVISION?= 0
CATEGORIES= emulators
MASTER_SITES= https://api.yuzu-emu.org/gamedb/?dummy=/:gamedb \
LOCAL/jbeich:gamedb
DISTFILES= ${PORTNAME}/compatibility_list.json:gamedb
EXTRACT_ONLY= ${DISTFILES:N*\:gamedb:C/\:.*//}
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= 6904f055db88.patch:-p1 # https://github.com/yuzu-emu/yuzu/pull/6598 mainline-merge
@ -107,6 +111,10 @@ post-patch:
-e 's/@GIT_DESC@/${GH_TAGNAME}/' \
${WRKSRC}/src/common/scm_rev.cpp.in
post-configure:
@${CP} ${DISTFILES:M*\:gamedb:C/\:.*//:S,^,${_DISTDIR},} \
${BUILD_WRKSRC}/dist/compatibility_list/
post-patch-VAAPI-off:
@${REINPLACE_CMD} -i .nova '/pkg_check.*libva/d' \
${WRKSRC}/CMakeLists.txt

View File

@ -1,4 +1,6 @@
TIMESTAMP = 1640737537
SHA256 (yuzu/compatibility_list.json) = 0e601d6ad2ebc5b6ec9dd84bbafd0b93f24e5a1d727507dcb03e33b94a8ed8e6
SIZE (yuzu/compatibility_list.json) = 1255231
SHA256 (yuzu-emu-yuzu-s20211228-279c7bcc1_GH0.tar.gz) = 98d32aef80cb808e682a7af1ddd075b9f6ce4f6c18fb88f4541a10b3ee774b37
SIZE (yuzu-emu-yuzu-s20211228-279c7bcc1_GH0.tar.gz) = 4470528
SHA256 (yuzu-emu-mbedtls-v2.16.9-115-g8c88150ca_GH0.tar.gz) = 8cd6d075b4da0ad5fb995eb37390e2e6088be8d41ab1cdfc7e7e4256bd991450