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