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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A4570158020 for ; Mon, 19 Dec 2022 22:42:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4F27E0871; Mon, 19 Dec 2022 22:42:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6BA6E0871 for ; Mon, 19 Dec 2022 22:42:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DEE33341036 for ; Mon, 19 Dec 2022 22:42:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C0D66F8 for ; Mon, 19 Dec 2022 22:42:05 +0000 (UTC) From: "Samuel Bauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Samuel Bauer" Message-ID: <1671489490.c5fdfc1295e1db5b4957286a18fe9022c770d83e.samuel.bauer@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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: samuel.bauer X-VCS-Committer-Name: Samuel Bauer X-VCS-Revision: c5fdfc1295e1db5b4957286a18fe9022c770d83e X-VCS-Branch: dev Date: Mon, 19 Dec 2022 22:42:05 +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: eecef7cc-4cff-4d89-ad12-98dbfd53be99 X-Archives-Hash: c0ec605d6e8d0d90929d3d9090fe75c3 commit: c5fdfc1295e1db5b4957286a18fe9022c770d83e Author: Samuel Bauer yahoo fr> AuthorDate: Mon Dec 19 22:38:10 2022 +0000 Commit: Samuel Bauer yahoo fr> CommitDate: Mon Dec 19 22:38:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c5fdfc12 games-emulation/yuzu-9999: rework unbundlings, re-bundle fmt and sirit Signed-off-by: Samuel Bauer yahoo.fr> games-emulation/yuzu/yuzu-9999.ebuild | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/games-emulation/yuzu/yuzu-9999.ebuild b/games-emulation/yuzu/yuzu-9999.ebuild index 05423ff8b..051b2b822 100644 --- a/games-emulation/yuzu/yuzu-9999.ebuild +++ b/games-emulation/yuzu/yuzu-9999.ebuild @@ -8,7 +8,7 @@ inherit cmake git-r3 toolchain-funcs xdg DESCRIPTION="An emulator for Nintendo Switch" HOMEPAGE="https://yuzu-emu.org" EGIT_REPO_URI="https://github.com/yuzu-emu/yuzu-mainline" -EGIT_SUBMODULES=( '-*' 'dynarmic' 'xbyak' ) +EGIT_SUBMODULES=( '-*' 'dynarmic' 'sirit' 'xbyak' ) # Dynarmic is not intended to be generic, it is tweaked to fit emulated processor # TODO wait 'xbyak' waiting version bump. see #860816 @@ -27,7 +27,6 @@ RDEPEND=" >=net-libs/enet-1.3 app-arch/lz4:= dev-libs/boost:=[context] - dev-libs/sirit media-libs/opus sys-libs/zlib virtual/libusb:1 @@ -93,9 +92,8 @@ src_prepare() { rm .gitmodules || die # Unbundle inih - sed -i -e '/inih/d' externals/CMakeLists.txt || die - sed -i -e '1afind_package(PkgConfig REQUIRED)\npkg_check_modules(INIH REQUIRED INIReader)' \ - -e '/target_link_libraries/s/inih/${INIH_LIBRARIES}/' src/yuzu_cmd/CMakeLists.txt || die + sed -i -e '/^if.*inih/,/^endif()/d' externals/CMakeLists.txt || die + sed -i -e '1afind_package(PkgConfig REQUIRED)\npkg_check_modules(INIH REQUIRED INIReader)' src/yuzu_cmd/CMakeLists.txt || die sed -i -e 's:inih/cpp/::' src/yuzu_cmd/config.cpp || die if use system-vulkan; then # Unbundle vulkan headers @@ -115,7 +113,7 @@ src_prepare() { src/common/scm_rev.cpp.in || die if ! use discord; then - sed -i -e '/discord-rpc/d' externals/CMakeLists.txt || die + sed -i -e '/^if.*discord-rpc/,/^endif()/d' externals/CMakeLists.txt || die else # Unbundle discord rapidjson sed -i '/NOT RAPIDJSONTEST/,/endif(NOT RAPIDJSONTEST)/d;/find_file(RAPIDJSON/d;s:\${RAPIDJSON}:"/usr/include/rapidjson":' \ @@ -124,21 +122,20 @@ src_prepare() { # Unbundle cubeb use cubeb && sed -i '$afind_package(Threads REQUIRED)' CMakeLists.txt || die - sed -i '/cubeb/d' externals/CMakeLists.txt || die - - # Unbundle sirit - sed -i '/sirit/d' externals/CMakeLists.txt || die + sed -i '/^if.*cubeb/,/^endif()/d' externals/CMakeLists.txt || die # Unbundle cpp-httplib sed -i -e '/^ # httplib/,/^ endif()/d' externals/CMakeLists.txt || die # Unbundle enet - sed -i -e '/enet/d' externals/CMakeLists.txt || die + sed -i -e '/^if.*enet/,/^endif()/d' externals/CMakeLists.txt || die sed -i -e '/enet\/enet\.h/{s/"//}' src/network/network.cpp || die # LZ4 temporary fix: https://github.com/yuzu-emu/yuzu/pull/9054/commits/a8021f5a18bc5251aef54468fa6033366c6b92d9 sed -i 's/lz4::lz4/lz4/' src/common/CMakeLists.txt || die + # libfmt >= 9 + sed -i '/fmt.*REQUIRED/d' CMakeLists.txt || die cmake_src_prepare } @@ -146,16 +143,15 @@ src_configure() { local -a mycmakeargs=( # Libraries are private and rely on circular dependency resolution. -DBUILD_SHARED_LIBS=OFF # dynarmic - -DDYNARMIC_NO_BUNDLED_ROBIN_MAP=ON -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=$(usex compatibility-list) -DENABLE_CUBEB=$(usex cubeb) -DENABLE_QT=$(usex qt5) -DENABLE_QT_TRANSLATION=$(usex qt5) -DENABLE_SDL2=$(usex sdl) -DENABLE_WEB_SERVICE=$(usex webservice) + -DSIRIT_USE_SYSTEM_SPIRV_HEADERS=ON -DUSE_DISCORD_PRESENCE=$(usex discord) -DYUZU_TESTS=$(usex test) - -DYUZU_USE_BUNDLED_OPUS=OFF -DYUZU_USE_EXTERNAL_SDL2=OFF -DYUZU_USE_QT_WEB_ENGINE=$(usex webengine) )