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-4.0-r2.ebuild dolphin-4.0.2-r7.ebuild ChangeLog dolphin-4.0-r1.ebuild dolphin-4.0.2-r6.ebuild
Date: Sat, 02 May 2015 16:50:06
Message-Id: 20150502165001.1599F9A8@oystercatcher.gentoo.org
1 twitch153 15/05/02 16:50:01
2
3 Modified: ChangeLog
4 Added: dolphin-4.0-r2.ebuild dolphin-4.0.2-r7.ebuild
5 Removed: dolphin-4.0-r1.ebuild dolphin-4.0.2-r6.ebuild
6 Log:
7 Adds patching to CMake build system for FindX11 if >=cmake-3.2, bug #548384
8
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key A8C8FBCF)
10
11 Revision Changes Path
12 1.37 games-emulation/dolphin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?rev=1.37&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?rev=1.37&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/ChangeLog?r1=1.36&r2=1.37
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v
21 retrieving revision 1.36
22 retrieving revision 1.37
23 diff -u -r1.36 -r1.37
24 --- ChangeLog 2 May 2015 16:43:42 -0000 1.36
25 +++ ChangeLog 2 May 2015 16:50:01 -0000 1.37
26 @@ -1,6 +1,13 @@
27 # ChangeLog for games-emulation/dolphin
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v 1.36 2015/05/02 16:43:42 twitch153 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/ChangeLog,v 1.37 2015/05/02 16:50:01 twitch153 Exp $
31 +
32 +*dolphin-4.0-r2 (02 May 2015)
33 +*dolphin-4.0.2-r7 (02 May 2015)
34 +
35 + 02 May 2015; Devan Franchini <twitch153@g.o> +dolphin-4.0-r2.ebuild,
36 + +dolphin-4.0.2-r7.ebuild, -dolphin-4.0-r1.ebuild, -dolphin-4.0.2-r6.ebuild:
37 + Adds patching to CMake build system for FindX11 if >=cmake-3.2, bug #548384
38
39 02 May 2015; Devan Franchini <twitch153@g.o> -dolphin-3.5-r1.ebuild:
40 Removes dolphin-3.5-r1 from tree
41
42
43
44 1.1 games-emulation/dolphin/dolphin-4.0-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: dolphin-4.0-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-4.0-r2.ebuild,v 1.1 2015/05/02 16:50:01 twitch153 Exp $
54
55 EAPI=5
56
57 WX_GTK_VER="2.9"
58
59 inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games
60
61 SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip -> ${P}.zip"
62 KEYWORDS="~amd64"
63
64 DESCRIPTION="Gamecube and Wii game emulator"
65 HOMEPAGE="https://www.dolphin-emu.org/"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 IUSE="alsa ao bluetooth doc ffmpeg +lzo openal opengl openmp portaudio pulseaudio"
70
71 RESTRICT="mirror"
72
73 RDEPEND=">=media-libs/glew-1.6
74 >=media-libs/libsdl-1.2[joystick]
75 <media-libs/libsfml-2.0
76 >=net-libs/miniupnpc-1.8
77 sys-libs/readline:=
78 x11-libs/libXext
79 x11-libs/libXrandr
80 alsa? ( media-libs/alsa-lib )
81 ao? ( media-libs/libao )
82 bluetooth? ( net-wireless/bluez )
83 ffmpeg? ( virtual/ffmpeg )
84 lzo? ( dev-libs/lzo )
85 openal? ( media-libs/openal )
86 opengl? ( virtual/opengl )
87 portaudio? ( media-libs/portaudio )
88 pulseaudio? ( media-sound/pulseaudio )
89 "
90 DEPEND="${RDEPEND}
91 app-arch/zip
92 media-gfx/nvidia-cg-toolkit
93 media-libs/freetype
94 media-libs/libsoundtouch
95 >=sys-devel/gcc-4.6.0
96 x11-libs/wxGTK:2.9
97 "
98
99 pkg_pretend() {
100
101 local ver=4.6.0
102 local msg="${PN} needs at least GCC ${ver} set to compile."
103
104 if [[ ${MERGE_TYPE} != binary ]]; then
105 if ! version_is_at_least ${ver} $(gcc-fullversion); then
106 eerror ${msg}
107 die ${msg}
108 fi
109 fi
110
111 }
112
113 src_prepare() {
114
115 # Remove automatic dependencies to prevent building without flags enabled.
116 if use !alsa; then
117 sed -i -e '^/include(FindALSA/d' CMakeLists.txt || die
118 fi
119 if use !ao; then
120 sed -i -e '/^check_lib(AO/d' CMakeLists.txt || die
121 fi
122 if use !bluetooth; then
123 sed -i -e '/^check_lib(BLUEZ/d' CMakeLists.txt || die
124 fi
125 if use !openal; then
126 sed -i -e '/^include(FindOpenAL/d' CMakeLists.txt || die
127 fi
128 if use !portaudio; then
129 sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die
130 fi
131 if use !pulseaudio; then
132 sed -i -e '/^check_lib(PULSEAUDIO/d' CMakeLists.txt || die
133 fi
134
135 # Remove ALL the bundled libraries, aside from:
136 # - SOIL: The sources are not public.
137 # - Bochs-disasm: Don't know what it is.
138 # - CLRun: Part of OpenCL
139 # - polarssl: Currently fails the check as is.
140 mv Externals/SOIL . || die
141 mv Externals/Bochs_disasm . || die
142 mv Externals/CLRun . || die
143 mv Externals/polarssl . || die
144 rm -r Externals/* || die
145 mv polarssl Externals || die
146 mv CLRun Externals || die
147 mv Bochs_disasm Externals || die
148 mv SOIL Externals || die
149
150 # Add call for FindX11 as FindOpenGL does not include it implicitly
151 # anymore for >=cmake-3.2. For more info, see:
152 # https://public.kitware.com/Bug/print_bug_page.php?bug_id=15268
153 if has_version ">=dev-util/cmake-3.2"; then
154 sed -i -e '/if(NOT ANDROID)/a include(FindX11)' CMakeLists.txt || die
155
156 # Fix syntax warnings in FindMiniupnpc.cmake
157 sed -i -e 's/\"\"/\\\"\\\"/g' CMakeTests/FindMiniupnpc.cmake || die
158 fi
159 }
160
161 src_configure() {
162
163 local mycmakeargs=(
164 "-DDOLPHIN_WC_REVISION=${PV}"
165 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
166 "-Dprefix=${GAMES_PREFIX}"
167 "-Ddatadir=${GAMES_DATADIR}/${PN}"
168 "-Dplugindir=$(games_get_libdir)/${PN}"
169 $( cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS )
170 $( cmake-utils_use openmp OPENMP )
171 )
172
173 cmake-utils_src_configure
174 }
175
176 src_compile() {
177
178 cmake-utils_src_compile
179 }
180
181 src_install() {
182
183 cmake-utils_src_install
184
185 dodoc Readme.txt
186 if use doc; then
187 dodoc -r docs/ActionReplay docs/DSP docs/WiiMote
188 fi
189
190 doicon Source/Core/DolphinWX/resources/Dolphin.xpm
191 make_desktop_entry "dolphin-emu" "Dolphin" "Dolphin" "Game;"
192
193 prepgamesdirs
194 }
195
196 pkg_postinst() {
197 # Add pax markings for hardened systems
198 pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu
199
200 if ! use portaudio; then
201 ewarn "If you want microphone capabilities in dolphin-emu, rebuild with"
202 ewarn "USE=\"portaudio\""
203 fi
204 }
205
206
207
208 1.1 games-emulation/dolphin/dolphin-4.0.2-r7.ebuild
209
210 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r7.ebuild?rev=1.1&view=markup
211 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r7.ebuild?rev=1.1&content-type=text/plain
212
213 Index: dolphin-4.0.2-r7.ebuild
214 ===================================================================
215 # Copyright 1999-2015 Gentoo Foundation
216 # Distributed under the terms of the GNU General Public License v2
217 # $Header: /var/cvsroot/gentoo-x86/games-emulation/dolphin/dolphin-4.0.2-r7.ebuild,v 1.1 2015/05/02 16:50:01 twitch153 Exp $
218
219 EAPI=5
220
221 WX_GTK_VER="3.0"
222
223 inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games
224
225 SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip -> ${P}.zip"
226 KEYWORDS="~amd64"
227
228 DESCRIPTION="Gamecube and Wii game emulator"
229 HOMEPAGE="https://www.dolphin-emu.org/"
230
231 LICENSE="GPL-2"
232 SLOT="0"
233 IUSE="alsa ao bluetooth doc ffmpeg +lzo openal opengl openmp portaudio pulseaudio"
234
235 RESTRICT="mirror"
236
237 RDEPEND=">=media-libs/glew-1.6
238 <media-libs/libsfml-2.0
239 >=net-libs/miniupnpc-1.8
240 media-libs/libsdl2[haptic,joystick]
241 sys-libs/readline:=
242 x11-libs/libXext
243 x11-libs/libXrandr
244 alsa? ( media-libs/alsa-lib )
245 ao? ( media-libs/libao )
246 bluetooth? ( net-wireless/bluez )
247 ffmpeg? ( virtual/ffmpeg
248 !!>=media-video/libav-10 )
249 lzo? ( dev-libs/lzo )
250 openal? ( media-libs/openal )
251 opengl? ( virtual/opengl )
252 portaudio? ( media-libs/portaudio )
253 pulseaudio? ( media-sound/pulseaudio )
254 "
255 DEPEND="${RDEPEND}
256 app-arch/zip
257 media-gfx/nvidia-cg-toolkit
258 media-libs/freetype
259 media-libs/libsoundtouch
260 >=sys-devel/gcc-4.6.0
261 x11-libs/wxGTK:${WX_GTK_VER}
262 "
263
264 pkg_pretend() {
265
266 local ver=4.6.0
267 local msg="${PN} needs at least GCC ${ver} set to compile."
268
269 if [[ ${MERGE_TYPE} != binary ]]; then
270 if ! version_is_at_least ${ver} $(gcc-fullversion); then
271 eerror ${msg}
272 die ${msg}
273 fi
274 fi
275
276 }
277
278 src_prepare() {
279
280 # Remove automatic dependencies to prevent building without flags enabled.
281 if use !alsa; then
282 sed -i -e '/include(FindALSA/d' CMakeLists.txt || die
283 fi
284 if use !ao; then
285 sed -i -e '/check_lib(AO/d' CMakeLists.txt || die
286 fi
287 if use !bluetooth; then
288 sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die
289 fi
290 if use !openal; then
291 sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die
292 fi
293 if use !portaudio; then
294 sed -i -e '/CMAKE_REQUIRED_LIBRARIES portaudio/d' CMakeLists.txt || die
295 fi
296 if use !pulseaudio; then
297 sed -i -e '/check_lib(PULSEAUDIO/d' CMakeLists.txt || die
298 fi
299
300 # Remove ALL the bundled libraries, aside from:
301 # - SOIL: The sources are not public.
302 # - Bochs-disasm: Don't know what it is.
303 # - CLRun: Part of OpenCL
304 # - polarssl: Currently fails the check as is.
305 mv Externals/SOIL . || die
306 mv Externals/Bochs_disasm . || die
307 mv Externals/CLRun . || die
308 mv Externals/polarssl . || die
309 rm -r Externals/* || die
310 mv polarssl Externals || die
311 mv CLRun Externals || die
312 mv Bochs_disasm Externals || die
313 mv SOIL Externals || die
314
315 # Add call for FindX11 as FindOpenGL does not include it implicitly
316 # anymore for >=cmake-3.2. For more info, see:
317 # https://public.kitware.com/Bug/print_bug_page.php?bug_id=15268
318 if has_version ">=dev-util/cmake-3.2"; then
319 sed -i -e '/if(NOT ANDROID)/a include(FindX11)' CMakeLists.txt || die
320
321 # Fix syntax warnings in FindMiniupnpc.cmake
322 sed -i -e 's/\"\"/\\\"\\\"/g' CMakeTests/FindMiniupnpc.cmake || die
323 fi
324 }
325
326 src_configure() {
327
328 local mycmakeargs=(
329 "-DDOLPHIN_WC_REVISION=${PV}"
330 "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
331 "-Dprefix=${GAMES_PREFIX}"
332 "-Ddatadir=${GAMES_DATADIR}/${PN}"
333 "-Dplugindir=$(games_get_libdir)/${PN}"
334 $( cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS )
335 $( cmake-utils_use openmp OPENMP )
336 )
337
338 cmake-utils_src_configure
339 }
340
341 src_compile() {
342
343 cmake-utils_src_compile
344 }
345
346 src_install() {
347
348 cmake-utils_src_install
349
350 dodoc Readme.txt
351 if use doc; then
352 dodoc -r docs/ActionReplay docs/DSP docs/WiiMote
353 fi
354
355 doicon Source/Core/DolphinWX/resources/Dolphin.xpm
356 make_desktop_entry "dolphin-emu" "Dolphin" "Dolphin" "Game;"
357
358 prepgamesdirs
359 }
360
361 pkg_postinst() {
362 # Add pax markings for hardened systems
363 pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu
364
365 if ! use portaudio; then
366 ewarn "If you want microphone capabilities in dolphin-emu, rebuild with"
367 ewarn "USE=\"portaudio\""
368 fi
369 }