From: "Samuel Bauer" <samuel.bauer@yahoo.fr>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/yuzu/
Date: Wed, 4 Aug 2021 00:30:20 +0000 (UTC) [thread overview]
Message-ID: <1628036939.4c7f4706fd69507963a706f5f15cf43d0f97e4de.samuel.bauer@gentoo> (raw)
commit: 4c7f4706fd69507963a706f5f15cf43d0f97e4de
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Wed Aug 4 00:28:59 2021 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Wed Aug 4 00:28:59 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4c7f4706
games-emulation/yuzu: now defaults to vulkan-headers 1.2.180
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/yuzu/yuzu-9999.ebuild | 30 ++++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/games-emulation/yuzu/yuzu-9999.ebuild b/games-emulation/yuzu/yuzu-9999.ebuild
index 9a6f4bd8f..8d51a6449 100644
--- a/games-emulation/yuzu/yuzu-9999.ebuild
+++ b/games-emulation/yuzu/yuzu-9999.ebuild
@@ -8,7 +8,7 @@ inherit cmake git-r3 flag-o-matic toolchain-funcs xdg
DESCRIPTION="An emulator for Nintendo Switch"
HOMEPAGE="https://yuzu-emu.org"
EGIT_REPO_URI="https://github.com/yuzu-emu/yuzu"
-EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus' '-SDL' '-Vulkan-Headers' )
+EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus' '-SDL' )
# TODO '-xbyak' wait for bump in tree
# TODO cubeb auto-links to jack, pulse, alsa .., allow determining cubeb output
# media-libs/cubeb would benefit to a lot of packages: dolphin-emu, firefox, citra, self, ...
@@ -18,7 +18,7 @@ EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus'
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
-IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl webengine +webservice"
+IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl system-vulkan webengine +webservice"
DEPEND="
discord? ( >=dev-libs/rapidjson-1.1.0 )
@@ -30,6 +30,9 @@ DEPEND="
>=media-libs/libsdl2-2.0.14
>=dev-libs/inih-52
)
+ system-vulkan? (
+ >=dev-util/vulkan-headers-1.2.180
+ )
>=app-arch/lz4-1.8
>=app-arch/zstd-1.5
>=dev-cpp/catch-2.13:0
@@ -39,22 +42,27 @@ DEPEND="
>=dev-libs/libzip-1.5
>=media-libs/opus-1.3.1
>=sys-libs/zlib-1.2
- dev-util/vulkan-headers
virtual/libusb:1
"
-# >=dev-libs/xbyak-5.96
RDEPEND="${DEPEND}"
REQUIRED_USE="boxcat? ( webservice ) || ( qt5 sdl )"
PATCHES=( "${FILESDIR}"/${P}-assert.patch )
pkg_setup() {
- if [ tc-is-gcc -a $(gcc-major-version) -lt 10 ]; then
- die "You need gcc version 10 or clang to compile this package"
+ if [ tc-is-gcc ]; then
+ [ "$(gcc-major-version)" -lt 11 ] && \
+ die "You need gcc version 11 or clang to compile this package"
fi
+ grep -q 'ThreadEngineStarter<void>' /usr/include/qt5/QtConcurrent/qtconcurrentthreadengine.h \
+ || die "add user patch for dev-qt/qtconcurrent: https://github.com/qt/qtbase/commit/659f7a06e91c04b239e3f4c0bcfccbe3581af1c3.diff"
}
src_unpack() {
+ if use system-vulkan; then
+ EGIT_SUBMODULES+=('-Vulkan-Headers')
+ fi
+
git-r3_src_unpack
# Do not fetch via sources because this file always changes
@@ -88,9 +96,10 @@ src_prepare() {
# Unbundle xbyak ( uncomment when xbyak version is ok or never as it is only headers )
# sed -i -e '/target_include_directories(xbyak/s:./xbyak/xbyak:/usr/include/xbyak/:' externals/CMakeLists.txt
- # Unbundle vulkan headers
- sed -i -e 's:../../externals/Vulkan-Headers/include:/usr/include/vulkan/:' src/video_core/CMakeLists.txt src/yuzu/CMakeLists.txt src/yuzu_cmd/CMakeLists.txt || die
- sed -i -e '/VK_ERROR_INCOMPATIBLE_VERSION_KHR/d' src/video_core/vulkan_common/vulkan_wrapper.cpp || die
+ if use system-vulkan; then # Unbundle vulkan headers
+ sed -i -e 's:../../externals/Vulkan-Headers/include:/usr/include/vulkan/:' src/video_core/CMakeLists.txt src/yuzu/CMakeLists.txt src/yuzu_cmd/CMakeLists.txt || die
+ sed -i -e '/VK_ERROR_INCOMPATIBLE_VERSION_KHR/d' src/video_core/vulkan_common/vulkan_wrapper.cpp || die
+ fi
# Unbundle discord rapidjson
sed -i '/NOT RAPIDJSONTEST/,/endif(NOT RAPIDJSONTEST)/d;/find_file(RAPIDJSON/d;s:\${RAPIDJSON}:"/usr/include/rapidjson":' externals/discord-rpc/CMakeLists.txt || die
@@ -120,10 +129,11 @@ src_configure() {
-DENABLE_SDL2=$(usex sdl)
-DENABLE_WEB_SERVICE=$(usex webservice)
-DUSE_DISCORD_PRESENCE=$(usex discord)
- -DYUZU_ALLOW_SYSTEM_SDL2=$(usex sdl)
-DYUZU_ENABLE_BOXCAT=$(usex boxcat)
+ -DYUZU_USE_EXTERNAL_SDL2=OFF
-DYUZU_USE_QT_WEB_ENGINE=$(usex webengine)
)
+
cmake_src_configure
# This would be better in src_unpack but it would be unlinked
next reply other threads:[~2021-08-04 0:30 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-04 0:30 Samuel Bauer [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-08 6:05 [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/yuzu/ Takuya Wakazono
2024-01-03 19:55 Moritz Brunner
2024-01-03 19:55 Moritz Brunner
2023-09-28 6:16 Samuel Bauer
2023-09-01 19:13 Samuel Bauer
2023-07-13 6:46 Samuel Bauer
2023-07-04 20:36 Samuel Bauer
2023-07-03 16:19 Samuel Bauer
2023-07-03 15:53 Samuel Bauer
2023-06-26 19:13 Henri Gasc
2023-06-15 13:03 YiFei Zhu
2023-02-14 11:32 Samuel Bauer
2023-02-14 11:11 Samuel Bauer
2023-02-13 11:28 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2023-02-13 11:19 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2023-02-13 0:10 Samuel Bauer
2023-02-05 18:26 Samuel Bauer
2023-02-05 18:15 Samuel Bauer
2023-02-02 20:02 Artemis Everfree
2023-02-02 15:14 Samuel Bauer
2022-12-21 10:03 Samuel Bauer
2022-12-21 10:03 Samuel Bauer
2022-12-21 4:23 Samuel Bauer
2022-12-19 22:42 Samuel Bauer
2022-11-13 1:06 Samuel Bauer
2022-10-12 12:03 Samuel Bauer
2022-09-09 13:49 Samuel Bauer
2022-09-08 10:24 Andrew Ammerlaan
2022-08-08 11:04 Samuel Bauer
2022-08-04 10:05 Samuel Bauer
2022-08-04 10:05 Samuel Bauer
2022-07-26 22:26 Samuel Bauer
2022-07-26 2:20 Samuel Bauer
2022-07-24 23:12 Samuel Bauer
2022-06-07 13:09 Samuel Bauer
2022-01-21 3:31 Samuel Bauer
2022-01-16 4:03 Samuel Bauer
2022-01-08 0:25 Samuel Bauer
2021-11-07 13:56 Anna Vyalkova
2021-10-06 8:14 Samuel Bauer
2021-08-20 22:21 Samuel Bauer
2021-08-04 0:36 Samuel Bauer
2021-07-13 1:52 Samuel Bauer
2021-06-26 1:16 Samuel Bauer
2021-06-05 0:57 Samuel Bauer
2021-05-30 19:21 Samuel Bauer
2021-05-30 19:06 Samuel Bauer
2021-05-30 18:55 Samuel Bauer
2021-05-25 18:24 Samuel Bauer
2021-05-16 13:50 Samuel Bauer
2021-05-03 16:41 Samuel Bauer
2021-04-30 1:10 Samuel Bauer
2021-04-29 14:19 Samuel Bauer
2021-04-29 12:53 Samuel Bauer
2021-04-28 23:34 Samuel Bauer
2021-04-28 23:11 Samuel Bauer
2021-04-28 20:09 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1628036939.4c7f4706fd69507963a706f5f15cf43d0f97e4de.samuel.bauer@gentoo \
--to=samuel.bauer@yahoo.fr \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox