Gentoo Archives: gentoo-commits

From: "Devan Franchini (twitch153)" <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-emulation/dolphin: dolphin-9999.ebuild dolphin-4.0.2-r4.ebuild ChangeLog dolphin-4.0.2-r3.ebuild
Date: Mon, 09 Feb 2015 00:00:15
Message-Id: 20150209000007.876A6115AB@oystercatcher.gentoo.org
1 twitch153 15/02/09 00:00:07
2
3 Modified: dolphin-9999.ebuild ChangeLog
4 Added: dolphin-4.0.2-r4.ebuild
5 Removed: dolphin-4.0.2-r3.ebuild
6 Log:
7 Modifies sed regexs to remove optional features, bug #539148
8
9 (Portage version: 2.2.16/cvs/Linux x86_64, signed Manifest commit with key A8C8FBCF)
10
11 Revision Changes Path
12 1.21 games-emulation/dolphin/dolphin-9999.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild?rev=1.21&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild?rev=1.21&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild?r1=1.20&r2=1.21
17
18 Index: dolphin-9999.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild,v
21 retrieving revision 1.20
22 retrieving revision 1.21
23 diff -u -r1.20 -r1.21
24 --- dolphin-9999.ebuild 8 Feb 2015 23:22:18 -0000 1.20
25 +++ dolphin-9999.ebuild 9 Feb 2015 00:00:07 -0000 1.21
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2015 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild,v 1.20 2015/02/08 23:22:18 twitch153 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-9999.ebuild,v 1.21 2015/02/09 00:00:07 twitch153 Exp $
31
32 EAPI=5
33
34 @@ -70,22 +70,22 @@
35
36 # Remove automatic dependencies to prevent building without flags enabled.
37 if use !alsa; then
38 - sed -i -e '/^include(FindALSA/d' CMakeLists.txt || die
39 + sed -i -e '/include(FindALSA/d' CMakeLists.txt || die
40 fi
41 if use !ao; then
42 - sed -i -e '/^check_lib(AO/d' CMakeLists.txt || die
43 + sed -i -e '/check_lib(AO/d' CMakeLists.txt || die
44 fi
45 if use !bluetooth; then
46 - sed -i -e '/^check_lib(BLUEZ/d' CMakeLists.txt || die
47 + sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die
48 fi
49 if use !openal; then
50 - sed -i -e '/^include(FindOpenAL/d' CMakeLists.txt || die
51 + sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die
52 fi
53 if use !portaudio; then
54 sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die
55 fi
56 if use !pulseaudio; then
57 - sed -i -e '/^check_lib(PULSEAUDIO/d' CMakeLists.txt || die
58 + sed -i -e '/check_lib(PULSEAUDIO/d' CMakeLists.txt || die
59 fi
60
61 # Remove ALL the bundled libraries, aside from:
62
63
64
65 1.30 games-emulation/dolphin/ChangeLog
66
67 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?rev=1.30&view=markup
68 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?rev=1.30&content-type=text/plain
69 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?r1=1.29&r2=1.30
70
71 Index: ChangeLog
72 ===================================================================
73 RCS file: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v
74 retrieving revision 1.29
75 retrieving revision 1.30
76 diff -u -r1.29 -r1.30
77 --- ChangeLog 8 Feb 2015 23:22:18 -0000 1.29
78 +++ ChangeLog 9 Feb 2015 00:00:07 -0000 1.30
79 @@ -1,6 +1,12 @@
80 # ChangeLog for games-emulation/dolphin
81 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
82 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v 1.29 2015/02/08 23:22:18 twitch153 Exp $
83 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v 1.30 2015/02/09 00:00:07 twitch153 Exp $
84 +
85 +*dolphin-4.0.2-r4 (09 Feb 2015)
86 +
87 + 09 Feb 2015; Devan Franchini <twitch153@g.o> +dolphin-4.0.2-r4.ebuild,
88 + -dolphin-4.0.2-r3.ebuild, dolphin-9999.ebuild:
89 + Modifies sed regexs to remove optional features, bug #539148
90
91 *dolphin-4.0.2-r3 (08 Feb 2015)
92 *dolphin-3.5-r1 (08 Feb 2015)
93
94
95
96 1.1 games-emulation/dolphin/dolphin-4.0.2-r4.ebuild
97
98 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r4.ebuild?rev=1.1&view=markup
99 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r4.ebuild?rev=1.1&content-type=text/plain
100
101 Index: dolphin-4.0.2-r4.ebuild
102 ===================================================================
103 # Copyright 1999-2015 Gentoo Foundation
104 # Distributed under the terms of the GNU General Public License v2
105 # $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r4.ebuild,v 1.1 2015/02/09 00:00:07 twitch153 Exp $
106
107 EAPI=5
108
109 WX_GTK_VER="2.9"
110
111 inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games
112
113 SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip"
114 KEYWORDS="~amd64"
115
116 DESCRIPTION="Gamecube and Wii game emulator"
117 HOMEPAGE="https://www.dolphin-emu.org/"
118
119 LICENSE="GPL-2"
120 SLOT="0"
121 IUSE="alsa ao bluetooth doc ffmpeg +lzo openal opengl openmp portaudio pulseaudio"
122
123 RESTRICT="mirror"
124
125 RDEPEND=">=media-libs/glew-1.6
126 <media-libs/libsfml-2.0
127 >=net-libs/miniupnpc-1.8
128 media-libs/libsdl2[haptic,joystick]
129 sys-libs/readline:=
130 x11-libs/libXext
131 x11-libs/libXrandr
132 alsa? ( media-libs/alsa-lib )
133 ao? ( media-libs/libao )
134 bluetooth? ( net-wireless/bluez )
135 ffmpeg? ( virtual/ffmpeg )
136 lzo? ( dev-libs/lzo )
137 openal? ( media-libs/openal )
138 opengl? ( virtual/opengl )
139 portaudio? ( media-libs/portaudio )
140 pulseaudio? ( media-sound/pulseaudio )
141 "
142 DEPEND="${RDEPEND}
143 app-arch/zip
144 media-gfx/nvidia-cg-toolkit
145 media-libs/freetype
146 media-libs/libsoundtouch
147 >=sys-devel/gcc-4.6.0
148 x11-libs/wxGTK:2.9
149 "
150
151 pkg_pretend() {
152
153 local ver=4.6.0
154 local msg="${PN} needs at least GCC ${ver} set to compile."
155
156 if [[ ${MERGE_TYPE} != binary ]]; then
157 if ! version_is_at_least ${ver} $(gcc-fullversion); then
158 eerror ${msg}
159 die ${msg}
160 fi
161 fi
162
163 }
164
165 src_prepare() {
166
167 # Remove automatic dependencies to prevent building without flags enabled.
168 if use !alsa; then
169 sed -i -e '/include(FindALSA/d' CMakeLists.txt || die
170 fi
171 if use !ao; then
172 sed -i -e '/check_lib(AO/d' CMakeLists.txt || die
173 fi
174 if use !bluetooth; then
175 sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die
176 fi
177 if use !openal; then
178 sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die
179 fi
180 if use !portaudio; then
181 sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die
182 fi
183 if use !pulseaudio; then
184 sed -i -e '/check_lib(PULSEAUDIO/d' CMakeLists.txt || die
185 fi
186
187 # Remove ALL the bundled libraries, aside from:
188 # - SOIL: The sources are not public.
189 # - Bochs-disasm: Don't know what it is.
190 # - CLRun: Part of OpenCL
191 # - polarssl: Currently fails the check as is.
192 mv Externals/SOIL . || die
193 mv Externals/Bochs_disasm . || die
194 mv Externals/CLRun . || die
195 mv Externals/polarssl . || die
196 rm -r Externals/* || die
197 mv polarssl Externals || die
198 mv CLRun Externals || die
199 mv Bochs_disasm Externals || die
200 mv SOIL Externals || die
201 }
202
203 src_configure() {
204
205 local mycmakeargs=(
206 "-DDOLPHIN_WC_REVISION=${PV}"
207 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
208 "-Dprefix=${GAMES_PREFIX}"
209 "-Ddatadir=${GAMES_DATADIR}/${PN}"
210 "-Dplugindir=$(games_get_libdir)/${PN}"
211 $( cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS )
212 $( cmake-utils_use openmp OPENMP )
213 )
214
215 cmake-utils_src_configure
216 }
217
218 src_compile() {
219
220 cmake-utils_src_compile
221 }
222
223 src_install() {
224
225 cmake-utils_src_install
226
227 dodoc Readme.txt
228 if use doc; then
229 dodoc -r docs/ActionReplay docs/DSP docs/WiiMote
230 fi
231
232 doicon Source/Core/DolphinWX/resources/Dolphin.xpm
233 make_desktop_entry "dolphin-emu" "Dolphin" "Dolphin" "Game;"
234
235 prepgamesdirs
236 }
237
238 pkg_postinst() {
239 # Add pax markings for hardened systems
240 pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu
241
242 if ! use portaudio; then
243 ewarn "If you want microphone capabilities in dolphin-emu, rebuild with"
244 ewarn "USE=\"portaudio\""
245 fi
246 }