1 |
commit: d5c7520d1570c6495046164ed1246c8d56daf789 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 29 14:32:17 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 29 19:28:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5c7520d |
7 |
|
8 |
media-video/mpv: remove old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
media-video/mpv/Manifest | 1 - |
13 |
.../files/mpv-0.14.0-support-GNU-__thread.patch | 37 --- |
14 |
.../mpv/files/mpv-fix-include-in-tests.patch | 17 -- |
15 |
media-video/mpv/mpv-0.14.0-r1.ebuild | 304 --------------------- |
16 |
4 files changed, 359 deletions(-) |
17 |
|
18 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
19 |
index a60de5b..e8307fd 100644 |
20 |
--- a/media-video/mpv/Manifest |
21 |
+++ b/media-video/mpv/Manifest |
22 |
@@ -1,4 +1,3 @@ |
23 |
-DIST mpv-0.14.0.tar.gz 2872619 SHA256 042937f483603f0c3d1dec11e8f0045e8c27f19eee46ea64d81a3cdf01e51233 SHA512 523bffe87d6743ac67cab090bb5f43363352491f663debf150e204b942daaaa85176f228011e306d58fa4a05ee962d4bc56b6f77ea943e3efe757417ad52b952 WHIRLPOOL b27f8acb21870c4d98e2a39ce78cf0e8923bdac5056adafedd242b687c0532cc51e338b9d5c2046155972adb99fd8f12f7d9ec2e78bdf4ed8ae1a295faedc0e9 |
24 |
DIST mpv-0.15.0.tar.gz 2849513 SHA256 7d31217ba8572f364fcea2955733f821374ae6d8c6d8f22f8bc63c44c0400bdc SHA512 6f12487ff9bedd6872993189e3359c04ab0de559fd42bfcc5accdbfbd02e0d863cf3d7cfa5cceaedd174a4c16c831914945cf9cf6c918732f72fa44467127332 WHIRLPOOL 92b5a8ff864089bdddffa5941b8afca1433e5732ebe1ba71e326fbeb93475471e25038e73f807b3be01381a2b11ba2bc586cdccdc40bd99509a6fe234d780d9d |
25 |
DIST mpv-0.16.0.tar.gz 2877026 SHA256 fc3619de0ede16fbb023ac72589090e8e77fd9d9e03a81adc728105d50ef38ba SHA512 d328dba2cc68bd3ae2e14bfcf2b4f69f076691bb40db77036e716f783d7683fde668b652829106661dfeea46d66b4a7ad61b58610411b69bd5265adea4f20bd6 WHIRLPOOL 09af632453788c9251a595f7ea18a15876c2bab2e393d32e8cc9eebf7e2ecc459873022234a98f97840223c7cb613e05039dbc987f13839d3210f284300ce312 |
26 |
DIST mpv-0.9.2.tar.gz 2701306 SHA256 c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 SHA512 4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 WHIRLPOOL 1512bacc2ce50e875770c76106a1bb2bc1d0cc5f6e2bdce91ff8c5cfc8bf13ffb48519858a5fa2a7d57880820dc12e5eb20f34ab71eca5d76ec303618da8f3fe |
27 |
|
28 |
diff --git a/media-video/mpv/files/mpv-0.14.0-support-GNU-__thread.patch b/media-video/mpv/files/mpv-0.14.0-support-GNU-__thread.patch |
29 |
deleted file mode 100644 |
30 |
index 6e17314..0000000 |
31 |
--- a/media-video/mpv/files/mpv-0.14.0-support-GNU-__thread.patch |
32 |
+++ /dev/null |
33 |
@@ -1,37 +0,0 @@ |
34 |
-For a lengthy discussion see https://github.com/mpv-player/mpv/issues/2631 |
35 |
- |
36 |
-Upstream commits: |
37 |
-https://github.com/mpv-player/mpv/commit/1a6f3c56ea6e7bf9928fc99469f8f5da4578f035 |
38 |
-https://github.com/mpv-player/mpv/commit/946bd52a1d1eb561ff8bb516ef6efcd02ca3ea1e |
39 |
- |
40 |
-diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c |
41 |
-index 00cd535..f607c23 100644 |
42 |
---- a/video/out/opengl/common.c |
43 |
-+++ b/video/out/opengl/common.c |
44 |
-@@ -606,7 +606,13 @@ int mpgl_validate_backend_opt(struct mp_log *log, const struct m_option *opt, |
45 |
- } |
46 |
- |
47 |
- #if HAVE_C11_TLS |
48 |
--static _Thread_local MPGLContext *current_context; |
49 |
-+#define MP_TLS _Thread_local |
50 |
-+#elif defined(__GNU__) |
51 |
-+#define MP_TLS __thread |
52 |
-+#endif |
53 |
-+ |
54 |
-+#ifdef MP_TLS |
55 |
-+static MP_TLS MPGLContext *current_context; |
56 |
- |
57 |
- static void * GLAPIENTRY get_native_display(const char *name) |
58 |
- { |
59 |
-diff --git a/wscript b/wscript |
60 |
-index a5e6914..969d9cc 100644 |
61 |
---- a/wscript |
62 |
-+++ b/wscript |
63 |
-@@ -718,7 +718,6 @@ video_output_features = [ |
64 |
- }, { |
65 |
- 'name': 'vaapi-egl', |
66 |
- 'desc': 'VAAPI EGL', |
67 |
-- 'deps': [ 'c11-tls' ], # indirectly |
68 |
- 'deps_any': [ 'vaapi-x-egl', 'vaapi-wayland' ], |
69 |
- 'func': check_true, |
70 |
- }, { |
71 |
|
72 |
diff --git a/media-video/mpv/files/mpv-fix-include-in-tests.patch b/media-video/mpv/files/mpv-fix-include-in-tests.patch |
73 |
deleted file mode 100644 |
74 |
index b020119..0000000 |
75 |
--- a/media-video/mpv/files/mpv-fix-include-in-tests.patch |
76 |
+++ /dev/null |
77 |
@@ -1,17 +0,0 @@ |
78 |
-commit 867334395765ae7d2765e0834f9fd3dd5de53cab |
79 |
-Author: Ilya Tumaykin <itumaykin@×××××.com> |
80 |
-Date: Tue Dec 22 17:10:12 2015 +0300 |
81 |
- |
82 |
- tests: fix #include |
83 |
- |
84 |
-diff --git a/test/gl_video.c b/test/gl_video.c |
85 |
-index 253ab35..97fee94 100644 |
86 |
---- a/test/gl_video.c |
87 |
-+++ b/test/gl_video.c |
88 |
-@@ -1,5 +1,5 @@ |
89 |
- #include "test_helpers.h" |
90 |
--#include "video/out/gl_video.h" |
91 |
-+#include "video/out/opengl/video.h" |
92 |
- |
93 |
- static void test_scale_ambient_lux_limits(void **state) { |
94 |
- float x; |
95 |
|
96 |
diff --git a/media-video/mpv/mpv-0.14.0-r1.ebuild b/media-video/mpv/mpv-0.14.0-r1.ebuild |
97 |
deleted file mode 100644 |
98 |
index 40ccf88..0000000 |
99 |
--- a/media-video/mpv/mpv-0.14.0-r1.ebuild |
100 |
+++ /dev/null |
101 |
@@ -1,304 +0,0 @@ |
102 |
-# Copyright 1999-2016 Gentoo Foundation |
103 |
-# Distributed under the terms of the GNU General Public License v2 |
104 |
-# $Id$ |
105 |
- |
106 |
-EAPI=5 |
107 |
- |
108 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
109 |
-PYTHON_REQ_USE='threads(+)' |
110 |
- |
111 |
-WAF_PV='1.8.12' |
112 |
- |
113 |
-inherit eutils fdo-mime gnome2-utils pax-utils python-any-r1 toolchain-funcs waf-utils |
114 |
- |
115 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
116 |
-HOMEPAGE="https://mpv.io/" |
117 |
- |
118 |
-if [[ ${PV} != *9999* ]]; then |
119 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
120 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
121 |
- DOCS=( RELEASE_NOTES ) |
122 |
-else |
123 |
- EGIT_REPO_URI="https://github.com/mpv-player/mpv.git" |
124 |
- inherit git-r3 |
125 |
-fi |
126 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
127 |
-DOCS+=( README.md ) |
128 |
- |
129 |
-# See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC. |
130 |
-LICENSE="GPL-2+ BSD ISC" |
131 |
-SLOT="0" |
132 |
-# Here 'opengl' stands for GLX, 'egl' stands for any EGL-based output |
133 |
-IUSE="+alsa archive bluray cdda +cli doc drm dvb +dvd +egl +enca encode gbm |
134 |
- +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua luajit |
135 |
- openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux |
136 |
- test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama +xscreensaver |
137 |
- xv zsh-completion" |
138 |
- |
139 |
-REQUIRED_USE=" |
140 |
- || ( cli libmpv ) |
141 |
- egl? ( || ( gbm X wayland ) ) |
142 |
- enca? ( iconv ) |
143 |
- gbm? ( drm egl ) |
144 |
- lcms? ( || ( opengl egl ) ) |
145 |
- libguess? ( iconv ) |
146 |
- luajit? ( lua ) |
147 |
- opengl? ( X ) |
148 |
- uchardet? ( iconv ) |
149 |
- v4l? ( || ( alsa oss ) ) |
150 |
- vaapi? ( || ( X wayland ) ) |
151 |
- vdpau? ( X ) |
152 |
- wayland? ( egl ) |
153 |
- xinerama? ( X ) |
154 |
- xscreensaver? ( X ) |
155 |
- xv? ( X ) |
156 |
- zsh-completion? ( cli ) |
157 |
-" |
158 |
- |
159 |
-COMMON_DEPEND=" |
160 |
- !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] ) |
161 |
- libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
162 |
- sys-libs/zlib |
163 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
164 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
165 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
166 |
- cdda? ( dev-libs/libcdio-paranoia ) |
167 |
- drm? ( x11-libs/libdrm ) |
168 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
169 |
- dvd? ( |
170 |
- >=media-libs/libdvdnav-4.2.0 |
171 |
- >=media-libs/libdvdread-4.1.0 |
172 |
- ) |
173 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
174 |
- iconv? ( |
175 |
- virtual/libiconv |
176 |
- enca? ( app-i18n/enca ) |
177 |
- libguess? ( >=app-i18n/libguess-1.0 ) |
178 |
- uchardet? ( dev-libs/uchardet ) |
179 |
- ) |
180 |
- jack? ( media-sound/jack-audio-connection-kit ) |
181 |
- jpeg? ( virtual/jpeg:0 ) |
182 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
183 |
- libass? ( |
184 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
185 |
- virtual/ttf-fonts |
186 |
- ) |
187 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
188 |
- lua? ( |
189 |
- !luajit? ( || ( =dev-lang/lua-5.1*:= =dev-lang/lua-5.2*:= ) ) |
190 |
- luajit? ( dev-lang/luajit:2 ) |
191 |
- ) |
192 |
- openal? ( >=media-libs/openal-1.13 ) |
193 |
- pulseaudio? ( media-sound/pulseaudio ) |
194 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
195 |
- samba? ( net-fs/samba ) |
196 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
197 |
- v4l? ( media-libs/libv4l ) |
198 |
- vaapi? ( >=x11-libs/libva-1.4.0[X?,wayland?] ) |
199 |
- wayland? ( |
200 |
- >=dev-libs/wayland-1.6.0 |
201 |
- >=x11-libs/libxkbcommon-0.3.0 |
202 |
- ) |
203 |
- X? ( |
204 |
- x11-libs/libX11 |
205 |
- x11-libs/libXext |
206 |
- >=x11-libs/libXrandr-1.2.0 |
207 |
- opengl? ( |
208 |
- x11-libs/libXdamage |
209 |
- virtual/opengl |
210 |
- ) |
211 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
212 |
- xinerama? ( x11-libs/libXinerama ) |
213 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
214 |
- xv? ( x11-libs/libXv ) |
215 |
- ) |
216 |
-" |
217 |
-DEPEND="${COMMON_DEPEND} |
218 |
- ${PYTHON_DEPS} |
219 |
- >=dev-lang/perl-5.8 |
220 |
- dev-python/docutils |
221 |
- virtual/pkgconfig |
222 |
- doc? ( dev-python/rst2pdf ) |
223 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
224 |
-" |
225 |
-RDEPEND="${COMMON_DEPEND} |
226 |
- selinux? ( sec-policy/selinux-mplayer ) |
227 |
-" |
228 |
- |
229 |
-pkg_pretend() { |
230 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then |
231 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
232 |
- fi |
233 |
- |
234 |
- if ! use libass; then |
235 |
- ewarn "You have disabled the libass support." |
236 |
- ewarn "OSD and subtitles won't be available." |
237 |
- fi |
238 |
- |
239 |
- if use openal; then |
240 |
- ewarn "You have enabled the openal audio output. Be warned that" |
241 |
- ewarn "this output is considered experimental by upstream." |
242 |
- fi |
243 |
- |
244 |
- if use sdl; then |
245 |
- ewarn "You have enabled the sdl video and audio outputs. Note that" |
246 |
- ewarn "upstream provides these outputs for compatibility reasons only." |
247 |
- ewarn "You probably don't need them under the normal circumstances." |
248 |
- fi |
249 |
- |
250 |
- if use libav; then |
251 |
- elog "You have enabled media-video/libav instead of media-video/ffmpeg." |
252 |
- elog "Upstream recommends media-video/ffmpeg, as some functionality" |
253 |
- elog "is not provided by media-video/libav." |
254 |
- fi |
255 |
- |
256 |
- einfo "mpv optionally supports many different audio and video formats." |
257 |
- einfo "You will need to enable support for the desired formats in your" |
258 |
- einfo "libavcodec/libavformat provider:" |
259 |
- einfo " media-video/ffmpeg or media-video/libav" |
260 |
-} |
261 |
- |
262 |
-src_prepare() { |
263 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
264 |
- chmod +x "${S}"/waf || die |
265 |
- |
266 |
- epatch "${FILESDIR}/${PN}-fix-include-in-tests.patch" |
267 |
- epatch "${FILESDIR}/${P}-support-GNU-__thread.patch" |
268 |
- epatch_user |
269 |
-} |
270 |
- |
271 |
-src_configure() { |
272 |
- local mywafargs=( |
273 |
- --confdir="${EPREFIX}"/etc/${PN} |
274 |
- --docdir="${EPREFIX}"/usr/share/doc/${PF} |
275 |
- |
276 |
- --disable-gpl3 # Unclear license info. See Gentoo bug 571728. |
277 |
- |
278 |
- $(usex cli '' '--disable-cplayer') |
279 |
- $(use_enable libmpv libmpv-shared) |
280 |
- |
281 |
- # See deep down below for build-date |
282 |
- --disable-libmpv-static |
283 |
- --disable-static-build |
284 |
- --disable-optimize # Do not add '-O2' to CFLAGS |
285 |
- --disable-debug-build # Do not add '-g' to CFLAGS |
286 |
- |
287 |
- $(use_enable doc pdf-build) |
288 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
289 |
- $(use_enable zsh-completion zsh-comp) |
290 |
- $(use_enable test) |
291 |
- |
292 |
- $(use_enable iconv) |
293 |
- $(use_enable samba libsmbclient) |
294 |
- $(use_enable lua) |
295 |
- $(usex luajit '--lua=luajit' '') |
296 |
- $(use_enable libass) |
297 |
- $(use_enable libass libass-osd) |
298 |
- $(use_enable encode encoding) |
299 |
- $(use_enable bluray libbluray) |
300 |
- $(use_enable dvd dvdread) |
301 |
- $(use_enable dvd dvdnav) |
302 |
- $(use_enable cdda) |
303 |
- $(use_enable enca) |
304 |
- $(use_enable libguess) |
305 |
- $(use_enable uchardet) |
306 |
- $(use_enable rubberband) |
307 |
- $(use_enable lcms lcms2) |
308 |
- --disable-vapoursynth # Only available in overlays |
309 |
- --disable-vapoursynth-lazy |
310 |
- $(use_enable archive libarchive) |
311 |
- |
312 |
- --enable-libavfilter |
313 |
- --enable-libavdevice |
314 |
- |
315 |
- # Audio outputs |
316 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video |
317 |
- --disable-sdl1 |
318 |
- $(use_enable oss oss-audio) |
319 |
- --disable-rsound # Only available in overlays |
320 |
- $(use_enable pulseaudio pulse) |
321 |
- $(use_enable jack) |
322 |
- $(use_enable openal) |
323 |
- $(use_enable alsa) |
324 |
- --disable-coreaudio |
325 |
- --disable-dsound |
326 |
- |
327 |
- # Video outputs |
328 |
- --disable-cocoa |
329 |
- $(use_enable drm) |
330 |
- $(use_enable gbm) |
331 |
- $(use_enable wayland) |
332 |
- $(use_enable X x11) |
333 |
- $(use_enable xscreensaver xss) |
334 |
- $(use_enable X xext) |
335 |
- $(use_enable xv) |
336 |
- $(use_enable xinerama) |
337 |
- $(use_enable X xrandr) |
338 |
- $(use_enable opengl gl-x11) |
339 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
340 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
341 |
- $(use_enable wayland gl-wayland) |
342 |
- $(use_enable vdpau) |
343 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
344 |
- $(use_enable vaapi) # See below for vaapi-x-egl |
345 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
346 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
347 |
- $(usex vaapi "$(use_enable opengl vaapi-glx)" '--disable-vaapi-glx') |
348 |
- $(use_enable libcaca caca) |
349 |
- $(use_enable jpeg) |
350 |
- $(use_enable raspberry-pi rpi) |
351 |
- |
352 |
- # HWaccels |
353 |
- $(use_enable vaapi vaapi-hwaccel) |
354 |
- # Automagic VDPAU HW acceleration. See Gentoo bug 558870. |
355 |
- |
356 |
- # TV features |
357 |
- $(use_enable v4l tv) |
358 |
- $(use_enable v4l tv-v4l2) |
359 |
- $(use_enable v4l libv4l2) |
360 |
- $(use_enable v4l audio-input) |
361 |
- $(use_enable dvb dvbin) |
362 |
- ) |
363 |
- |
364 |
- if use vaapi && use X && use egl; then |
365 |
- mywafargs+=(--enable-vaapi-x-egl) |
366 |
- else |
367 |
- mywafargs+=(--disable-vaapi-x-egl) |
368 |
- fi |
369 |
- |
370 |
- # Create reproducible non-live builds |
371 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
372 |
- |
373 |
- waf-utils_src_configure "${mywafargs[@]}" |
374 |
-} |
375 |
- |
376 |
-src_install() { |
377 |
- waf-utils_src_install |
378 |
- |
379 |
- if use cli && use luajit; then |
380 |
- pax-mark -m "${ED}usr/bin/${PN}" |
381 |
- fi |
382 |
-} |
383 |
- |
384 |
-pkg_preinst() { |
385 |
- gnome2_icon_savelist |
386 |
-} |
387 |
- |
388 |
-pkg_postinst() { |
389 |
- fdo-mime_desktop_database_update |
390 |
- gnome2_icon_cache_update |
391 |
-} |
392 |
- |
393 |
-pkg_postrm() { |
394 |
- fdo-mime_desktop_database_update |
395 |
- gnome2_icon_cache_update |
396 |
-} |
397 |
- |
398 |
-src_test() { |
399 |
- cd "${S}"/build/test || die |
400 |
- for test in *; do |
401 |
- if [[ -x ${test} ]]; then |
402 |
- ./"${test}" || die "Test suite failed" |
403 |
- fi |
404 |
- done |
405 |
-} |