1 |
commit: 7318d367fb3a59f0ba696921b3513fedf28b751f |
2 |
Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 25 02:20:01 2016 +0000 |
4 |
Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 25 02:29:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7318d367 |
7 |
|
8 |
games-emulation/dolphin: Updates package version to reflect new release |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
games-emulation/dolphin/Manifest | 2 +- |
13 |
games-emulation/dolphin/dolphin-5.0.ebuild | 106 ++++++++++++++++++++--------- |
14 |
2 files changed, 74 insertions(+), 34 deletions(-) |
15 |
|
16 |
diff --git a/games-emulation/dolphin/Manifest b/games-emulation/dolphin/Manifest |
17 |
index 2cc1c50..1cc674f 100644 |
18 |
--- a/games-emulation/dolphin/Manifest |
19 |
+++ b/games-emulation/dolphin/Manifest |
20 |
@@ -1 +1 @@ |
21 |
-DIST dolphin-5.0.zip 28317729 SHA256 2b1003360d52baf12a1bcd4d75f379749b0fd4001948ec1a24d0539c37aae055 SHA512 1b1c0dd6da4ba7e9ffe30499fae582b922c9bbd8b3d8159fbf9f4bfa1e744ef5b4c00a85d34f7cdd6e01efa32133f59b2a1f42cafc9d620f7fc7462c4ba73615 WHIRLPOOL 73cc25bafcb0d32592e8ad799b0a3d458cfa944ad15380a3b8f1cf27f3e024c314b08469a17f6d92edced95631bba38e39e1ccd625227c0520813abbd399e0f4 |
22 |
+DIST dolphin-5.0.zip 41802909 SHA256 f8c26bdea7a8329873bd2c485676ba5cbc1670faad3fef98f1d516254b4dd3a1 SHA512 36c4f371e066537331a9a8ec4a17befa278465cdebe258e1cbf1157752ba69bff9c1b8a6e8698bbb650aa257bd48b6b42ee9f61357904b09fd01738af8223d3a WHIRLPOOL 401d569e1b45a8873a2f7879a5d9c931228767be909c9ddde43d49394a79580c2ae0eccc29757f471565ad0554cd20e57c371393526d68b2c79f8570a2e2bd5c |
23 |
|
24 |
diff --git a/games-emulation/dolphin/dolphin-5.0.ebuild b/games-emulation/dolphin/dolphin-5.0.ebuild |
25 |
index d7266c1..88cd984 100644 |
26 |
--- a/games-emulation/dolphin/dolphin-5.0.ebuild |
27 |
+++ b/games-emulation/dolphin/dolphin-5.0.ebuild |
28 |
@@ -4,11 +4,13 @@ |
29 |
|
30 |
EAPI=5 |
31 |
|
32 |
+PLOCALES="ar ca cs da_DK de el en es fa fr hr hu it ja ko ms_MY nb nl pl pt pt_BR ro_RO ru sr sv tr zh_CN zh_TW" |
33 |
+PLOCALE_BACKUP="en" |
34 |
WX_GTK_VER="3.0" |
35 |
|
36 |
-inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games |
37 |
+inherit cmake-utils eutils l10n pax-utils toolchain-funcs versionator wxwidgets |
38 |
|
39 |
-SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}-rc.zip -> ${P}.zip" |
40 |
+SRC_URI="https://github.com/${PN}-emu/${PN}/archive/${PV}.zip -> ${P}.zip" |
41 |
KEYWORDS="~amd64" |
42 |
|
43 |
DESCRIPTION="Gamecube and Wii game emulator" |
44 |
@@ -16,35 +18,58 @@ HOMEPAGE="https://www.dolphin-emu.org/" |
45 |
|
46 |
LICENSE="GPL-2" |
47 |
SLOT="0" |
48 |
-IUSE="alsa ao bluetooth doc ffmpeg lto +lzo openal opengl openmp portaudio pulseaudio" |
49 |
+IUSE="alsa ao bluetooth doc egl +evdev ffmpeg llvm log lto openal +pch portaudio profile pulseaudio qt5 sdl upnp +wxwidgets" |
50 |
|
51 |
-S=${WORKDIR}/${P}-rc/ |
52 |
-RDEPEND=">=media-libs/glew-1.10 |
53 |
- >=media-libs/libsfml-2.1 |
54 |
- >=net-libs/miniupnpc-1.8 |
55 |
+RDEPEND=">=media-libs/libsfml-2.1 |
56 |
+ >net-libs/enet-1.3.7 |
57 |
+ >=net-libs/mbedtls-2.1.1 |
58 |
+ dev-libs/lzo |
59 |
+ media-libs/libpng:= |
60 |
+ sys-libs/glibc |
61 |
sys-libs/readline:= |
62 |
+ sys-libs/zlib |
63 |
x11-libs/libXext |
64 |
+ x11-libs/libXi |
65 |
x11-libs/libXrandr |
66 |
- media-libs/libsdl2[haptic,joystick] |
67 |
- net-libs/polarssl[havege] |
68 |
+ virtual/libusb:1 |
69 |
+ virtual/opengl |
70 |
alsa? ( media-libs/alsa-lib ) |
71 |
ao? ( media-libs/libao ) |
72 |
bluetooth? ( net-wireless/bluez ) |
73 |
+ egl? ( media-libs/mesa[egl] ) |
74 |
+ evdev? ( |
75 |
+ dev-libs/libevdev |
76 |
+ virtual/udev |
77 |
+ ) |
78 |
ffmpeg? ( virtual/ffmpeg ) |
79 |
- lzo? ( dev-libs/lzo ) |
80 |
- openal? ( media-libs/openal ) |
81 |
- opengl? ( virtual/opengl ) |
82 |
+ llvm? ( sys-devel/llvm ) |
83 |
+ openal? ( |
84 |
+ media-libs/openal |
85 |
+ media-libs/libsoundtouch |
86 |
+ ) |
87 |
portaudio? ( media-libs/portaudio ) |
88 |
+ profile? ( dev-util/oprofile ) |
89 |
pulseaudio? ( media-sound/pulseaudio ) |
90 |
+ qt5? ( |
91 |
+ dev-qt/qtcore:5 |
92 |
+ dev-qt/qtgui:5 |
93 |
+ dev-qt/qtwidgets:5 |
94 |
+ ) |
95 |
+ sdl? ( media-libs/libsdl2[haptic,joystick] ) |
96 |
+ upnp? ( >=net-libs/miniupnpc-1.7 ) |
97 |
+ wxwidgets? ( |
98 |
+ dev-libs/glib:2 |
99 |
+ x11-libs/gtk+:2 |
100 |
+ x11-libs/wxGTK:${WX_GTK_VER}[opengl,X] |
101 |
+ ) |
102 |
" |
103 |
DEPEND="${RDEPEND} |
104 |
+ >=dev-util/cmake-2.8.8 |
105 |
+ >=sys-devel/gcc-4.9.0 |
106 |
app-arch/zip |
107 |
- media-gfx/nvidia-cg-toolkit |
108 |
media-libs/freetype |
109 |
- media-libs/libsoundtouch |
110 |
- >net-libs/enet-1.3.7 |
111 |
- >=sys-devel/gcc-4.9.0 |
112 |
- x11-libs/wxGTK:${WX_GTK_VER} |
113 |
+ sys-devel/gettext |
114 |
+ virtual/pkgconfig |
115 |
" |
116 |
|
117 |
pkg_pretend() { |
118 |
@@ -63,9 +88,6 @@ pkg_pretend() { |
119 |
|
120 |
src_prepare() { |
121 |
|
122 |
- epatch "${FILESDIR}"/"${P}"-dynamic-llvm-detect.patch |
123 |
- epatch "${FILESDIR}"/"${P}"-miniupnpc-abi-14.patch |
124 |
- |
125 |
# Remove automatic dependencies to prevent building without flags enabled. |
126 |
if use !alsa; then |
127 |
sed -i -e '/include(FindALSA/d' CMakeLists.txt || die |
128 |
@@ -76,6 +98,9 @@ src_prepare() { |
129 |
if use !bluetooth; then |
130 |
sed -i -e '/check_lib(BLUEZ/d' CMakeLists.txt || die |
131 |
fi |
132 |
+ if use !llvm; then |
133 |
+ sed -i -e '/include(FindLLVM/d' CMakeLists.txt || die |
134 |
+ fi |
135 |
if use !openal; then |
136 |
sed -i -e '/include(FindOpenAL/d' CMakeLists.txt || die |
137 |
fi |
138 |
@@ -89,34 +114,50 @@ src_prepare() { |
139 |
# Remove ALL the bundled libraries, aside from: |
140 |
# - SOIL: The sources are not public. |
141 |
# - Bochs-disasm: Don't know what it is. |
142 |
- # - GL: A custom gl.h file is used. |
143 |
# - gtest: Their build set up solely relies on the build in gtest. |
144 |
# - xxhash: Not on the tree. |
145 |
mv Externals/SOIL . || die |
146 |
mv Externals/Bochs_disasm . || die |
147 |
- mv Externals/GL . || die |
148 |
mv Externals/gtest . || die |
149 |
mv Externals/xxhash . || die |
150 |
rm -r Externals/* || die "Failed to delete Externals dir." |
151 |
mv Bochs_disasm Externals || die |
152 |
mv SOIL Externals || die |
153 |
- mv GL Externals || die |
154 |
mv gtest Externals || die |
155 |
mv xxhash Externals || die |
156 |
+ |
157 |
+ remove_locale() { |
158 |
+ # Ensure preservation of the backup locale when no valid LINGUA is set |
159 |
+ if [[ "${PLOCALE_BACKUP}" == "${1}" ]] && [[ "${PLOCALE_BACKUP}" == "$(l10n_get_locales)" ]]; then |
160 |
+ return |
161 |
+ else |
162 |
+ rm "Languages/po/${1}.po" || die |
163 |
+ fi |
164 |
+ } |
165 |
+ |
166 |
+ l10n_find_plocales_changes "Languages/po/" "" '.po' |
167 |
+ l10n_for_each_disabled_locale_do remove_locale |
168 |
} |
169 |
|
170 |
src_configure() { |
171 |
|
172 |
+ if use wxwidgets; then |
173 |
+ need-wxwidgets unicode |
174 |
+ fi |
175 |
+ |
176 |
local mycmakeargs=( |
177 |
- "-DDOLPHIN_WC_REVISION=${PV}" |
178 |
- "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" |
179 |
- "-Dprefix=${GAMES_PREFIX}" |
180 |
- "-Ddatadir=${GAMES_DATADIR}/${PN}" |
181 |
- "-Dplugindir=$(games_get_libdir)/${PN}" |
182 |
"-DUSE_SHARED_ENET=ON" |
183 |
$( cmake-utils_use ffmpeg ENCODE_FRAMEDUMPS ) |
184 |
+ $( cmake-utils_use log FASTLOG ) |
185 |
+ $( cmake-utils_use profile OPROFILING ) |
186 |
+ $( cmake-utils_use_disable wxwidgets WX ) |
187 |
+ $( cmake-utils_use_enable evdev EVDEV ) |
188 |
$( cmake-utils_use_enable lto LTO ) |
189 |
- $( cmake-utils_use openmp OPENMP ) |
190 |
+ $( cmake-utils_use_enable pch PCH ) |
191 |
+ $( cmake-utils_use_enable qt5 QT2 ) |
192 |
+ $( cmake-utils_use_enable sdl SDL ) |
193 |
+ $( cmake-utils_use_use egl EGL ) |
194 |
+ $( cmake-utils_use_use upnp UPNP ) |
195 |
) |
196 |
|
197 |
cmake-utils_src_configure |
198 |
@@ -135,10 +176,9 @@ src_install() { |
199 |
dodoc -r docs/ActionReplay docs/DSP docs/WiiMote |
200 |
fi |
201 |
|
202 |
- doicon Installer/dolphin-emu.xpm |
203 |
- make_desktop_entry "dolphin-emu" "Dolphin Emulator" "dolphin-emu" "Game;Emulator;" |
204 |
- |
205 |
- prepgamesdirs |
206 |
+ doicon -s 48 Data/dolphin-emu.png |
207 |
+ doicon -s scalable Data/dolphin-emu.svg |
208 |
+ doicon Data/dolphin-emu.svg |
209 |
} |
210 |
|
211 |
pkg_postinst() { |