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 0BCDC158086 for ; Mon, 8 Nov 2021 13:02:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 126FC2BC10F; Mon, 8 Nov 2021 13:02:36 +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 C7C212BC115 for ; Mon, 8 Nov 2021 13:02:35 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9480B342C72 for ; Mon, 8 Nov 2021 13:02:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 681551C8 for ; Mon, 8 Nov 2021 13:02:31 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1636293385.4cb2722b22da8e81c5603c91cfaff36b7a616578.andrewammerlaan@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: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 4cb2722b22da8e81c5603c91cfaff36b7a616578 X-VCS-Branch: master Date: Mon, 8 Nov 2021 13:02:31 +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: 86e6678e-af03-4442-ac25-3377629fe20a X-Archives-Hash: a61f503d128a04cf7deb4c1095b94a0c commit: 4cb2722b22da8e81c5603c91cfaff36b7a616578 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sun Nov 7 06:22:16 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Nov 7 13:56:25 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4cb2722b games-emulation/yuzu: correct deps * remove 'filter-flags' * add dev-util/glslang dep * move some deps to BDEPEND * remove libzip * opus is unbundled upstream * add licenses * EAPI 7 -> 8 Closes: https://bugs.gentoo.org/807953 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> games-emulation/yuzu/yuzu-9999.ebuild | 59 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/games-emulation/yuzu/yuzu-9999.ebuild b/games-emulation/yuzu/yuzu-9999.ebuild index 6d0bd661d..7bb3ff721 100644 --- a/games-emulation/yuzu/yuzu-9999.ebuild +++ b/games-emulation/yuzu/yuzu-9999.ebuild @@ -1,57 +1,65 @@ # Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake git-r3 flag-o-matic toolchain-funcs xdg +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" -EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' '-opus' '-SDL' ) +EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-opus' '-SDL' ) +# TODO '-libzip' when boxcat feature is reintroduced # 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, ... # TODO many submodules produce static libraries which forces to unset BUILD_SHARED_LIBS # this may be better to generate shared libraries and install them under /usr/$(get_libdir)/yuzu -LICENSE="GPL-3" +LICENSE="|| ( Apache-2.0 GPL-2+ ) 0BSD BSD GPL-2+ ISC MIT + !system-vulkan? ( Apache-2.0 )" SLOT="0" KEYWORDS="" IUSE="+boxcat +compatibility-list +cubeb discord +qt5 sdl system-vulkan webengine +webservice" -DEPEND=" - discord? ( >=dev-libs/rapidjson-1.1.0 ) +RDEPEND=" + >=app-arch/lz4-1.8:= + >=app-arch/zstd-1.5 + >=dev-libs/boost-1.73:=[context] + >=dev-libs/libfmt-8:= + >=dev-libs/openssl-1.1:= + >=media-libs/opus-1.3 + media-video/ffmpeg:= + >=sys-libs/zlib-1.2 + virtual/libusb:1 qt5? ( - >=dev-qt/qtgui-5.15 - >=dev-qt/qtwidgets-5.15 + >=dev-qt/qtcore-5.15:5 + >=dev-qt/qtgui-5.15:5 + >=dev-qt/qtwidgets-5.15:5 ) sdl? ( >=media-libs/libsdl2-2.0.16 >=dev-libs/inih-52 ) +" +DEPEND="${RDEPEND} system-vulkan? ( >=dev-util/vulkan-headers-1.2.180 ) - >=app-arch/lz4-1.8 - >=app-arch/zstd-1.5 +" +BDEPEND=" >=dev-cpp/catch-2.13:0 >=dev-cpp/nlohmann_json-3.8.0 - >=dev-libs/boost-1.73:=[context] - >=dev-libs/libfmt-8 - >=dev-libs/libzip-1.5 - >=media-libs/opus-1.3.1 - >=sys-libs/zlib-1.2 - virtual/libusb:1 + dev-util/glslang + discord? ( >=dev-libs/rapidjson-1.1.0 ) " -RDEPEND="${DEPEND}" REQUIRED_USE="boxcat? ( webservice ) || ( qt5 sdl )" PATCHES=( "${FILESDIR}"/${P}-assert.patch ) pkg_setup() { - if [ tc-is-gcc ]; then - [ "$(gcc-major-version)" -lt 11 ] && \ + 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 \ @@ -70,22 +78,11 @@ src_unpack() { } src_prepare() { - # Set yuzu dev flags - filter-flags '-*' - append-cflags '-O3 -DNDEBUG' - append-cxxflags '-O3 -DNDEBUG' - # headers is not a valid boost component sed -i -e '/find_package(Boost/{s/headers //;s/CONFIG //}' CMakeLists.txt || die # Allow skip submodule downloading - rm .gitmodules - - # unbundle opus (thx to https://github.com/Alex-Aralis/yuzu-overlay/blob/master/games-emulation/yuzu/files/unbundle-opus.patch) - sed -i -e "s!add_subdirectory(opus)!add_library(opus INTERFACE)\ntarget_include_directories(opus SYSTEM INTERFACE /usr/include/opus)\ntarget_link_libraries(opus INTERFACE /usr/$(get_libdir)/libopus.so)!" externals/CMakeLists.txt || die - - # Fix libzip detection - sed -i -e '/Libzip/s:.*:include(find-modules/FindLibzip.cmake)\n&:' externals/CMakeLists.txt || die + rm .gitmodules || die # Unbundle inih sed -i -e '/inih/d' externals/CMakeLists.txt || die