1 |
commit: 653e1a4df707e927ce4862417fef4b626eeacb1c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 8 10:19:07 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 8 10:27:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653e1a4d |
7 |
|
8 |
games-emulation/dolphin: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../dolphin/dolphin-5.0_p20210506-r2.ebuild | 197 --------------------- |
13 |
games-emulation/dolphin/metadata.xml | 1 - |
14 |
2 files changed, 198 deletions(-) |
15 |
|
16 |
diff --git a/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild b/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild |
17 |
deleted file mode 100644 |
18 |
index 1b20924f1037..000000000000 |
19 |
--- a/games-emulation/dolphin/dolphin-5.0_p20210506-r2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,197 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PLOCALES="ar ca cs da de el en es fa fr hr hu it ja ko ms nb nl pl pt pt_BR ro ru sr sv tr zh_CN zh_TW" |
28 |
-PLOCALE_BACKUP="en" |
29 |
- |
30 |
-inherit cmake desktop xdg-utils pax-utils plocale |
31 |
- |
32 |
-if [[ ${PV} == *9999 ]] |
33 |
-then |
34 |
- EGIT_REPO_URI="https://github.com/dolphin-emu/dolphin" |
35 |
- inherit git-r3 |
36 |
-else |
37 |
- inherit vcs-snapshot |
38 |
- commit=eb5cd9be78c76b9ccbab9e5fbd1721ef6876cd68 |
39 |
- SRC_URI="https://github.com/dolphin-emu/dolphin/archive/${commit}.tar.gz -> ${P}.tar.gz" |
40 |
- KEYWORDS="amd64 ~arm64" |
41 |
-fi |
42 |
- |
43 |
-DESCRIPTION="Gamecube and Wii game emulator" |
44 |
-HOMEPAGE="https://www.dolphin-emu.org/" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
-IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile pulseaudio +qt5 systemd upnp vulkan" |
49 |
- |
50 |
-RDEPEND=" |
51 |
- dev-libs/hidapi:0= |
52 |
- >=dev-libs/libfmt-7.1:0= |
53 |
- dev-libs/lzo:2= |
54 |
- dev-libs/pugixml:0= |
55 |
- media-libs/libpng:0= |
56 |
- media-libs/libsfml |
57 |
- media-libs/mesa[egl(+)] |
58 |
- net-libs/enet:1.3 |
59 |
- net-libs/mbedtls:0= |
60 |
- net-misc/curl:0= |
61 |
- sys-libs/readline:0= |
62 |
- sys-libs/zlib:0= |
63 |
- x11-libs/libXext |
64 |
- x11-libs/libXi |
65 |
- x11-libs/libXrandr |
66 |
- virtual/libusb:1 |
67 |
- virtual/opengl |
68 |
- alsa? ( media-libs/alsa-lib ) |
69 |
- bluetooth? ( net-wireless/bluez ) |
70 |
- evdev? ( |
71 |
- dev-libs/libevdev |
72 |
- virtual/udev |
73 |
- ) |
74 |
- ffmpeg? ( media-video/ffmpeg:= ) |
75 |
- profile? ( dev-util/oprofile ) |
76 |
- pulseaudio? ( media-sound/pulseaudio ) |
77 |
- qt5? ( |
78 |
- dev-qt/qtcore:5 |
79 |
- dev-qt/qtgui:5 |
80 |
- dev-qt/qtwidgets:5 |
81 |
- ) |
82 |
- systemd? ( sys-apps/systemd:0= ) |
83 |
- upnp? ( net-libs/miniupnpc ) |
84 |
-" |
85 |
-DEPEND="${RDEPEND}" |
86 |
-BDEPEND=" |
87 |
- sys-devel/gettext |
88 |
- virtual/pkgconfig" |
89 |
- |
90 |
-# vulkan-loader required for vulkan backend which can be selected |
91 |
-# at runtime. |
92 |
-RDEPEND="${RDEPEND} |
93 |
- vulkan? ( media-libs/vulkan-loader )" |
94 |
- |
95 |
-PATCHES=("${FILESDIR}"/${P}-musl.patch) |
96 |
- |
97 |
-src_prepare() { |
98 |
- cmake_src_prepare |
99 |
- |
100 |
- # Remove all the bundled libraries that support system-installed |
101 |
- # preference. See CMakeLists.txt for conditional 'add_subdirectory' calls. |
102 |
- local KEEP_SOURCES=( |
103 |
- Bochs_disasm |
104 |
- FreeSurround |
105 |
- |
106 |
- # vulkan's API is not backwards-compatible: |
107 |
- # new release dropped VK_PRESENT_MODE_RANGE_SIZE_KHR |
108 |
- # but dolphin still relies on it, bug #729832 |
109 |
- Vulkan |
110 |
- |
111 |
- cpp-optparse |
112 |
- # no support for for using system library |
113 |
- glslang |
114 |
- imgui |
115 |
- |
116 |
- # not packaged, tiny header library |
117 |
- rangeset |
118 |
- |
119 |
- # FIXME: xxhash can't be found by cmake |
120 |
- xxhash |
121 |
- # no support for for using system library |
122 |
- minizip |
123 |
- # soundtouch uses shorts, not floats |
124 |
- soundtouch |
125 |
- cubeb |
126 |
- discord-rpc |
127 |
- # Their build set up solely relies on the build in gtest. |
128 |
- gtest |
129 |
- # gentoo's version requires exception support. |
130 |
- # dolphin disables exceptions and fails the build. |
131 |
- picojson |
132 |
- # No code to detect shared library. |
133 |
- zstd |
134 |
- ) |
135 |
- local s |
136 |
- for s in "${KEEP_SOURCES[@]}"; do |
137 |
- mv -v "Externals/${s}" . || die |
138 |
- done |
139 |
- einfo "removing sources: $(echo Externals/*)" |
140 |
- rm -r Externals/* || die "Failed to delete Externals dir." |
141 |
- for s in "${KEEP_SOURCES[@]}"; do |
142 |
- mv -v "${s}" "Externals/" || die |
143 |
- done |
144 |
- |
145 |
- remove_locale() { |
146 |
- # Ensure preservation of the backup locale when no valid LINGUA is set |
147 |
- if [[ "${PLOCALE_BACKUP}" == "${1}" ]] && [[ "${PLOCALE_BACKUP}" == "$(plocale_get_locales)" ]]; then |
148 |
- return |
149 |
- else |
150 |
- rm "Languages/po/${1}.po" || die |
151 |
- fi |
152 |
- } |
153 |
- |
154 |
- plocale_find_changes "Languages/po/" "" '.po' |
155 |
- plocale_for_each_disabled_locale remove_locale |
156 |
- |
157 |
- # About 50% compile-time speedup |
158 |
- use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt |
159 |
- |
160 |
- # Remove dirty suffix: needed for netplay |
161 |
- sed -i -e 's/--dirty/&=""/' CMakeLists.txt |
162 |
-} |
163 |
- |
164 |
-src_configure() { |
165 |
- local mycmakeargs=( |
166 |
- # Use ccache only when user did set FEATURES=ccache (or similar) |
167 |
- # not when ccache binary is present in system (automagic). |
168 |
- -DCCACHE_BIN=CCACHE_BIN-NOTFOUND |
169 |
- -DENABLE_ALSA=$(usex alsa) |
170 |
- -DENABLE_BLUEZ=$(usex bluetooth) |
171 |
- -DENABLE_EVDEV=$(usex evdev) |
172 |
- -DENCODE_FRAMEDUMPS=$(usex ffmpeg) |
173 |
- -DENABLE_LLVM=OFF |
174 |
- -DENABLE_LTO=$(usex lto) |
175 |
- -DENABLE_PULSEAUDIO=$(usex pulseaudio) |
176 |
- -DENABLE_QT=$(usex qt5) |
177 |
- -DENABLE_SDL=OFF # not supported: #666558 |
178 |
- -DENABLE_VULKAN=$(usex vulkan) |
179 |
- -DFASTLOG=$(usex log) |
180 |
- -DOPROFILING=$(usex profile) |
181 |
- -DUSE_DISCORD_PRESENCE=$(usex discord-presence) |
182 |
- -DUSE_SHARED_ENET=ON |
183 |
- -DUSE_UPNP=$(usex upnp) |
184 |
- |
185 |
- # Undo cmake.eclass's defaults. |
186 |
- # All dolphin's libraries are private |
187 |
- # and rely on circular dependency resolution. |
188 |
- -DBUILD_SHARED_LIBS=OFF |
189 |
- |
190 |
- # Avoid warning spam around unset variables. |
191 |
- -Wno-dev |
192 |
- ) |
193 |
- |
194 |
- cmake_src_configure |
195 |
-} |
196 |
- |
197 |
-src_install() { |
198 |
- cmake_src_install |
199 |
- |
200 |
- dodoc Readme.md |
201 |
- if use doc; then |
202 |
- dodoc -r docs/ActionReplay docs/DSP docs/WiiMote |
203 |
- fi |
204 |
- |
205 |
- doicon -s 48 Data/dolphin-emu.png |
206 |
- doicon -s scalable Data/dolphin-emu.svg |
207 |
- doicon Data/dolphin-emu.svg |
208 |
-} |
209 |
- |
210 |
-pkg_postinst() { |
211 |
- # Add pax markings for hardened systems |
212 |
- pax-mark -m "${EPREFIX}"/usr/games/bin/"${PN}"-emu |
213 |
- xdg_icon_cache_update |
214 |
-} |
215 |
- |
216 |
-pkg_postrm() { |
217 |
- xdg_icon_cache_update |
218 |
-} |
219 |
|
220 |
diff --git a/games-emulation/dolphin/metadata.xml b/games-emulation/dolphin/metadata.xml |
221 |
index 643a260eb6b2..f6526509705e 100644 |
222 |
--- a/games-emulation/dolphin/metadata.xml |
223 |
+++ b/games-emulation/dolphin/metadata.xml |
224 |
@@ -13,7 +13,6 @@ |
225 |
<flag name="discord-presence">Enables Discord Rich Presence, show the current game on Discord</flag> |
226 |
<flag name="evdev">Enable evdev input support</flag> |
227 |
<flag name="log">Increase logging output</flag> |
228 |
- <flag name="lto">Add support for link-time optimizations.</flag> |
229 |
<flag name="mgba">Enables GBA controllers emulation using libmgba.</flag> |
230 |
<flag name="vulkan">Enable support for Vulkan-based video backend.</flag> |
231 |
</use> |