commit:     5acf308c9431a30925d0381398391c0bb806d390
Author:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Fri Apr 30 01:09:17 2021 +0000
Commit:     Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Fri Apr 30 01:09:17 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5acf308c

games-emulation/yuzu: unbundle vulkan-headers

Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>

 games-emulation/yuzu/yuzu-9999.ebuild | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/games-emulation/yuzu/yuzu-9999.ebuild 
b/games-emulation/yuzu/yuzu-9999.ebuild
index 9ffff3184..ae1aac907 100644
--- a/games-emulation/yuzu/yuzu-9999.ebuild
+++ b/games-emulation/yuzu/yuzu-9999.ebuild
@@ -2,23 +2,18 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-# PYTHON_COMPAT=( python2_7 )
 
-#inherit cmake git-r3 flag-o-matic python-any-r1 toolchain-funcs xdg
 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' )
-# TODO '-Vulkan-Headers' need to fix API in code
+EGIT_SUBMODULES=( '*' '-ffmpeg' '-inih' '-libressl' '-libusb' '-libzip' 
'-opus' '-SDL' '-Vulkan-Headers' )
 # 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
-# TODO python2 code should be needed only for submodules test
-#      until verified keep track of python specific ebuild stuffs as comment
 
 LICENSE="GPL-3"
 SLOT="0"
@@ -44,6 +39,7 @@ 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
@@ -89,7 +85,8 @@ src_prepare() {
        # 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
+       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
+       sed -i -e '/VK_ERROR_INCOMPATIBLE_VERSION_KHR/d' 
src/video_core/vulkan_common/vulkan_wrapper.cpp
 
        # 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

Reply via email to