From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 528A1139360 for ; Sat, 7 Aug 2021 17:48:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 096DCE089A; Sat, 7 Aug 2021 17:48:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A27C4E087F for ; Sat, 7 Aug 2021 17:48:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 67392342C6E for ; Sat, 7 Aug 2021 17:48:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EEE7385B for ; Sat, 7 Aug 2021 17:47:59 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1628036939.4c7f4706fd69507963a706f5f15cf43d0f97e4de.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/yuzu/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-emulation/yuzu/yuzu-9999.ebuild X-VCS-Directories: games-emulation/yuzu/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 4c7f4706fd69507963a706f5f15cf43d0f97e4de X-VCS-Branch: master Date: Sat, 7 Aug 2021 17:47:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7c2a40ca-615c-4050-b8c9-c8c2774bbed9 X-Archives-Hash: 233b6c22b997c35e371cc076789405e0 commit: 4c7f4706fd69507963a706f5f15cf43d0f97e4de Author: Samuel Bauer yahoo fr> AuthorDate: Wed Aug 4 00:28:59 2021 +0000 Commit: Florian Schmaus gentoo org> 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 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' /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