1 |
commit: 4a56e9654de44fd2e2933f5c9400486fcb4c221a |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 27 13:31:34 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 27 13:31:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a56e965 |
7 |
|
8 |
media-video/mpv: Drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-video/mpv/Manifest | 1 - |
14 |
media-video/mpv/mpv-0.30.0.ebuild | 362 -------------------------------------- |
15 |
2 files changed, 363 deletions(-) |
16 |
|
17 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
18 |
index 90e6d83efdb..a23baaa21f9 100644 |
19 |
--- a/media-video/mpv/Manifest |
20 |
+++ b/media-video/mpv/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
-DIST mpv-0.30.0.tar.gz 3085141 BLAKE2B 314f6830f91e7dc11d3627688415c7535ef0ae462378d2c29cf036d5b851c55025ea5e9d5b0aa3f07ac6ec8c87350be65c882932bd908eab7c4f40b3840bf1a3 SHA512 2b3cc626575b5e56308f5f9ecf926957a36c861c85f700a4a3ede72cf7f7ea08729d20f810693117e21aeeff649f08718e73ead7d117521bf88d746708a72c66 |
23 |
DIST mpv-0.31.0.tar.gz 3142672 BLAKE2B 62a24a2bde2929047e061522147a6e823dfea9b5e7f1f739ad65bc0c82742e98743fb9ff7f0c3f74218cf50a32d0dc37c5e786fdcc951d649499f74efc3a641c SHA512 5199183d35bc2d7fffde1af250edf829fe768cedd7aa00f424d2a11a11d82cdb451c62886159ba3e1efc407b242c25e2485f4ebffd13b1da9c70defbd1f4c309 |
24 |
DIST mpv-0.32.0.tar.gz 3148730 BLAKE2B 085c38f0074dd005462aef52ef01ad7cfd70ebf9286a1f6544635e49c8c99bf4fcc5559eeb6e07ef8471388eb77794019fb50c44ea5fcc16842b63ee382e9e7c SHA512 f6426c0254ec0bf2f120e2196904f1e15fe17032b06764abca1d5e074f0cabb452eaf1cd09f8fd9b25b591accee7b881bfc3b06c19d5c98980305c4712486bd6 |
25 |
DIST waf-2.0.9 103104 BLAKE2B c7e996aa49662da3ff941d076fc7e2dd23e867ade92a3b2ae07560b76d63a69e495184a1f9c76be5c51977ddb1713f9247f62e672033ecb988ac559e3a47e546 SHA512 0755170ded115b03e78a2096f197cd9fff62b5036db764153d26ce426f182ea7d7b8231cfa1a10b4a564a8480428502f3691851df66e7b83c7bca8e5fe26de7d |
26 |
|
27 |
diff --git a/media-video/mpv/mpv-0.30.0.ebuild b/media-video/mpv/mpv-0.30.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index 75e349df02e..00000000000 |
30 |
--- a/media-video/mpv/mpv-0.30.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,362 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-PYTHON_COMPAT=( python{3_6,3_7} ) |
39 |
-PYTHON_REQ_USE='threads(+)' |
40 |
- |
41 |
-WAF_PV=2.0.9 |
42 |
- |
43 |
-inherit eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils |
44 |
- |
45 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
46 |
-HOMEPAGE="https://mpv.io/ https://github.com/mpv-player/mpv" |
47 |
- |
48 |
-if [[ ${PV} != *9999* ]]; then |
49 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
- KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux" |
51 |
- DOCS=( RELEASE_NOTES ) |
52 |
-else |
53 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
54 |
- inherit git-r3 |
55 |
- DOCS=(); SRC_URI="" |
56 |
-fi |
57 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
58 |
-DOCS+=( README.md DOCS/{client-api,interface}-changes.rst ) |
59 |
- |
60 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
61 |
-LICENSE="LGPL-2.1+ GPL-2+ BSD ISC samba? ( GPL-3+ )" |
62 |
-SLOT="0" |
63 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb |
64 |
- dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua |
65 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
66 |
- selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib zimg" |
67 |
- |
68 |
-REQUIRED_USE=" |
69 |
- || ( cli libmpv ) |
70 |
- aqua? ( opengl ) |
71 |
- cuda? ( opengl ) |
72 |
- egl? ( || ( gbm X wayland ) ) |
73 |
- gamepad? ( sdl ) |
74 |
- gbm? ( drm egl opengl ) |
75 |
- lcms? ( opengl ) |
76 |
- luajit? ( lua ) |
77 |
- opengl? ( || ( aqua egl X raspberry-pi !cli ) ) |
78 |
- raspberry-pi? ( opengl ) |
79 |
- test? ( opengl ) |
80 |
- tools? ( cli ) |
81 |
- uchardet? ( iconv ) |
82 |
- vaapi? ( || ( gbm X wayland ) ) |
83 |
- vdpau? ( X ) |
84 |
- vulkan? ( || ( X wayland ) ) |
85 |
- wayland? ( egl ) |
86 |
- X? ( egl? ( opengl ) ) |
87 |
- xv? ( X ) |
88 |
- ${PYTHON_REQUIRED_USE} |
89 |
-" |
90 |
- |
91 |
-RESTRICT="!test? ( test )" |
92 |
- |
93 |
-COMMON_DEPEND=" |
94 |
- >=media-video/ffmpeg-4.0:0=[encode,threads,vaapi?,vdpau?] |
95 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
96 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
97 |
- bluray? ( >=media-libs/libbluray-0.3.0:= ) |
98 |
- cdda? ( dev-libs/libcdio-paranoia ) |
99 |
- drm? ( x11-libs/libdrm ) |
100 |
- dvd? ( |
101 |
- >=media-libs/libdvdnav-4.2.0:= |
102 |
- >=media-libs/libdvdread-4.1.0:= |
103 |
- ) |
104 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
105 |
- gamepad? ( media-libs/libsdl2 ) |
106 |
- iconv? ( |
107 |
- virtual/libiconv |
108 |
- uchardet? ( app-i18n/uchardet ) |
109 |
- ) |
110 |
- jack? ( virtual/jack ) |
111 |
- javascript? ( >=dev-lang/mujs-1.0.0 ) |
112 |
- jpeg? ( virtual/jpeg:0 ) |
113 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
114 |
- libass? ( |
115 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
116 |
- virtual/ttf-fonts |
117 |
- ) |
118 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
119 |
- lua? ( |
120 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
121 |
- luajit? ( dev-lang/luajit:2 ) |
122 |
- ) |
123 |
- openal? ( >=media-libs/openal-1.13 ) |
124 |
- pulseaudio? ( media-sound/pulseaudio ) |
125 |
- raspberry-pi? ( >=media-libs/raspberrypi-userland-0_pre20160305-r1 ) |
126 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
127 |
- samba? ( net-fs/samba ) |
128 |
- sdl? ( media-libs/libsdl2[sound,threads,video] ) |
129 |
- vaapi? ( x11-libs/libva:=[drm?,X?,wayland?] ) |
130 |
- vdpau? ( x11-libs/libvdpau ) |
131 |
- vulkan? ( |
132 |
- media-libs/libplacebo:=[vulkan] |
133 |
- media-libs/shaderc |
134 |
- ) |
135 |
- wayland? ( |
136 |
- >=dev-libs/wayland-1.6.0 |
137 |
- >=dev-libs/wayland-protocols-1.14 |
138 |
- >=x11-libs/libxkbcommon-0.3.0 |
139 |
- ) |
140 |
- X? ( |
141 |
- x11-libs/libX11 |
142 |
- x11-libs/libXScrnSaver |
143 |
- x11-libs/libXext |
144 |
- x11-libs/libXinerama |
145 |
- x11-libs/libXrandr |
146 |
- opengl? ( |
147 |
- x11-libs/libXdamage |
148 |
- virtual/opengl |
149 |
- ) |
150 |
- xv? ( x11-libs/libXv ) |
151 |
- ) |
152 |
- zlib? ( sys-libs/zlib ) |
153 |
- zimg? ( >=media-libs/zimg-2.9.2 ) |
154 |
-" |
155 |
-DEPEND="${COMMON_DEPEND} |
156 |
- ${PYTHON_DEPS} |
157 |
- virtual/pkgconfig |
158 |
- dev-python/docutils |
159 |
- cuda? ( >=media-libs/nv-codec-headers-8.2.15.7 ) |
160 |
- doc? ( dev-python/rst2pdf ) |
161 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
162 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
163 |
-" |
164 |
-RDEPEND="${COMMON_DEPEND} |
165 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
166 |
- selinux? ( sec-policy/selinux-mplayer ) |
167 |
- tools? ( ${PYTHON_DEPS} ) |
168 |
-" |
169 |
- |
170 |
-src_prepare() { |
171 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
172 |
- chmod +x "${S}"/waf || die |
173 |
- default |
174 |
-} |
175 |
- |
176 |
-src_configure() { |
177 |
- python_setup |
178 |
- tc-export CC PKG_CONFIG AR |
179 |
- |
180 |
- if use raspberry-pi; then |
181 |
- append-cflags -I"${SYSROOT%/}${EPREFIX}/opt/vc/include" |
182 |
- append-ldflags -L"${SYSROOT%/}${EPREFIX}/opt/vc/lib" |
183 |
- fi |
184 |
- |
185 |
- local mywafargs=( |
186 |
- --confdir="${EPREFIX}/etc/${PN}" |
187 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
188 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
189 |
- |
190 |
- $(usex cli '' '--disable-cplayer') |
191 |
- $(use_enable libmpv libmpv-shared) |
192 |
- |
193 |
- --disable-libmpv-static |
194 |
- --disable-static-build |
195 |
- # See deep down below for build-date. |
196 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
197 |
- $(use_enable debug debug-build) |
198 |
- |
199 |
- $(use_enable doc html-build) |
200 |
- $(use_enable doc pdf-build) |
201 |
- --enable-manpage-build |
202 |
- $(use_enable cplugins) |
203 |
- $(use_enable test) |
204 |
- |
205 |
- $(use_enable iconv) |
206 |
- $(use_enable samba libsmbclient) |
207 |
- $(use_enable lua) |
208 |
- $(usex luajit '--lua=luajit' '') |
209 |
- $(use_enable javascript) |
210 |
- $(use_enable libass) |
211 |
- $(use_enable libass libass-osd) |
212 |
- $(use_enable zlib) |
213 |
- $(use_enable bluray libbluray) |
214 |
- $(use_enable dvd dvdnav) |
215 |
- $(use_enable cdda) |
216 |
- $(use_enable uchardet) |
217 |
- $(use_enable rubberband) |
218 |
- $(use_enable lcms lcms2) |
219 |
- --disable-vapoursynth # Only available in overlays. |
220 |
- $(use_enable archive libarchive) |
221 |
- |
222 |
- --enable-libavdevice |
223 |
- |
224 |
- # Audio outputs: |
225 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
226 |
- $(use_enable oss oss-audio) |
227 |
- --disable-rsound # Only available in overlays. |
228 |
- --disable-sndio # Only available in overlays. |
229 |
- $(use_enable pulseaudio pulse) |
230 |
- $(use_enable jack) |
231 |
- $(use_enable openal) |
232 |
- --disable-opensles |
233 |
- $(use_enable alsa) |
234 |
- $(use_enable coreaudio) |
235 |
- |
236 |
- # Video outputs: |
237 |
- $(use_enable aqua cocoa) |
238 |
- $(use_enable drm) |
239 |
- $(use_enable gbm) |
240 |
- $(use_enable wayland wayland-scanner) |
241 |
- $(use_enable wayland wayland-protocols) |
242 |
- $(use_enable wayland) |
243 |
- $(use_enable X x11) |
244 |
- $(use_enable xv) |
245 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
246 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
247 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
248 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
249 |
- $(usex opengl "$(use_enable wayland gl-wayland)" '--disable-gl-wayland') |
250 |
- $(use_enable vdpau) |
251 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
252 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
253 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
254 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
255 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
256 |
- $(use_enable libcaca caca) |
257 |
- $(use_enable jpeg) |
258 |
- $(use_enable vulkan shaderc) |
259 |
- $(use_enable raspberry-pi rpi) |
260 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
261 |
- $(usex opengl '' '--disable-gl') |
262 |
- $(use_enable vulkan) |
263 |
- $(use_enable gamepad sdl2-gamepad) |
264 |
- |
265 |
- # HWaccels: |
266 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
267 |
- $(use_enable cuda cuda-hwaccel) |
268 |
- |
269 |
- # TV features: |
270 |
- $(use_enable dvb dvbin) |
271 |
- |
272 |
- # Miscellaneous features: |
273 |
- $(use_enable zimg) |
274 |
- ) |
275 |
- |
276 |
- if use vaapi && use X; then |
277 |
- mywafargs+=( |
278 |
- $(use_enable egl vaapi-x-egl) |
279 |
- ) |
280 |
- fi |
281 |
- |
282 |
- # Not for us |
283 |
- mywafargs+=( |
284 |
- --disable-android |
285 |
- --disable-egl-android |
286 |
- --disable-uwp |
287 |
- --disable-audiounit |
288 |
- --disable-wasapi |
289 |
- --disable-ios-gl |
290 |
- --disable-apple-remote |
291 |
- --disable-macos-touchbar |
292 |
- --disable-macos-cocoa-cb |
293 |
- --disable-tvos |
294 |
- --disable-egl-angle-win32 |
295 |
- ) |
296 |
- |
297 |
- # Create reproducible non-live builds. |
298 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
299 |
- |
300 |
- waf-utils_src_configure "${mywafargs[@]}" |
301 |
-} |
302 |
- |
303 |
-src_install() { |
304 |
- waf-utils_src_install |
305 |
- |
306 |
- if use lua; then |
307 |
- insinto /usr/share/${PN} |
308 |
- doins -r TOOLS/lua |
309 |
- fi |
310 |
- |
311 |
- if use cli && use luajit; then |
312 |
- pax-mark -m "${ED}"usr/bin/${PN} |
313 |
- fi |
314 |
- |
315 |
- if use tools; then |
316 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
317 |
- newbin TOOLS/idet.sh mpv_idet.sh |
318 |
- python_replicate_script "${ED}"usr/bin/umpv |
319 |
- fi |
320 |
-} |
321 |
- |
322 |
-pkg_postinst() { |
323 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
324 |
- |
325 |
- for rv in ${REPLACING_VERSIONS}; do |
326 |
- ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1 |
327 |
- ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1 |
328 |
- ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1 |
329 |
- ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1 |
330 |
- done |
331 |
- |
332 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
333 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
334 |
- elog "This means that volume controls don't change the system volume," |
335 |
- elog "e.g. per-application volume with PulseAudio." |
336 |
- elog "If you want to restore the previous behaviour, please refer to" |
337 |
- elog |
338 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
339 |
- elog |
340 |
- fi |
341 |
- |
342 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
343 |
- elog "In version 0.21.0 the default OSC layout was changed." |
344 |
- elog "If you want to restore the previous layout, please refer to" |
345 |
- elog |
346 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
347 |
- elog |
348 |
- fi |
349 |
- |
350 |
- if [[ ${txtsubs_0_24_0} -eq 1 ]]; then |
351 |
- elog "Since version 0.24.0 subtitles with .txt extension aren't autoloaded." |
352 |
- elog "If you want to restore the previous behaviour, please refer to" |
353 |
- elog |
354 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Subtitles_with_.txt_extension_in_0.24.0" |
355 |
- elog |
356 |
- fi |
357 |
- |
358 |
- if [[ ${opengl_0_25_0} -eq 1 ]]; then |
359 |
- elog "Since version 0.25.0 the 'opengl' USE flag is mapped to" |
360 |
- elog "the 'opengl' video output and no longer explicitly requires" |
361 |
- elog "X11 or Mac OS Aqua. Consider enabling the 'opengl' USE flag." |
362 |
- fi |
363 |
- |
364 |
- if use cli && ! has_version 'app-shells/mpv-bash-completion'; then |
365 |
- elog "If you want to have command-line completion via bash-completion," |
366 |
- elog "please install app-shells/mpv-bash-completion." |
367 |
- fi |
368 |
- |
369 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && |
370 |
- has_version 'app-shells/mpv-bash-completion'; then |
371 |
- elog "If command-line completion doesn't work after mpv update," |
372 |
- elog "please rebuild app-shells/mpv-bash-completion." |
373 |
- fi |
374 |
- |
375 |
- elog "If you want URL support, please install net-misc/youtube-dl." |
376 |
- |
377 |
- gnome2_icon_cache_update |
378 |
- xdg_desktop_database_update |
379 |
-} |
380 |
- |
381 |
-pkg_postrm() { |
382 |
- gnome2_icon_cache_update |
383 |
- xdg_desktop_database_update |
384 |
-} |
385 |
- |
386 |
-src_test() { |
387 |
- cd "${S}"/build/test || die |
388 |
- local test |
389 |
- for test in *; do |
390 |
- if [[ -x ${test} ]]; then |
391 |
- ./"${test}" || die "Test suite failed" |
392 |
- fi |
393 |
- done |
394 |
-} |