Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mpv/, media-video/mpv/files/, media-video/mpv/files/0.24.0/
Date: Mon, 08 May 2017 16:50:12
Message-Id: 1494262173.9f34f808a04828b3b0933c7d35fed45410497287.mgorny@gentoo
1 commit: 9f34f808a04828b3b0933c7d35fed45410497287
2 Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
3 AuthorDate: Sun May 7 22:17:01 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 8 16:49:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f34f808
7
8 media-video/mpv: remove old
9
10 Closes: https://github.com/gentoo/gentoo/pull/4564
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 media-video/mpv/Manifest | 2 -
14 .../files/0.24.0/mpv-fix-build-without-gl.patch | 32 --
15 ...-pkgconfig-for-raspberrypi-compiler-flags.patch | 97 ------
16 media-video/mpv/mpv-0.22.0-r2.ebuild | 380 ---------------------
17 media-video/mpv/mpv-0.24.0.ebuild | 379 --------------------
18 5 files changed, 890 deletions(-)
19
20 diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest
21 index d36d37ce4ba..828195108a3 100644
22 --- a/media-video/mpv/Manifest
23 +++ b/media-video/mpv/Manifest
24 @@ -1,6 +1,4 @@
25 DIST mpv-0.18.0.tar.gz 2758960 SHA256 b656638d4f6bce2621baaacb60d8be384aa492fcd86dfd43996aaa2c16fee02b SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 WHIRLPOOL c491e61cb2d7f453cfc23605120048e81c2b7621b8d9591cad6415d3b550f55db6a6c8c6f90d27c7ce214ff89f92a9861d202b457c2de25c5b7de11d8d1d40af
26 -DIST mpv-0.22.0.tar.gz 2822645 SHA256 c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6 SHA512 6c021bfb79cbedee842bf122ebb29df56e8b1cbfcb038bd54bf6e2f2db2a6550b71fd9fe8998dbd79b4ceeab3fbcab65ec60695f255c5cb36fb1feae17b797c0 WHIRLPOOL 3458dfe646bab65408a7fe45f98ae168f439b4939064b009ba87d0ae08c1f2067bd252558a92f9fdb0822bf5a35b2377bce7f46aeb190d60a4e115394f0506c9
27 -DIST mpv-0.24.0.tar.gz 2835920 SHA256 a41854fa0ac35b9c309ad692aaee67c8d4495c3546f11cb4cdd0a124195d3f15 SHA512 c1d988ccf9e22765822b9ce75c04f155df4fc4bd4c2aa164903eee8947c36f659116c2ab96668a4af31c4f5aeecbf20ce21191c48456d74e138db617a1e34d96 WHIRLPOOL e3a10fc26df124127b819754aedd8bd4ccaa1b9b3764f0deac20eaa8e338e49f09aea25d2b508b8599ce75b0a72fdd3ebcbb9487851cf823c803024e1effc950
28 DIST mpv-0.25.0.tar.gz 2874584 SHA256 07423ffad6921ec4da32f703cd7fbfb27012301dcb736ac8542ac8e6083b0bce SHA512 eefc574e2995ddf6bd15c9b62986a5ca277c30949b036d57a11bbfb796c11c1e6dd7c313abd91a909dd98ca0f2b0be29ec6b980d0287a5891b42b0ffba926cbf WHIRLPOOL 4c5225040ed8793de5daa00a4bb5cf2754fb877c73055dbe4bed92d9fa1bb3f5e67d341c698658e9f10e183084bbe691c8bbb90960e16358b9ffdaa58b11bf2b
29 DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b
30 DIST waf-1.9.8 100685 SHA256 167dc42bab6d5bd823b798af195420319cb5c9b571e00db7d83df2a0fe1f4dbf SHA512 e7493767f65deeb38aa162adef22adf60ebbd038410e9cdf4fe6f0de8c43395dbbba14962aa2c3855e1277136085fc22ad12ebfb8ac4e76f16358296039b8ea2 WHIRLPOOL 447b6936b8bd5904d85001a96bdcfd0d517f92ff0a859f8a63efd032a418c1b335578266d0f7ce0c5f71ffc7b81643d18e21c14981502153e2d586a9ce152c3a
31
32 diff --git a/media-video/mpv/files/0.24.0/mpv-fix-build-without-gl.patch b/media-video/mpv/files/0.24.0/mpv-fix-build-without-gl.patch
33 deleted file mode 100644
34 index ed175620539..00000000000
35 --- a/media-video/mpv/files/0.24.0/mpv-fix-build-without-gl.patch
36 +++ /dev/null
37 @@ -1,32 +0,0 @@
38 -commit 212f6c8206bd4dcc7d8970c5f1632823ae4e783a
39 -Author: Michael Forney <mforney@×××××××.org>
40 -Date: Sun Feb 12 23:01:21 2017 -0800
41 -
42 -Fix build with HAVE_GL==0
43 -
44 -video/out/opengl/hwdec.h includes video/out/opengl/common.h, which tries
45 -to include opengl headers.
46 -
47 -diff --git a/options/options.c b/options/options.c
48 -index b711156c1..0bb36ad3f 100644
49 ---- a/options/options.c
50 -+++ b/options/options.c
51 -@@ -40,7 +40,6 @@
52 - #include "stream/stream.h"
53 - #include "video/csputils.h"
54 - #include "video/hwdec.h"
55 --#include "video/out/opengl/hwdec.h"
56 - #include "video/image_writer.h"
57 - #include "sub/osd.h"
58 - #include "audio/filter/af.h"
59 -@@ -53,6 +52,10 @@
60 - #include "video/out/drm_common.h"
61 - #endif
62 -
63 -+#if HAVE_GL
64 -+#include "video/out/opengl/hwdec.h"
65 -+#endif
66 -+
67 - extern const char mp_help_text[];
68 -
69 - static void print_version(struct mp_log *log)
70
71 diff --git a/media-video/mpv/files/mpv-rely-on-pkgconfig-for-raspberrypi-compiler-flags.patch b/media-video/mpv/files/mpv-rely-on-pkgconfig-for-raspberrypi-compiler-flags.patch
72 deleted file mode 100644
73 index 1545743beb2..00000000000
74 --- a/media-video/mpv/files/mpv-rely-on-pkgconfig-for-raspberrypi-compiler-flags.patch
75 +++ /dev/null
76 @@ -1,97 +0,0 @@
77 -commit ea40fa36eef15384b4c0218fb102f92f5cd1cdff
78 -Author: Ilya Tumaykin <itumaykin@×××××.com>
79 -Date: Fri Jan 27 21:20:29 2017 +0300
80 -
81 -build: rpi: rely on pkgconfig for compiler flags
82 -
83 -Upstream provides pkgconfig files for quite some time now [1,2].
84 -Use them to determine the required flags instead of hard coding.
85 -
86 -This makes cross-compilation easy, which I dare to say is important for
87 -many raspberry-pi users. This also prevents picking libEGL and libGLESv2
88 -from mesa when they are present, which can happen with the current code.
89 -
90 -Good distros should put these pkgconfig files into default pkg-config
91 -search path or populate PKG_CONFIG_PATH for users. However, be nice to
92 -everybody and manually look into '/opt/vc/lib/pkgconfig' just in case.
93 -Hence the PKG_CONFIG_PATH mangling.
94 -
95 -[1]: https://github.com/raspberrypi/userland/issues/245
96 -[2]: https://github.com/raspberrypi/userland/commit/05d60a01d53dca363bb4286594db1826ffff8762
97 -
98 -diff --git a/waftools/checks/custom.py b/waftools/checks/custom.py
99 -index 50a16ce26..bf8e5a0b0 100644
100 ---- a/waftools/checks/custom.py
101 -+++ b/waftools/checks/custom.py
102 -@@ -4,7 +4,7 @@ from waflib import Utils
103 - import os
104 -
105 - __all__ = ["check_pthreads", "check_iconv", "check_lua", "check_oss_4front",
106 -- "check_cocoa", "check_openal"]
107 -+ "check_cocoa", "check_openal", "check_rpi"]
108 -
109 - pthreads_program = load_fragment('pthreads.c')
110 -
111 -@@ -127,3 +127,29 @@ def check_openal(ctx, dependency_identifier):
112 - if fn(ctx, dependency_identifier):
113 - return True
114 - return False
115 -+
116 -+def check_rpi(ctx, dependency_identifier):
117 -+ # We need MMAL/bcm_host/dispmanx APIs.
118 -+ # Upstream keeps pkgconfig files in '/opt/vc/lib/pkgconfig'.
119 -+ # See https://github.com/raspberrypi/userland/issues/245
120 -+ # PKG_CONFIG_SYSROOT_DIR helps with cross compilation.
121 -+ prev_pkg_path = os.getenv('PKG_CONFIG_PATH', '')
122 -+ os.environ['PKG_CONFIG_PATH'] = os.pathsep.join(
123 -+ filter(None, [os.path.join(os.getenv('PKG_CONFIG_SYSROOT_DIR', '/'),
124 -+ 'opt/vc/lib/pkgconfig'),
125 -+ prev_pkg_path]))
126 -+
127 -+ checks = [
128 -+ check_pkg_config('bcm_host', uselib_store='bcm_host'),
129 -+ check_pkg_config('egl'),
130 -+ check_pkg_config('glesv2'),
131 -+ check_cc(lib=['mmal_core', 'mmal_util', 'mmal_vc_client'], use=['bcm_host']),
132 -+ # We still need all OpenGL symbols, because the vo_opengl code is
133 -+ # generic and supports anything from GLES2/OpenGL 2.1 to OpenGL 4 core.
134 -+ check_statement('GL/gl.h', '(void)GL_RGB32F'), # arbitrary OpenGL 3.0 symbol
135 -+ check_statement('GL/gl.h', '(void)GL_LUMINANCE16') # arbitrary OpenGL legacy-only symbol
136 -+ ]
137 -+
138 -+ ret = all((fn(ctx, dependency_identifier) for fn in checks))
139 -+ os.environ['PKG_CONFIG_PATH'] = prev_pkg_path
140 -+ return ret
141 -diff --git a/wscript b/wscript
142 -index 81a048df5..ab853e7ad 100644
143 ---- a/wscript
144 -+++ b/wscript
145 -@@ -738,27 +738,9 @@ video_output_features = [
146 - 'desc': 'Android support',
147 - 'func': check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
148 - }, {
149 -- # We need MMAL/bcm_host/dispmanx APIs. Also, most RPI distros require
150 -- # every project to hardcode the paths to the include directories. Also,
151 -- # these headers are so broken that they spam tons of warnings by merely
152 -- # including them (compensate with -isystem and -fgnu89-inline).
153 - 'name': '--rpi',
154 - 'desc': 'Raspberry Pi support',
155 -- 'func': compose_checks(
156 -- check_cc(cflags="-isystem/opt/vc/include/ "+
157 -- "-isystem/opt/vc/include/interface/vcos/pthreads " +
158 -- "-isystem/opt/vc/include/interface/vmcs_host/linux " +
159 -- "-fgnu89-inline",
160 -- linkflags="-L/opt/vc/lib",
161 -- header_name="bcm_host.h",
162 -- lib=['mmal_core', 'mmal_util', 'mmal_vc_client', 'bcm_host']),
163 -- # We still need all OpenGL symbols, because the vo_opengl code is
164 -- # generic and supports anything from GLES2/OpenGL 2.1 to OpenGL 4 core.
165 -- check_cc(lib="EGL"),
166 -- check_cc(lib="GLESv2"),
167 -- check_statement('GL/gl.h', '(void)GL_RGB32F'), # arbitrary OpenGL 3.0 symbol
168 -- check_statement('GL/gl.h', '(void)GL_LUMINANCE16') # arbitrary OpenGL legacy-only symbol
169 -- ),
170 -+ 'func': check_rpi,
171 - }, {
172 - 'name': '--standard-gl',
173 - 'desc': 'Desktop standard OpenGL support',
174
175 diff --git a/media-video/mpv/mpv-0.22.0-r2.ebuild b/media-video/mpv/mpv-0.22.0-r2.ebuild
176 deleted file mode 100644
177 index a8712913c85..00000000000
178 --- a/media-video/mpv/mpv-0.22.0-r2.ebuild
179 +++ /dev/null
180 @@ -1,380 +0,0 @@
181 -# Copyright 1999-2017 Gentoo Foundation
182 -# Distributed under the terms of the GNU General Public License v2
183 -
184 -EAPI=6
185 -
186 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
187 -PYTHON_REQ_USE='threads(+)'
188 -
189 -WAF_PV=1.8.12
190 -
191 -inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils
192 -
193 -DESCRIPTION="Media player based on MPlayer and mplayer2"
194 -HOMEPAGE="https://mpv.io/"
195 -
196 -if [[ ${PV} != *9999* ]]; then
197 - SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
198 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux"
199 - DOCS=( RELEASE_NOTES )
200 -else
201 - EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git )
202 - inherit git-r3
203 -fi
204 -SRC_URI+=" https://waf.io/waf-${WAF_PV}"
205 -DOCS+=( README.md )
206 -
207 -# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC.
208 -LICENSE="GPL-2+ BSD ISC"
209 -SLOT="0"
210 -IUSE="+alsa aqua archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca
211 - encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv +lua
212 - luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl
213 - selinux test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama
214 - +xscreensaver +xv zsh-completion"
215 -IUSE+=" cpu_flags_x86_sse4_1"
216 -
217 -REQUIRED_USE="
218 - || ( cli libmpv )
219 - aqua? ( opengl )
220 - egl? ( || ( gbm X wayland ) )
221 - enca? ( iconv )
222 - gbm? ( drm egl )
223 - lcms? ( || ( opengl egl ) )
224 - libguess? ( iconv )
225 - luajit? ( lua )
226 - opengl? ( || ( aqua X !cli? ( libmpv ) ) )
227 - test? ( || ( opengl egl ) )
228 - tools? ( cli )
229 - uchardet? ( iconv )
230 - v4l? ( || ( alsa oss ) )
231 - vaapi? ( || ( gbm X wayland ) )
232 - vdpau? ( X )
233 - wayland? ( egl )
234 - xinerama? ( X )
235 - xscreensaver? ( X )
236 - xv? ( X )
237 - zsh-completion? ( cli )
238 - ${PYTHON_REQUIRED_USE}
239 -"
240 -
241 -COMMON_DEPEND="
242 - !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] )
243 - libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] )
244 - sys-libs/zlib
245 - alsa? ( >=media-libs/alsa-lib-1.0.18 )
246 - archive? ( >=app-arch/libarchive-3.0.0:= )
247 - bluray? ( >=media-libs/libbluray-0.3.0 )
248 - cdda? ( dev-libs/libcdio-paranoia )
249 - drm? ( x11-libs/libdrm )
250 - dvd? (
251 - >=media-libs/libdvdnav-4.2.0
252 - >=media-libs/libdvdread-4.1.0
253 - )
254 - egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] )
255 - iconv? (
256 - virtual/libiconv
257 - enca? ( app-i18n/enca )
258 - libguess? ( >=app-i18n/libguess-1.0 )
259 - uchardet? ( app-i18n/uchardet )
260 - )
261 - jack? ( virtual/jack )
262 - jpeg? ( virtual/jpeg:0 )
263 - lcms? ( >=media-libs/lcms-2.6:2 )
264 - libass? (
265 - >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz]
266 - virtual/ttf-fonts
267 - )
268 - libcaca? ( >=media-libs/libcaca-0.99_beta18 )
269 - lua? (
270 - !luajit? ( <dev-lang/lua-5.3:= )
271 - luajit? ( dev-lang/luajit:2 )
272 - )
273 - openal? ( >=media-libs/openal-1.13 )
274 - opengl? ( X? ( virtual/opengl ) )
275 - pulseaudio? ( media-sound/pulseaudio )
276 - raspberry-pi? (
277 - >=media-libs/raspberrypi-userland-0_pre20160305-r1
278 - virtual/opengl
279 - )
280 - rubberband? ( >=media-libs/rubberband-1.8.0 )
281 - samba? ( net-fs/samba[smbclient(+)] )
282 - sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] )
283 - v4l? ( media-libs/libv4l )
284 - vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] )
285 - vdpau? ( >=x11-libs/libvdpau-0.2 )
286 - wayland? (
287 - >=dev-libs/wayland-1.6.0
288 - >=x11-libs/libxkbcommon-0.3.0
289 - )
290 - X? (
291 - x11-libs/libX11
292 - x11-libs/libXext
293 - >=x11-libs/libXrandr-1.2.0
294 - opengl? ( x11-libs/libXdamage )
295 - xinerama? ( x11-libs/libXinerama )
296 - xscreensaver? ( x11-libs/libXScrnSaver )
297 - xv? ( x11-libs/libXv )
298 - )
299 -"
300 -DEPEND="${COMMON_DEPEND}
301 - ${PYTHON_DEPS}
302 - dev-lang/perl
303 - dev-python/docutils
304 - virtual/pkgconfig
305 - doc? ( dev-python/rst2pdf )
306 - dvb? ( virtual/linuxtv-dvb-headers )
307 - test? ( >=dev-util/cmocka-1.0.0 )
308 - v4l? ( virtual/os-headers )
309 -"
310 -RDEPEND="${COMMON_DEPEND}
311 - selinux? ( sec-policy/selinux-mplayer )
312 - tools? ( ${PYTHON_DEPS} )
313 -"
314 -
315 -PATCHES=(
316 - "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch"
317 - "${FILESDIR}/${PN}-rely-on-pkgconfig-for-raspberrypi-compiler-flags.patch"
318 -)
319 -
320 -mpv_check_compiler() {
321 - if [[ ${MERGE_TYPE} != "binary" ]]; then
322 - if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \
323 - ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then
324 - die "${PN} requires GCC>=4.5."
325 - fi
326 - if ( use opengl || use egl ) && ! tc-has-tls; then
327 - die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3."
328 - fi
329 - if use vaapi && use cpu_flags_x86_sse4_1 && ! tc-is-gcc; then
330 - die "${PN} requires GCC for SSE4.1 intrinsics."
331 - fi
332 - fi
333 -}
334 -
335 -pkg_pretend() {
336 - mpv_check_compiler
337 -}
338 -
339 -pkg_setup() {
340 - mpv_check_compiler
341 - [[ ${MERGE_TYPE} != "binary" ]] && python_setup
342 -}
343 -
344 -src_prepare() {
345 - cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die
346 - chmod +x "${S}"/waf || die
347 - default_src_prepare
348 -}
349 -
350 -src_configure() {
351 - tc-export CC PKG_CONFIG AR
352 -
353 - if tc-is-cross-compiler && use raspberry-pi; then
354 - export EXTRA_PKG_CONFIG_LIBDIR="${SYSROOT%/}${EPREFIX}/opt/vc/lib/pkgconfig"
355 - # Drop next line when Gentoo bug 607344 is fixed or if you fixed it locally.
356 - die "${PN} can't be cross built with raspberry-pi USE enabled. See Gentoo bug 607344."
357 - fi
358 -
359 - local mywafargs=(
360 - --confdir="${EPREFIX}/etc/${PN}"
361 - --docdir="${EPREFIX}/usr/share/doc/${PF}"
362 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
363 -
364 - $(usex cli '' '--disable-cplayer')
365 - $(use_enable libmpv libmpv-shared)
366 -
367 - # See deep down below for build-date.
368 - --disable-libmpv-static
369 - --disable-static-build
370 - --disable-optimize # Don't add '-O2' to CFLAGS.
371 - --disable-debug-build # Don't add '-g' to CFLAGS.
372 - --enable-html-build
373 -
374 - $(use_enable doc pdf-build)
375 - $(use_enable vf-dlopen vf-dlopen-filters)
376 - $(use_enable zsh-completion zsh-comp)
377 - $(use_enable test)
378 -
379 - $(use_enable iconv)
380 - $(use_enable samba libsmbclient)
381 - $(use_enable lua)
382 - $(usex luajit '--lua=luajit' '')
383 - $(use_enable libass)
384 - $(use_enable libass libass-osd)
385 - $(use_enable encode encoding)
386 - $(use_enable bluray libbluray)
387 - $(use_enable dvd dvdread)
388 - $(use_enable dvd dvdnav)
389 - $(use_enable cdda)
390 - $(use_enable enca)
391 - $(use_enable libguess)
392 - $(use_enable uchardet)
393 - $(use_enable rubberband)
394 - $(use_enable lcms lcms2)
395 - --disable-vapoursynth # Only available in overlays.
396 - --disable-vapoursynth-lazy
397 - $(use_enable archive libarchive)
398 -
399 - --enable-libavdevice
400 -
401 - # Audio outputs:
402 - $(use_enable sdl sdl2) # Listed under audio, but also includes video.
403 - --disable-sdl1
404 - $(use_enable oss oss-audio)
405 - --disable-rsound # Only available in overlays.
406 - --disable-sndio # Only available in overlays.
407 - $(use_enable pulseaudio pulse)
408 - $(use_enable jack)
409 - $(use_enable openal)
410 - --disable-opensles
411 - $(use_enable alsa)
412 - $(use_enable coreaudio)
413 -
414 - # Video outputs:
415 - $(use_enable aqua cocoa)
416 - $(use_enable drm)
417 - $(use_enable gbm)
418 - $(use_enable wayland)
419 - $(use_enable X x11)
420 - $(use_enable xscreensaver xss)
421 - $(use_enable X xext)
422 - $(use_enable xv)
423 - $(use_enable xinerama)
424 - $(use_enable X xrandr)
425 - $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa')
426 - $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11')
427 - $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11')
428 - $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm')
429 - $(use_enable wayland gl-wayland)
430 - $(use_enable vdpau)
431 - $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
432 - $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl.
433 - $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11')
434 - $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland')
435 - $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm')
436 - $(use_enable libcaca caca)
437 - $(use_enable jpeg)
438 - --disable-android
439 - $(use_enable raspberry-pi rpi)
440 - $(usex opengl "$(use_enable !aqua standard-gl)" '--disable-standard-gl')
441 - --disable-ios-gl
442 - $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl')
443 - --disable-mali-fbdev # Only available in overlays.
444 -
445 - # HWaccels:
446 - # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332.
447 - $(use_enable vaapi vaapi-hwaccel)
448 - # Automagic VDPAU HW acceleration. See Gentoo bug 558870.
449 - --disable-cuda # No support in ffmpeg. See Gentoo bug 595450.
450 -
451 - # TV features:
452 - $(use_enable v4l tv)
453 - $(use_enable v4l tv-v4l2)
454 - $(use_enable v4l libv4l2)
455 - $(use_enable v4l audio-input)
456 - $(use_enable dvb dvbin)
457 -
458 - # Miscellaneous features:
459 - --disable-apple-remote # Needs testing first. See Gentoo bug 577332.
460 - )
461 -
462 - if use vaapi && use X; then
463 - mywafargs+=(
464 - $(use_enable opengl vaapi-glx)
465 - $(use_enable egl vaapi-x-egl)
466 - )
467 - fi
468 -
469 - if ! use egl && ! use opengl && ! use raspberry-pi; then
470 - mywafargs+=(--disable-gl)
471 - fi
472 -
473 - # Create reproducible non-live builds.
474 - [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date)
475 -
476 - waf-utils_src_configure "${mywafargs[@]}"
477 -}
478 -
479 -src_install() {
480 - waf-utils_src_install
481 -
482 - if use lua; then
483 - insinto /usr/share/${PN}
484 - doins -r TOOLS/lua
485 - fi
486 -
487 - if use cli && use luajit; then
488 - pax-mark -m "${ED}"usr/bin/${PN}
489 - fi
490 -
491 - if use tools; then
492 - dobin TOOLS/{mpv_identify.sh,umpv}
493 - newbin TOOLS/idet.sh mpv_idet.sh
494 - python_replicate_script "${ED}"usr/bin/umpv
495 - fi
496 -}
497 -
498 -pkg_preinst() {
499 - gnome2_icon_savelist
500 -}
501 -
502 -pkg_postinst() {
503 - local rv softvol_0_18_1=0 osc_0_21_0=0
504 -
505 - for rv in ${REPLACING_VERSIONS}; do
506 - version_compare ${rv} 0.18.1
507 - [[ $? -eq 1 ]] && softvol_0_18_1=1
508 - version_compare ${rv} 0.21.0
509 - [[ $? -eq 1 ]] && osc_0_21_0=1
510 - done
511 -
512 - if [[ ${softvol_0_18_1} -eq 1 ]]; then
513 - elog "Since version 0.18.1 the software volume control is always enabled."
514 - elog "This means that volume controls don't change the system volume,"
515 - elog "e.g. per-application volume with PulseAudio."
516 - elog "If you want to restore the previous behaviour, please refer to"
517 - elog
518 - elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1"
519 - elog
520 - fi
521 -
522 - if [[ ${osc_0_21_0} -eq 1 ]]; then
523 - elog "In version 0.21.0 the default OSC layout was changed."
524 - elog "If you want to restore the previous layout, please refer to"
525 - elog
526 - elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0"
527 - elog
528 - fi
529 -
530 - # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion.
531 - if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \
532 - ! has_version 'app-shells/mpv-bash-completion'; then
533 - elog "If you want to have command-line completion via bash-completion,"
534 - elog "please install app-shells/mpv-bash-completion."
535 - fi
536 -
537 - if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \
538 - has_version 'app-shells/mpv-bash-completion'; then
539 - elog "If command-line completion doesn't work after mpv update,"
540 - elog "please rebuild app-shells/mpv-bash-completion."
541 - fi
542 -
543 - gnome2_icon_cache_update
544 - xdg_desktop_database_update
545 -}
546 -
547 -pkg_postrm() {
548 - gnome2_icon_cache_update
549 - xdg_desktop_database_update
550 -}
551 -
552 -src_test() {
553 - cd "${S}"/build/test || die
554 - local test
555 - for test in *; do
556 - if [[ -x ${test} ]]; then
557 - ./"${test}" || die "Test suite failed"
558 - fi
559 - done
560 -}
561
562 diff --git a/media-video/mpv/mpv-0.24.0.ebuild b/media-video/mpv/mpv-0.24.0.ebuild
563 deleted file mode 100644
564 index 8ced7544d6d..00000000000
565 --- a/media-video/mpv/mpv-0.24.0.ebuild
566 +++ /dev/null
567 @@ -1,379 +0,0 @@
568 -# Copyright 1999-2017 Gentoo Foundation
569 -# Distributed under the terms of the GNU General Public License v2
570 -
571 -EAPI=6
572 -
573 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
574 -PYTHON_REQ_USE='threads(+)'
575 -
576 -WAF_PV=1.8.12
577 -
578 -inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils
579 -
580 -DESCRIPTION="Media player based on MPlayer and mplayer2"
581 -HOMEPAGE="https://mpv.io/"
582 -
583 -if [[ ${PV} != *9999* ]]; then
584 - SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
585 - KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux"
586 - DOCS=( RELEASE_NOTES )
587 -else
588 - EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git )
589 - inherit git-r3
590 -fi
591 -SRC_URI+=" https://waf.io/waf-${WAF_PV}"
592 -DOCS+=( README.md )
593 -
594 -# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC.
595 -LICENSE="GPL-2+ BSD ISC"
596 -SLOT="0"
597 -IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda doc drm dvb
598 - dvd +egl encode gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua
599 - luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl
600 - selinux test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama
601 - +xscreensaver +xv zsh-completion"
602 -IUSE+=" cpu_flags_x86_sse4_1"
603 -
604 -REQUIRED_USE="
605 - || ( cli libmpv )
606 - aqua? ( opengl )
607 - cuda? ( !libav || ( opengl egl ) )
608 - egl? ( || ( gbm X wayland ) )
609 - gbm? ( drm egl )
610 - lcms? ( || ( opengl egl ) )
611 - luajit? ( lua )
612 - opengl? ( || ( aqua X !cli? ( libmpv ) ) )
613 - test? ( || ( opengl egl ) )
614 - tools? ( cli )
615 - uchardet? ( iconv )
616 - v4l? ( || ( alsa oss ) )
617 - vaapi? ( || ( gbm X wayland ) )
618 - vdpau? ( X )
619 - wayland? ( egl )
620 - xinerama? ( X )
621 - xscreensaver? ( X )
622 - xv? ( X )
623 - zsh-completion? ( cli )
624 - ${PYTHON_REQUIRED_USE}
625 -"
626 -
627 -COMMON_DEPEND="
628 - !libav? ( >=media-video/ffmpeg-3.2.2:0=[encode?,threads,vaapi?,vdpau?] )
629 - libav? ( >=media-video/libav-12:0=[encode?,threads,vaapi?,vdpau?] )
630 - sys-libs/zlib
631 - alsa? ( >=media-libs/alsa-lib-1.0.18 )
632 - archive? ( >=app-arch/libarchive-3.0.0:= )
633 - bluray? ( >=media-libs/libbluray-0.3.0:= )
634 - cdda? ( dev-libs/libcdio-paranoia )
635 - cuda? ( >=media-video/ffmpeg-3.3:0 )
636 - drm? ( x11-libs/libdrm )
637 - dvd? (
638 - >=media-libs/libdvdnav-4.2.0
639 - >=media-libs/libdvdread-4.1.0
640 - )
641 - egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] )
642 - iconv? (
643 - virtual/libiconv
644 - uchardet? ( app-i18n/uchardet )
645 - )
646 - jack? ( virtual/jack )
647 - jpeg? ( virtual/jpeg:0 )
648 - lcms? ( >=media-libs/lcms-2.6:2 )
649 - libass? (
650 - >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz]
651 - virtual/ttf-fonts
652 - )
653 - libcaca? ( >=media-libs/libcaca-0.99_beta18 )
654 - lua? (
655 - !luajit? ( <dev-lang/lua-5.3:= )
656 - luajit? ( dev-lang/luajit:2 )
657 - )
658 - openal? ( >=media-libs/openal-1.13 )
659 - opengl? ( X? ( virtual/opengl ) )
660 - pulseaudio? ( media-sound/pulseaudio )
661 - raspberry-pi? (
662 - >=media-libs/raspberrypi-userland-0_pre20160305-r1
663 - virtual/opengl
664 - )
665 - rubberband? ( >=media-libs/rubberband-1.8.0 )
666 - samba? ( net-fs/samba[smbclient(+)] )
667 - sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] )
668 - v4l? ( media-libs/libv4l )
669 - vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] )
670 - vdpau? ( >=x11-libs/libvdpau-0.2 )
671 - wayland? (
672 - >=dev-libs/wayland-1.6.0
673 - >=x11-libs/libxkbcommon-0.3.0
674 - )
675 - X? (
676 - x11-libs/libX11
677 - x11-libs/libXext
678 - >=x11-libs/libXrandr-1.2.0
679 - opengl? ( x11-libs/libXdamage )
680 - xinerama? ( x11-libs/libXinerama )
681 - xscreensaver? ( x11-libs/libXScrnSaver )
682 - xv? ( x11-libs/libXv )
683 - )
684 -"
685 -DEPEND="${COMMON_DEPEND}
686 - ${PYTHON_DEPS}
687 - dev-python/docutils
688 - virtual/pkgconfig
689 - doc? ( dev-python/rst2pdf )
690 - dvb? ( virtual/linuxtv-dvb-headers )
691 - test? ( >=dev-util/cmocka-1.0.0 )
692 - v4l? ( virtual/os-headers )
693 - zsh-completion? ( dev-lang/perl )
694 -"
695 -RDEPEND="${COMMON_DEPEND}
696 - cuda? ( x11-drivers/nvidia-drivers[X] )
697 - selinux? ( sec-policy/selinux-mplayer )
698 - tools? ( ${PYTHON_DEPS} )
699 -"
700 -
701 -PATCHES=(
702 - "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch"
703 - "${FILESDIR}/${PN}-0.23.0-make-libavdevice-check-accept-libav.patch"
704 - "${FILESDIR}/${PV}/${PN}-fix-build-without-gl.patch"
705 -)
706 -
707 -mpv_check_compiler() {
708 - if [[ ${MERGE_TYPE} != "binary" ]]; then
709 - if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \
710 - ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then
711 - die "${PN} requires GCC>=4.5."
712 - fi
713 - if ( use opengl || use egl ) && ! tc-has-tls; then
714 - die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3."
715 - fi
716 - if use vaapi && use cpu_flags_x86_sse4_1 && ! tc-is-gcc; then
717 - die "${PN} requires GCC for SSE4.1 intrinsics."
718 - fi
719 - fi
720 -}
721 -
722 -pkg_pretend() {
723 - mpv_check_compiler
724 -}
725 -
726 -pkg_setup() {
727 - mpv_check_compiler
728 - [[ ${MERGE_TYPE} != "binary" ]] && python_setup
729 -}
730 -
731 -src_prepare() {
732 - cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die
733 - chmod +x "${S}"/waf || die
734 - default_src_prepare
735 -}
736 -
737 -src_configure() {
738 - tc-export CC PKG_CONFIG AR
739 -
740 - if tc-is-cross-compiler && use raspberry-pi; then
741 - export EXTRA_PKG_CONFIG_LIBDIR="${SYSROOT%/}${EPREFIX}/opt/vc/lib/pkgconfig"
742 - # Drop next line when Gentoo bug 607344 is fixed or if you fixed it locally.
743 - die "${PN} can't be cross built with raspberry-pi USE enabled. See Gentoo bug 607344."
744 - fi
745 -
746 - local mywafargs=(
747 - --confdir="${EPREFIX}/etc/${PN}"
748 - --docdir="${EPREFIX}/usr/share/doc/${PF}"
749 - --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
750 -
751 - $(usex cli '' '--disable-cplayer')
752 - $(use_enable libmpv libmpv-shared)
753 -
754 - # See deep down below for build-date.
755 - --disable-libmpv-static
756 - --disable-static-build
757 - --disable-optimize # Don't add '-O2' to CFLAGS.
758 - --disable-debug-build # Don't add '-g' to CFLAGS.
759 - --enable-html-build
760 -
761 - $(use_enable doc pdf-build)
762 - $(use_enable cplugins)
763 - $(use_enable vf-dlopen vf-dlopen-filters)
764 - $(use_enable zsh-completion zsh-comp)
765 - $(use_enable test)
766 -
767 - $(use_enable iconv)
768 - $(use_enable samba libsmbclient)
769 - $(use_enable lua)
770 - $(usex luajit '--lua=luajit' '')
771 - $(use_enable libass)
772 - $(use_enable libass libass-osd)
773 - $(use_enable encode encoding)
774 - $(use_enable bluray libbluray)
775 - $(use_enable dvd dvdread)
776 - $(use_enable dvd dvdnav)
777 - $(use_enable cdda)
778 - $(use_enable uchardet)
779 - $(use_enable rubberband)
780 - $(use_enable lcms lcms2)
781 - --disable-vapoursynth # Only available in overlays.
782 - --disable-vapoursynth-lazy
783 - $(use_enable archive libarchive)
784 -
785 - --enable-libavdevice
786 -
787 - # Audio outputs:
788 - $(use_enable sdl sdl2) # Listed under audio, but also includes video.
789 - --disable-sdl1
790 - $(use_enable oss oss-audio)
791 - --disable-rsound # Only available in overlays.
792 - --disable-sndio # Only available in overlays.
793 - $(use_enable pulseaudio pulse)
794 - $(use_enable jack)
795 - $(use_enable openal)
796 - --disable-opensles
797 - $(use_enable alsa)
798 - $(use_enable coreaudio)
799 -
800 - # Video outputs:
801 - $(use_enable aqua cocoa)
802 - $(use_enable drm)
803 - $(use_enable gbm)
804 - $(use_enable wayland)
805 - $(use_enable X x11)
806 - $(use_enable xscreensaver xss)
807 - $(use_enable X xext)
808 - $(use_enable xv)
809 - $(use_enable xinerama)
810 - $(use_enable X xrandr)
811 - $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa')
812 - $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11')
813 - $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11')
814 - $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm')
815 - $(use_enable wayland gl-wayland)
816 - $(use_enable vdpau)
817 - $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11')
818 - $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl.
819 - $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11')
820 - $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland')
821 - $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm')
822 - $(use_enable libcaca caca)
823 - $(use_enable jpeg)
824 - --disable-android
825 - $(use_enable raspberry-pi rpi)
826 - $(usex opengl "$(use_enable !aqua standard-gl)" '--disable-standard-gl')
827 - --disable-ios-gl
828 - $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl')
829 - --disable-mali-fbdev # Only available in overlays.
830 -
831 - # HWaccels:
832 - # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332.
833 - $(use_enable vaapi vaapi-hwaccel)
834 - $(use_enable vdpau vdpau-hwaccel)
835 - $(use_enable cuda cuda-hwaccel)
836 -
837 - # TV features:
838 - $(use_enable v4l tv)
839 - $(use_enable v4l tv-v4l2)
840 - $(use_enable v4l libv4l2)
841 - $(use_enable v4l audio-input)
842 - $(use_enable dvb dvbin)
843 -
844 - # Miscellaneous features:
845 - --disable-apple-remote # Needs testing first. See Gentoo bug 577332.
846 - )
847 -
848 - if use vaapi && use X; then
849 - mywafargs+=(
850 - $(use_enable opengl vaapi-glx)
851 - $(use_enable egl vaapi-x-egl)
852 - )
853 - fi
854 -
855 - if ! use egl && ! use opengl && ! use raspberry-pi; then
856 - mywafargs+=(--disable-gl)
857 - fi
858 -
859 - # Create reproducible non-live builds.
860 - [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date)
861 -
862 - waf-utils_src_configure "${mywafargs[@]}"
863 -}
864 -
865 -src_install() {
866 - waf-utils_src_install
867 -
868 - if use lua; then
869 - insinto /usr/share/${PN}
870 - doins -r TOOLS/lua
871 - fi
872 -
873 - if use cli && use luajit; then
874 - pax-mark -m "${ED}"usr/bin/${PN}
875 - fi
876 -
877 - if use tools; then
878 - dobin TOOLS/{mpv_identify.sh,umpv}
879 - newbin TOOLS/idet.sh mpv_idet.sh
880 - python_replicate_script "${ED}"usr/bin/umpv
881 - fi
882 -}
883 -
884 -pkg_preinst() {
885 - gnome2_icon_savelist
886 -}
887 -
888 -pkg_postinst() {
889 - local rv softvol_0_18_1=0 osc_0_21_0=0
890 -
891 - for rv in ${REPLACING_VERSIONS}; do
892 - version_compare ${rv} 0.18.1
893 - [[ $? -eq 1 ]] && softvol_0_18_1=1
894 - version_compare ${rv} 0.21.0
895 - [[ $? -eq 1 ]] && osc_0_21_0=1
896 - done
897 -
898 - if [[ ${softvol_0_18_1} -eq 1 ]]; then
899 - elog "Since version 0.18.1 the software volume control is always enabled."
900 - elog "This means that volume controls don't change the system volume,"
901 - elog "e.g. per-application volume with PulseAudio."
902 - elog "If you want to restore the previous behaviour, please refer to"
903 - elog
904 - elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1"
905 - elog
906 - fi
907 -
908 - if [[ ${osc_0_21_0} -eq 1 ]]; then
909 - elog "In version 0.21.0 the default OSC layout was changed."
910 - elog "If you want to restore the previous layout, please refer to"
911 - elog
912 - elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0"
913 - elog
914 - fi
915 -
916 - # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion.
917 - if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \
918 - ! has_version 'app-shells/mpv-bash-completion'; then
919 - elog "If you want to have command-line completion via bash-completion,"
920 - elog "please install app-shells/mpv-bash-completion."
921 - fi
922 -
923 - if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \
924 - has_version 'app-shells/mpv-bash-completion'; then
925 - elog "If command-line completion doesn't work after mpv update,"
926 - elog "please rebuild app-shells/mpv-bash-completion."
927 - fi
928 -
929 - gnome2_icon_cache_update
930 - xdg_desktop_database_update
931 -}
932 -
933 -pkg_postrm() {
934 - gnome2_icon_cache_update
935 - xdg_desktop_database_update
936 -}
937 -
938 -src_test() {
939 - cd "${S}"/build/test || die
940 - local test
941 - for test in *; do
942 - if [[ -x ${test} ]]; then
943 - ./"${test}" || die "Test suite failed"
944 - fi
945 - done
946 -}