Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/dolphin/
Date: Sat, 24 Oct 2020 18:23:34
Message-Id: 1603563799.d4161fcd734dbad7cedb258b4ae412b8630961e9.slyfox@gentoo
1 commit: d4161fcd734dbad7cedb258b4ae412b8630961e9
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 24 18:23:19 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 24 18:23:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4161fcd
7
8 games-emulation/dolphin: add USE=vulkan
9
10 Patch-by: Samuel BAUER
11 Package-Manager: Portage-3.0.8, Repoman-3.0.2
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 games-emulation/dolphin/dolphin-9999.ebuild | 6 +++++-
15 games-emulation/dolphin/metadata.xml | 1 +
16 2 files changed, 6 insertions(+), 1 deletion(-)
17
18 diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild
19 index 09ecec7709c..b63534d242d 100644
20 --- a/games-emulation/dolphin/dolphin-9999.ebuild
21 +++ b/games-emulation/dolphin/dolphin-9999.ebuild
22 @@ -24,7 +24,7 @@ HOMEPAGE="https://www.dolphin-emu.org/"
23
24 LICENSE="GPL-2"
25 SLOT="0"
26 -IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile pulseaudio +qt5 systemd upnp"
27 +IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile pulseaudio +qt5 systemd upnp vulkan"
28
29 RDEPEND="
30 dev-libs/hidapi:0=
31 @@ -130,6 +130,9 @@ src_prepare() {
32
33 l10n_find_plocales_changes "Languages/po/" "" '.po'
34 l10n_for_each_disabled_locale_do remove_locale
35 +
36 + # About 50% compile-time speedup
37 + use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt
38 }
39
40 src_configure() {
41 @@ -146,6 +149,7 @@ src_configure() {
42 -DENABLE_PULSEAUDIO=$(usex pulseaudio)
43 -DENABLE_QT=$(usex qt5)
44 -DENABLE_SDL=OFF # not supported: #666558
45 + -DENABLE_VULKAN=$(usex vulkan)
46 -DFASTLOG=$(usex log)
47 -DOPROFILING=$(usex profile)
48 -DUSE_DISCORD_PRESENCE=$(usex discord-presence)
49
50 diff --git a/games-emulation/dolphin/metadata.xml b/games-emulation/dolphin/metadata.xml
51 index 6c45a696633..965b67caf1e 100644
52 --- a/games-emulation/dolphin/metadata.xml
53 +++ b/games-emulation/dolphin/metadata.xml
54 @@ -9,6 +9,7 @@
55 <flag name="evdev">Enable evdev input support</flag>
56 <flag name="log">Increase logging output</flag>
57 <flag name="lto">Add support for link-time optimizations.</flag>
58 + <flag name="vulkan">Enable support for Vulkan-based video backend.</flag>
59 </use>
60 <longdescription lang="en">
61 Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor