commit:     7daa88b5f535f881a587ccc6afaf3e46888520f3
Author:     Samuel BAUER <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Tue Mar 23 22:18:23 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Mar 28 19:11:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7daa88b5

games-emulation/dolphin: refresh live ebuild

Avoid -durty suffix to allow more netplay sessions.
Make vulkan-loader optional.

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 games-emulation/dolphin/dolphin-9999.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/games-emulation/dolphin/dolphin-9999.ebuild 
b/games-emulation/dolphin/dolphin-9999.ebuild
index 14b329e33b8..6bf77bf6c3d 100644
--- a/games-emulation/dolphin/dolphin-9999.ebuild
+++ b/games-emulation/dolphin/dolphin-9999.ebuild
@@ -11,6 +11,7 @@ inherit cmake desktop xdg-utils l10n pax-utils
 if [[ ${PV} == *9999 ]]
 then
        EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin";
+       EGIT_SUBMODULES=()
        inherit git-r3
 else
        inherit vcs-snapshot
@@ -69,7 +70,7 @@ BDEPEND="
 # vulkan-loader required for vulkan backend which can be selected
 # at runtime.
 RDEPEND="${RDEPEND}
-       media-libs/vulkan-loader"
+       vulkan? ( media-libs/vulkan-loader )"
 
 src_prepare() {
        cmake_src_prepare
@@ -131,8 +132,11 @@ src_prepare() {
        l10n_find_plocales_changes "Languages/po/" "" '.po'
        l10n_for_each_disabled_locale_do remove_locale
 
-        # About 50% compile-time speedup
+       # About 50% compile-time speedup
        use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt
+
+       # Remove dirty suffix: needed for netplay
+       sed -i -e 's/--dirty/&=""/' CMakeLists.txt
 }
 
 src_configure() {

Reply via email to