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 E688E158094 for ; Sun, 24 Jul 2022 23:13:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E3D5E1014; Sun, 24 Jul 2022 23:13:00 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ABB37E1014 for ; Sun, 24 Jul 2022 23:12:59 +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 B7BB6340F03 for ; Sun, 24 Jul 2022 23:12:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE6A3542 for ; Sun, 24 Jul 2022 23:12:56 +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: <1658703851.913e75e0e24c498c12cf369151d4230d3f42cdc0.samuel.bauer@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/citra-canary/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-emulation/citra-canary/citra-canary-9999.ebuild games-emulation/citra-canary/metadata.xml X-VCS-Directories: games-emulation/citra-canary/ X-VCS-Committer: samuel.bauer X-VCS-Committer-Name: Samuel Bauer X-VCS-Revision: 913e75e0e24c498c12cf369151d4230d3f42cdc0 X-VCS-Branch: dev Date: Sun, 24 Jul 2022 23:12:56 +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: 33a4e69f-b080-4d10-8219-b84f2ea51cb0 X-Archives-Hash: e9e0f43cd49d4d127d51b51bfea2d3ec commit: 913e75e0e24c498c12cf369151d4230d3f42cdc0 Author: Samuel Bauer yahoo fr> AuthorDate: Sun Jul 24 23:04:11 2022 +0000 Commit: Samuel Bauer yahoo fr> CommitDate: Sun Jul 24 23:04:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=913e75e0 games-emulation/citra-canary: new ebuild Signed-off-by: Samuel Bauer yahoo.fr> .../citra-canary/citra-canary-9999.ebuild | 179 +++++++++++++++++++++ games-emulation/citra-canary/metadata.xml | 15 ++ 2 files changed, 194 insertions(+) diff --git a/games-emulation/citra-canary/citra-canary-9999.ebuild b/games-emulation/citra-canary/citra-canary-9999.ebuild new file mode 100644 index 000000000..7a950802d --- /dev/null +++ b/games-emulation/citra-canary/citra-canary-9999.ebuild @@ -0,0 +1,179 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 xdg + +DESCRIPTION="A Nintendo 3DS Emulator" +HOMEPAGE="https://citra-emu.org" +EGIT_REPO_URI="https://github.com/citra-emu/citra-canary" +EGIT_SUBMODULES=( '*' + '-boost' '-catch' '-cryptopp' '-cubeb' '-enet' + '-inih' '-libressl' '-libusb' '-teakra' '-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" + +DEPEND=" + cubeb? ( media-libs/cubeb ) + !hle-sound? ( media-libs/fdk-aac ) + hle-sound? ( media-video/ffmpeg[fdk] ) + qt5? ( nls? ( dev-qt/linguist ) + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 ) + sdl? ( + media-libs/libsdl2 + >=dev-libs/inih-52 + ) + system-libfmt? ( <=dev-libs/libfmt-8 ) + video? ( media-video/ffmpeg ) + >=dev-libs/openssl-1.1 + app-arch/zstd + dev-cpp/catch:0 + dev-cpp/robin-map + dev-libs/boost:= + dev-libs/crypto++ + dev-libs/teakra + 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 + + # Do not fetch via sources because this file always changes + curl https://api.citra-emu.org/gamedb/ > "${S}"/compatibility_list.json +} + +src_prepare() { + # rename output targets + sed -i 's/\' src/common/logging/log.h || die + fi + + # Unbundle teakra + sed -i -e '/teakra/d' externals/CMakeLists.txt || die + + # Unbundle zstd + sed -i -e 's:libzstd_static:${ZSTD_LIBRARIES}:' \ + -e '1ifind_package(PkgConfig REQUIRED)\npkg_check_modules(ZSTD REQUIRED libzstd)' \ + src/common/CMakeLists.txt || die + sed -i -e '/zstd/d' externals/CMakeLists.txt || die + + # Unbundle enet + sed -i -e 's:enet:${ENET_LIBRARIES}:' \ + -e '1ifind_package(PkgConfig REQUIRED)\npkg_check_modules(ENET REQUIRED libenet)' \ + src/network/CMakeLists.txt || die + sed -i -e '/#include.*enet/{s/"//}' src/network/*cpp || die + sed -i -e '/enet/d' externals/CMakeLists.txt || die + + # Unbundle crypto++ + sed -i -e 's:cryptopp:${CRYPTOPP_LIBRARIES}:' \ + -e '1ifind_package(PkgConfig REQUIRED)\npkg_check_modules(CRYPTOPP REQUIRED libcryptopp)' \ + src/dedicated_room/CMakeLists.txt \ + src/core/CMakeLists.txt || die + sed -i -e '/cryptopp/d' externals/CMakeLists.txt || die + + # Unbundle catch + sed -i -e '1ifind_package(Catch2)' src/tests/CMakeLists.txt externals/dynarmic/tests/CMakeLists.txt || die + sed -i -e '/target_link_libraries/s/catch/Catch2::Catch2/' externals/dynarmic/tests/CMakeLists.txt || die + sed -i -e '/target_link_libraries/s/catch-single-include/Catch2::Catch2/' src/tests/CMakeLists.txt || die + sed -i -e '/catch/d' externals/CMakeLists.txt externals/dynarmic/externals/CMakeLists.txt || die + grep -rl 'include ' externals/dynarmic | xargs sed -i -e '/include/s:catch.hpp:catch/&:' || die + + # Unbundle cubeb + sed -i -e '/CUBEB/,/endif()/d' externals/CMakeLists.txt || die + if use cubeb; then + sed -i -e '$afind_package(cubeb REQUIRED)\n' CMakeLists.txt || die + fi + + # TODO unbundle xbyak (wait for 5.96 in ytree) + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=OFF + -DENABLE_CUBEB=$(usex cubeb) + -DENABLE_FFMPEG_AUDIO_DECODER=$(usex hle-sound) + -DENABLE_FFMPEG_VIDEO_DUMPER=$(usex video) + -DENABLE_QT=$(usex qt5) + -DENABLE_QT_TRANSLATION=$(use qt5 && usex nls || echo OFF) + -DENABLE_SDL2=$(usex sdl) + -DENABLE_WEB_SERVICE=$(usex telemetry) + -DGENERATE_QT_TRANSLATION=$(use qt5 && usex nls || echo OFF) + -DUSE_SYSTEM_BOOST=ON + ) + cmake_src_configure + + # This would be better in src_unpack but it would be unlinked + mv "${S}"/compatibility_list.json "${BUILD_DIR}"/dist/compatibility_list/ || die +} diff --git a/games-emulation/citra-canary/metadata.xml b/games-emulation/citra-canary/metadata.xml new file mode 100644 index 000000000..87cb3dfdc --- /dev/null +++ b/games-emulation/citra-canary/metadata.xml @@ -0,0 +1,15 @@ + + + + + Samuel Bauer + samuel.bauer@yahoo.fr + + + 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 + +