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 E46D1158087 for ; Fri, 21 Jan 2022 03:43:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24BB82BC001; Fri, 21 Jan 2022 03:43:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 935B22BC001 for ; Fri, 21 Jan 2022 03:43:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5F859342F9D for ; Fri, 21 Jan 2022 03:43:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F32BB29B for ; Fri, 21 Jan 2022 03:43:02 +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: <1642736565.9bb6cd8cb6431aaa98a883a0e672daaad5259a51.samuel.bauer@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/citra/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-emulation/citra/citra-9999.ebuild games-emulation/citra/metadata.xml X-VCS-Directories: games-emulation/citra/ X-VCS-Committer: samuel.bauer X-VCS-Committer-Name: Samuel Bauer X-VCS-Revision: 9bb6cd8cb6431aaa98a883a0e672daaad5259a51 X-VCS-Branch: dev Date: Fri, 21 Jan 2022 03:43:02 +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: 78977ff3-a1a6-497b-b47b-c55de0aae6b4 X-Archives-Hash: 0f99e02a2aa626a8e5cde4b0ff850cf3 commit: 9bb6cd8cb6431aaa98a883a0e672daaad5259a51 Author: Samuel Bauer yahoo fr> AuthorDate: Fri Jan 21 03:39:08 2022 +0000 Commit: Samuel Bauer yahoo fr> CommitDate: Fri Jan 21 03:42:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bb6cd8c games-emulation/citra: rework submodules and dependencies. always use system libfmt Signed-off-by: Samuel Bauer yahoo.fr> games-emulation/citra/citra-9999.ebuild | 33 +++++++++++++++++++++------------ games-emulation/citra/metadata.xml | 1 - 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/games-emulation/citra/citra-9999.ebuild b/games-emulation/citra/citra-9999.ebuild index 602d34179..b2e44375e 100644 --- a/games-emulation/citra/citra-9999.ebuild +++ b/games-emulation/citra/citra-9999.ebuild @@ -8,12 +8,17 @@ inherit cmake git-r3 xdg DESCRIPTION="A Nintendo 3DS Emulator" HOMEPAGE="https://citra-emu.org" EGIT_REPO_URI="https://github.com/citra-emu/citra" -EGIT_SUBMODULES=( "*" "-boost" "-catch" "-cryptopp" "-enet" "-inih" "-libressl" "-externals/dynarmic/externals/xbyak" "-zstd" ) +EGIT_SUBMODULES=( '*' + '-boost' '-catch' '-cryptopp' '-cubeb' '-enet' + '-fmt' '-inih' '-libressl' '-libusb' '-zstd' + '-externals/dynarmic/externals/fmt' + '-externals/dynarmic/externals/xbyak' +) LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="cubeb +hle-sound nls +qt5 sdl system-libfmt +telemetry video" +IUSE="cubeb +hle-sound nls +qt5 sdl +telemetry video" DEPEND=" cubeb? ( media-libs/cubeb ) @@ -29,22 +34,21 @@ DEPEND=" media-libs/libsdl2 >=dev-libs/inih-52 ) - system-libfmt? ( <=dev-libs/libfmt-8 ) video? ( media-video/ffmpeg ) >=app-arch/zstd-1.4.8 + >=dev-libs/libfmt-8 >=dev-libs/openssl-1.1 dev-cpp/catch:0 + dev-cpp/robin-map dev-libs/boost:= dev-libs/crypto++ net-libs/enet:1.3 + virtual/libusb:1 " RDEPEND="${DEPEND}" REQUIRED_USE="|| ( qt5 sdl )" src_unpack() { - if use system-libfmt; then - EGIT_SUBMODULES+=( "-fmt" "-externals/dynarmic/externals/fmt" ) - fi git-r3_src_unpack cp -a "${S}"/externals/xbyak "${S}"/externals/dynarmic/externals/ || die @@ -54,6 +58,11 @@ src_unpack() { } src_prepare() { + # Dynarmic: ensure those are unbundled + for ext in fmt catch robin-map; do + rm -rf externals/dynarmic/externals/${ext} || die + done + # Do not care about submodules wanted one are already fetched sed -i -e '/check_submodules_present()/d' CMakeLists.txt || die @@ -80,12 +89,12 @@ src_prepare() { src/{citra,citra_qt,dedicated_room,tests}/CMakeLists.txt || die sed -i -e '1ifind_package(OpenSSL 1.1)' src/{citra,citra_qt,dedicated_room,tests}/CMakeLists.txt || die - if use system-libfmt; then # Unbundle libfmt - sed -i -e '/fmt/d' externals/CMakeLists.txt || die - sed -i -e 's/fmt/&::&/' -e '1ifind_package(fmt)' \ - src/{core,citra,citra_qt,dedicated_room,input_common,tests,video_core}/CMakeLists.txt || die - sed -i -e '1ifind_package(fmt)' externals/dynarmic/src/CMakeLists.txt || die - fi + # Unbundle libfmt + sed -i -e '/fmt/d' externals/CMakeLists.txt || die + sed -i -e 's/fmt/&::&/' -e '1ifind_package(fmt)' \ + src/{core,citra,citra_qt,dedicated_room,input_common,tests,video_core}/CMakeLists.txt || die + sed -i -e '1ifind_package(fmt)' externals/dynarmic/src/CMakeLists.txt || die + sed -i -e '/^#pragma once$/a#include ' src/common/logging/log.h || die # Unbundle zstd sed -i -e 's:libzstd_static:${ZSTD_LIBRARIES}:' \ diff --git a/games-emulation/citra/metadata.xml b/games-emulation/citra/metadata.xml index 87cb3dfdc..acd89943b 100644 --- a/games-emulation/citra/metadata.xml +++ b/games-emulation/citra/metadata.xml @@ -8,7 +8,6 @@ Enables the cubeb audio backend Enable HLE sound via FFmpeg audio (AAC) decoder - Use system libfmt Enable web services (telemetry, etc.) Enable FFmpeg video dumper