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, 28 Jul 2018 17:25:42
Message-Id: 1532798728.97a3987ca11005a9a5291d5f92f84edd4dfc88f1.slyfox@gentoo
1 commit: 97a3987ca11005a9a5291d5f92f84edd4dfc88f1
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 28 17:25:14 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 28 17:25:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a3987c
7
8 games-emulation/dolphin: unconditionally disable llvm, bug #594940
9
10 llvm is used only for debug disassembly and is not detected
11 by cmake scripts for various reasons.
12
13 Let's sort llvm detection upstream first and restore downstream later.
14
15 Reported-by: Michał Górny
16 Closes: https://bugs.gentoo.org/594940
17 Package-Manager: Portage-2.3.43, Repoman-2.3.10
18
19 games-emulation/dolphin/dolphin-5.0.ebuild | 12 +++++++-----
20 games-emulation/dolphin/dolphin-9999.ebuild | 7 ++-----
21 games-emulation/dolphin/metadata.xml | 1 -
22 3 files changed, 9 insertions(+), 11 deletions(-)
23
24 diff --git a/games-emulation/dolphin/dolphin-5.0.ebuild b/games-emulation/dolphin/dolphin-5.0.ebuild
25 index 908b571cf42..491d92991be 100644
26 --- a/games-emulation/dolphin/dolphin-5.0.ebuild
27 +++ b/games-emulation/dolphin/dolphin-5.0.ebuild
28 @@ -17,7 +17,9 @@ HOMEPAGE="https://www.dolphin-emu.org/"
29
30 LICENSE="GPL-2"
31 SLOT="0"
32 -IUSE="alsa ao bluetooth doc egl +evdev ffmpeg libav llvm log lto openal +pch portaudio profile pulseaudio qt5 sdl upnp +wxwidgets"
33 +IUSE="alsa ao bluetooth doc egl +evdev ffmpeg libav log lto openal +pch portaudio profile pulseaudio qt5 sdl upnp +wxwidgets"
34 +
35 +RESTRICT=test
36
37 RDEPEND="
38 >=media-libs/libsfml-2.1
39 @@ -44,7 +46,6 @@ RDEPEND="
40 libav? ( media-video/libav:= )
41 !libav? ( media-video/ffmpeg:= )
42 )
43 - llvm? ( sys-devel/llvm:* )
44 openal? (
45 media-libs/openal
46 media-libs/libsoundtouch
47 @@ -89,9 +90,10 @@ src_prepare() {
48 if use !bluetooth; then
49 sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die
50 fi
51 - if use !llvm; then
52 - sed -i -e '/include(FindLLVM/d' CMakeLists.txt || die
53 - fi
54 +
55 + # Unconditionally disable LLVM disassembler.
56 + sed -i -e '/include(FindLLVM/d' CMakeLists.txt || die
57 +
58 if use !openal; then
59 sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die
60 fi
61
62 diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild
63 index de76dd90ee6..b8b2dd91a85 100644
64 --- a/games-emulation/dolphin/dolphin-9999.ebuild
65 +++ b/games-emulation/dolphin/dolphin-9999.ebuild
66 @@ -22,7 +22,7 @@ HOMEPAGE="https://www.dolphin-emu.org/"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 -IUSE="alsa ao bluetooth discord-presence doc egl +evdev ffmpeg libav llvm log lto openal portaudio profile pulseaudio +qt5 sdl systemd upnp"
71 +IUSE="alsa ao bluetooth discord-presence doc egl +evdev ffmpeg libav log lto openal portaudio profile pulseaudio +qt5 sdl systemd upnp"
72
73 RDEPEND="
74 >=media-libs/libsfml-2.1
75 @@ -52,7 +52,6 @@ RDEPEND="
76 libav? ( media-video/libav:= )
77 !libav? ( media-video/ffmpeg:= )
78 )
79 - llvm? ( sys-devel/llvm:* )
80 openal? (
81 media-libs/openal
82 media-libs/libsoundtouch
83 @@ -89,9 +88,6 @@ src_prepare() {
84 if use !bluetooth; then
85 sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die
86 fi
87 - if use !llvm; then
88 - sed -i -e '/include(FindLLVM/d' CMakeLists.txt || die
89 - fi
90 if use !openal; then
91 sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die
92 fi
93 @@ -152,6 +148,7 @@ src_configure() {
94 -DOPROFILING=$(usex profile)
95
96 -DENABLE_EVDEV=$(usex evdev)
97 + -DENABLE_LLVM=OFF
98 -DENABLE_LTO=$(usex lto)
99 -DENABLE_QT=$(usex qt5)
100 -DENABLE_SDL=$(usex sdl)
101
102 diff --git a/games-emulation/dolphin/metadata.xml b/games-emulation/dolphin/metadata.xml
103 index 5a7e53ca6e4..34a2a16ae8e 100644
104 --- a/games-emulation/dolphin/metadata.xml
105 +++ b/games-emulation/dolphin/metadata.xml
106 @@ -8,7 +8,6 @@
107 <flag name="discord-presence">Enables Discord Rich Presence, show the current game on Discord</flag>
108 <flag name="egl">Enable EGL support</flag>
109 <flag name="evdev">Enable evdev input support</flag>
110 - <flag name="llvm">Enable the LLVM-based disassembler for debugger mode</flag>
111 <flag name="log">Increase logging output</flag>
112 <flag name="lto">Add support for link-time optimizations.</flag>
113 </use>