1 |
commit: 7d5312d9db8cf3e1eccb05c25a10e64ad1d23b78 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 12 21:11:43 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 14 21:41:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d5312d9 |
7 |
|
8 |
media-video/mpv: remove old |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/3940 |
11 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
12 |
|
13 |
media-video/mpv/Manifest | 1 - |
14 |
media-video/mpv/mpv-0.22.0-r1.ebuild | 349 -------------------------------- |
15 |
media-video/mpv/mpv-0.23.0-r1.ebuild | 378 ----------------------------------- |
16 |
3 files changed, 728 deletions(-) |
17 |
|
18 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
19 |
index 118dbc9a2c..353508babf 100644 |
20 |
--- a/media-video/mpv/Manifest |
21 |
+++ b/media-video/mpv/Manifest |
22 |
@@ -1,5 +1,4 @@ |
23 |
DIST mpv-0.18.0.tar.gz 2758960 SHA256 b656638d4f6bce2621baaacb60d8be384aa492fcd86dfd43996aaa2c16fee02b SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 WHIRLPOOL c491e61cb2d7f453cfc23605120048e81c2b7621b8d9591cad6415d3b550f55db6a6c8c6f90d27c7ce214ff89f92a9861d202b457c2de25c5b7de11d8d1d40af |
24 |
DIST mpv-0.22.0.tar.gz 2822645 SHA256 c0f9ac8f0e37a391d19007b333ef8787c2f45d75a0d4401c0098cde52c5082f6 SHA512 6c021bfb79cbedee842bf122ebb29df56e8b1cbfcb038bd54bf6e2f2db2a6550b71fd9fe8998dbd79b4ceeab3fbcab65ec60695f255c5cb36fb1feae17b797c0 WHIRLPOOL 3458dfe646bab65408a7fe45f98ae168f439b4939064b009ba87d0ae08c1f2067bd252558a92f9fdb0822bf5a35b2377bce7f46aeb190d60a4e115394f0506c9 |
25 |
-DIST mpv-0.23.0.tar.gz 2812103 SHA256 8aeefe5970587dfc454d2b89726b603f156bd7a9ae427654eef0d60c68d94998 SHA512 16304a729684ba177cb902e2508bdba09b344228c44ac78b27302ee4e0bcfb344b3522969e834516547bf82825009afd3bef1701327fdcaa42a9696065cca591 WHIRLPOOL fa214186ae80f4b26d967b8d6c68f0c4c56a77caaf06088249d30551e2cd5efbfc4f0a06e1944ef24ac679f1a3d47faa0d6152d192f032b3d279d5ada6567c8e |
26 |
DIST mpv-0.24.0.tar.gz 2835920 SHA256 a41854fa0ac35b9c309ad692aaee67c8d4495c3546f11cb4cdd0a124195d3f15 SHA512 c1d988ccf9e22765822b9ce75c04f155df4fc4bd4c2aa164903eee8947c36f659116c2ab96668a4af31c4f5aeecbf20ce21191c48456d74e138db617a1e34d96 WHIRLPOOL e3a10fc26df124127b819754aedd8bd4ccaa1b9b3764f0deac20eaa8e338e49f09aea25d2b508b8599ce75b0a72fdd3ebcbb9487851cf823c803024e1effc950 |
27 |
DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b |
28 |
|
29 |
diff --git a/media-video/mpv/mpv-0.22.0-r1.ebuild b/media-video/mpv/mpv-0.22.0-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 39d33d75e3..0000000000 |
32 |
--- a/media-video/mpv/mpv-0.22.0-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,349 +0,0 @@ |
35 |
-# Copyright 1999-2017 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
-# $Id$ |
38 |
- |
39 |
-EAPI=6 |
40 |
- |
41 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
42 |
-PYTHON_REQ_USE='threads(+)' |
43 |
- |
44 |
-WAF_PV=1.8.12 |
45 |
- |
46 |
-inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
47 |
- |
48 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
49 |
-HOMEPAGE="https://mpv.io/" |
50 |
- |
51 |
-if [[ ${PV} != *9999* ]]; then |
52 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
53 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
54 |
- DOCS=( RELEASE_NOTES ) |
55 |
-else |
56 |
- EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git ) |
57 |
- inherit git-r3 |
58 |
-fi |
59 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
60 |
-DOCS+=( README.md ) |
61 |
- |
62 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
63 |
-LICENSE="GPL-2+ BSD ISC" |
64 |
-SLOT="0" |
65 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca |
66 |
- encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv +lua |
67 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl |
68 |
- selinux test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
69 |
- +xscreensaver +xv zsh-completion" |
70 |
- |
71 |
-REQUIRED_USE=" |
72 |
- || ( cli libmpv ) |
73 |
- aqua? ( opengl ) |
74 |
- egl? ( || ( gbm X wayland ) ) |
75 |
- enca? ( iconv ) |
76 |
- gbm? ( drm egl ) |
77 |
- lcms? ( || ( opengl egl ) ) |
78 |
- libguess? ( iconv ) |
79 |
- luajit? ( lua ) |
80 |
- test? ( || ( opengl egl ) ) |
81 |
- tools? ( cli ) |
82 |
- uchardet? ( iconv ) |
83 |
- v4l? ( || ( alsa oss ) ) |
84 |
- vaapi? ( || ( gbm X wayland ) ) |
85 |
- vdpau? ( X ) |
86 |
- wayland? ( egl ) |
87 |
- xinerama? ( X ) |
88 |
- xscreensaver? ( X ) |
89 |
- xv? ( X ) |
90 |
- zsh-completion? ( cli ) |
91 |
-" |
92 |
- |
93 |
-COMMON_DEPEND=" |
94 |
- !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] ) |
95 |
- libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
96 |
- sys-libs/zlib |
97 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
98 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
99 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
100 |
- cdda? ( dev-libs/libcdio-paranoia ) |
101 |
- drm? ( x11-libs/libdrm ) |
102 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
103 |
- dvd? ( |
104 |
- >=media-libs/libdvdnav-4.2.0 |
105 |
- >=media-libs/libdvdread-4.1.0 |
106 |
- ) |
107 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
108 |
- iconv? ( |
109 |
- virtual/libiconv |
110 |
- enca? ( app-i18n/enca ) |
111 |
- libguess? ( >=app-i18n/libguess-1.0 ) |
112 |
- uchardet? ( app-i18n/uchardet ) |
113 |
- ) |
114 |
- jack? ( virtual/jack ) |
115 |
- jpeg? ( virtual/jpeg:0 ) |
116 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
117 |
- libass? ( |
118 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
119 |
- virtual/ttf-fonts |
120 |
- ) |
121 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
122 |
- lua? ( |
123 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
124 |
- luajit? ( dev-lang/luajit:2 ) |
125 |
- ) |
126 |
- openal? ( >=media-libs/openal-1.13 ) |
127 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
128 |
- pulseaudio? ( media-sound/pulseaudio ) |
129 |
- raspberry-pi? ( |
130 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
131 |
- media-libs/mesa[egl,gles2] |
132 |
- ) |
133 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
134 |
- samba? ( net-fs/samba[smbclient(+)] ) |
135 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
136 |
- v4l? ( media-libs/libv4l ) |
137 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
138 |
- wayland? ( |
139 |
- >=dev-libs/wayland-1.6.0 |
140 |
- >=x11-libs/libxkbcommon-0.3.0 |
141 |
- ) |
142 |
- X? ( |
143 |
- x11-libs/libX11 |
144 |
- x11-libs/libXext |
145 |
- >=x11-libs/libXrandr-1.2.0 |
146 |
- opengl? ( x11-libs/libXdamage ) |
147 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
148 |
- xinerama? ( x11-libs/libXinerama ) |
149 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
150 |
- xv? ( x11-libs/libXv ) |
151 |
- ) |
152 |
-" |
153 |
-DEPEND="${COMMON_DEPEND} |
154 |
- ${PYTHON_DEPS} |
155 |
- dev-lang/perl |
156 |
- dev-python/docutils |
157 |
- virtual/pkgconfig |
158 |
- doc? ( dev-python/rst2pdf ) |
159 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
160 |
- v4l? ( virtual/os-headers ) |
161 |
-" |
162 |
-RDEPEND="${COMMON_DEPEND} |
163 |
- selinux? ( sec-policy/selinux-mplayer ) |
164 |
- tools? ( ${PYTHON_DEPS} ) |
165 |
-" |
166 |
- |
167 |
-PATCHES=( "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" ) |
168 |
- |
169 |
-mpv_check_compiler() { |
170 |
- if [[ ${MERGE_TYPE} != "binary" ]] && use vaapi && use egl && ! tc-has-tls; then |
171 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
172 |
- fi |
173 |
-} |
174 |
- |
175 |
-pkg_pretend() { |
176 |
- mpv_check_compiler |
177 |
-} |
178 |
- |
179 |
-pkg_setup() { |
180 |
- mpv_check_compiler |
181 |
- [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
182 |
-} |
183 |
- |
184 |
-src_prepare() { |
185 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
186 |
- chmod +x "${S}"/waf || die |
187 |
- default_src_prepare |
188 |
-} |
189 |
- |
190 |
-src_configure() { |
191 |
- local mywafargs=( |
192 |
- --confdir="${EPREFIX}/etc/${PN}" |
193 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
194 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
195 |
- |
196 |
- $(usex cli '' '--disable-cplayer') |
197 |
- $(use_enable libmpv libmpv-shared) |
198 |
- |
199 |
- # See deep down below for build-date. |
200 |
- --disable-libmpv-static |
201 |
- --disable-static-build |
202 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
203 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
204 |
- --enable-html-build |
205 |
- |
206 |
- $(use_enable doc pdf-build) |
207 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
208 |
- $(use_enable zsh-completion zsh-comp) |
209 |
- $(use_enable test) |
210 |
- |
211 |
- $(use_enable iconv) |
212 |
- $(use_enable samba libsmbclient) |
213 |
- $(use_enable lua) |
214 |
- $(usex luajit '--lua=luajit' '') |
215 |
- $(use_enable libass) |
216 |
- $(use_enable libass libass-osd) |
217 |
- $(use_enable encode encoding) |
218 |
- $(use_enable bluray libbluray) |
219 |
- $(use_enable dvd dvdread) |
220 |
- $(use_enable dvd dvdnav) |
221 |
- $(use_enable cdda) |
222 |
- $(use_enable enca) |
223 |
- $(use_enable libguess) |
224 |
- $(use_enable uchardet) |
225 |
- $(use_enable rubberband) |
226 |
- $(use_enable lcms lcms2) |
227 |
- --disable-vapoursynth # Only available in overlays. |
228 |
- --disable-vapoursynth-lazy |
229 |
- $(use_enable archive libarchive) |
230 |
- |
231 |
- --enable-libavdevice |
232 |
- |
233 |
- # Audio outputs: |
234 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
235 |
- --disable-sdl1 |
236 |
- $(use_enable oss oss-audio) |
237 |
- --disable-rsound # Only available in overlays. |
238 |
- $(use_enable pulseaudio pulse) |
239 |
- $(use_enable jack) |
240 |
- $(use_enable openal) |
241 |
- --disable-opensles |
242 |
- $(use_enable alsa) |
243 |
- $(use_enable coreaudio) |
244 |
- |
245 |
- # Video outputs: |
246 |
- $(use_enable aqua cocoa) |
247 |
- $(use_enable drm) |
248 |
- $(use_enable gbm) |
249 |
- $(use_enable wayland) |
250 |
- $(use_enable X x11) |
251 |
- $(use_enable xscreensaver xss) |
252 |
- $(use_enable X xext) |
253 |
- $(use_enable xv) |
254 |
- $(use_enable xinerama) |
255 |
- $(use_enable X xrandr) |
256 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
257 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
258 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
259 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
260 |
- $(use_enable wayland gl-wayland) |
261 |
- $(use_enable vdpau) |
262 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
263 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
264 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
265 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
266 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
267 |
- $(use_enable libcaca caca) |
268 |
- $(use_enable jpeg) |
269 |
- --disable-android |
270 |
- $(use_enable raspberry-pi rpi) |
271 |
- --disable-ios-gl |
272 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
273 |
- --disable-mali-fbdev # Only available in overlays. |
274 |
- |
275 |
- # HWaccels: |
276 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
277 |
- $(use_enable vaapi vaapi-hwaccel) |
278 |
- # Automagic VDPAU HW acceleration. See Gentoo bug 558870. |
279 |
- --disable-cuda # No support in ffmpeg. See Gentoo bug 595450. |
280 |
- |
281 |
- # TV features: |
282 |
- $(use_enable v4l tv) |
283 |
- $(use_enable v4l tv-v4l2) |
284 |
- $(use_enable v4l libv4l2) |
285 |
- $(use_enable v4l audio-input) |
286 |
- $(use_enable dvb dvbin) |
287 |
- |
288 |
- # Miscellaneous features: |
289 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
290 |
- ) |
291 |
- |
292 |
- if use vaapi && use X; then |
293 |
- mywafargs+=( |
294 |
- $(use_enable opengl vaapi-glx) |
295 |
- $(use_enable egl vaapi-x-egl) |
296 |
- ) |
297 |
- fi |
298 |
- |
299 |
- if ! use egl && ! use opengl && ! use raspberry-pi; then |
300 |
- mywafargs+=(--disable-gl) |
301 |
- fi |
302 |
- |
303 |
- # Create reproducible non-live builds. |
304 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
305 |
- |
306 |
- waf-utils_src_configure "${mywafargs[@]}" |
307 |
-} |
308 |
- |
309 |
-src_install() { |
310 |
- waf-utils_src_install |
311 |
- |
312 |
- if use lua; then |
313 |
- insinto /usr/share/${PN} |
314 |
- doins -r TOOLS/lua |
315 |
- fi |
316 |
- |
317 |
- if use cli && use luajit; then |
318 |
- pax-mark -m "${ED}"usr/bin/${PN} |
319 |
- fi |
320 |
- |
321 |
- if use tools; then |
322 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
323 |
- newbin TOOLS/idet.sh mpv_idet.sh |
324 |
- python_replicate_script "${ED}"usr/bin/umpv |
325 |
- fi |
326 |
-} |
327 |
- |
328 |
-pkg_preinst() { |
329 |
- gnome2_icon_savelist |
330 |
-} |
331 |
- |
332 |
-pkg_postinst() { |
333 |
- local rv softvol_0_18_1=0 |
334 |
- for rv in ${REPLACING_VERSIONS}; do |
335 |
- version_compare ${rv} 0.18.1-r1 |
336 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
337 |
- done |
338 |
- |
339 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
340 |
- elog "Starting from version 0.18.1 the software volume control is" |
341 |
- elog "enabled by default, see:" |
342 |
- elog "https://github.com/mpv-player/mpv/blob/v0.18.1/DOCS/interface-changes.rst" |
343 |
- elog "https://github.com/mpv-player/mpv/issues/3322" |
344 |
- elog |
345 |
- elog "This means that volume controls don't change the system volume," |
346 |
- elog "e.g. per-application volume with PulseAudio." |
347 |
- elog "If you want to restore the old behaviour, please refer to" |
348 |
- elog |
349 |
- elog "https://bugs.gentoo.org/show_bug.cgi?id=588492#c7" |
350 |
- elog |
351 |
- fi |
352 |
- |
353 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
354 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
355 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
356 |
- elog "If you want to have command-line completion via bash-completion," |
357 |
- elog "please install app-shells/mpv-bash-completion." |
358 |
- fi |
359 |
- |
360 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
361 |
- has_version 'app-shells/mpv-bash-completion'; then |
362 |
- elog "If command-line completion doesn't work after mpv update," |
363 |
- elog "please rebuild app-shells/mpv-bash-completion." |
364 |
- fi |
365 |
- |
366 |
- gnome2_icon_cache_update |
367 |
- xdg_desktop_database_update |
368 |
-} |
369 |
- |
370 |
-pkg_postrm() { |
371 |
- gnome2_icon_cache_update |
372 |
- xdg_desktop_database_update |
373 |
-} |
374 |
- |
375 |
-src_test() { |
376 |
- cd "${S}"/build/test || die |
377 |
- local test |
378 |
- for test in *; do |
379 |
- if [[ -x ${test} ]]; then |
380 |
- ./"${test}" || die "Test suite failed" |
381 |
- fi |
382 |
- done |
383 |
-} |
384 |
|
385 |
diff --git a/media-video/mpv/mpv-0.23.0-r1.ebuild b/media-video/mpv/mpv-0.23.0-r1.ebuild |
386 |
deleted file mode 100644 |
387 |
index d17ef264db..0000000000 |
388 |
--- a/media-video/mpv/mpv-0.23.0-r1.ebuild |
389 |
+++ /dev/null |
390 |
@@ -1,378 +0,0 @@ |
391 |
-# Copyright 1999-2017 Gentoo Foundation |
392 |
-# Distributed under the terms of the GNU General Public License v2 |
393 |
-# $Id$ |
394 |
- |
395 |
-EAPI=6 |
396 |
- |
397 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
398 |
-PYTHON_REQ_USE='threads(+)' |
399 |
- |
400 |
-WAF_PV=1.8.12 |
401 |
- |
402 |
-inherit gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
403 |
- |
404 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
405 |
-HOMEPAGE="https://mpv.io/" |
406 |
- |
407 |
-if [[ ${PV} != *9999* ]]; then |
408 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
409 |
- KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux" |
410 |
- DOCS=( RELEASE_NOTES ) |
411 |
-else |
412 |
- EGIT_REPO_URI=( {https,git}://github.com/mpv-player/mpv.git ) |
413 |
- inherit git-r3 |
414 |
-fi |
415 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
416 |
-DOCS+=( README.md ) |
417 |
- |
418 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
419 |
-LICENSE="GPL-2+ BSD ISC" |
420 |
-SLOT="0" |
421 |
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cuda doc drm dvb dvd +egl |
422 |
- encode gbm +iconv jack jpeg lcms +libass libav libcaca libmpv +lua luajit |
423 |
- openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux |
424 |
- test tools +uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
425 |
- +xscreensaver +xv zsh-completion" |
426 |
-IUSE+=" cpu_flags_x86_sse4_1" |
427 |
- |
428 |
-REQUIRED_USE=" |
429 |
- || ( cli libmpv ) |
430 |
- aqua? ( opengl ) |
431 |
- cuda? ( !libav || ( opengl egl ) ) |
432 |
- egl? ( || ( gbm X wayland ) ) |
433 |
- gbm? ( drm egl ) |
434 |
- lcms? ( || ( opengl egl ) ) |
435 |
- luajit? ( lua ) |
436 |
- opengl? ( || ( aqua X !cli? ( libmpv ) ) ) |
437 |
- test? ( || ( opengl egl ) ) |
438 |
- tools? ( cli ) |
439 |
- uchardet? ( iconv ) |
440 |
- v4l? ( || ( alsa oss ) ) |
441 |
- vaapi? ( || ( gbm X wayland ) ) |
442 |
- vdpau? ( X ) |
443 |
- wayland? ( egl ) |
444 |
- xinerama? ( X ) |
445 |
- xscreensaver? ( X ) |
446 |
- xv? ( X ) |
447 |
- zsh-completion? ( cli ) |
448 |
-" |
449 |
- |
450 |
-COMMON_DEPEND=" |
451 |
- !libav? ( >=media-video/ffmpeg-3.2.2:0=[encode?,threads,vaapi?,vdpau?] ) |
452 |
- libav? ( >=media-video/libav-12:0=[encode?,threads,vaapi?,vdpau?] ) |
453 |
- sys-libs/zlib |
454 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
455 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
456 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
457 |
- cdda? ( dev-libs/libcdio-paranoia ) |
458 |
- cuda? ( >=media-video/ffmpeg-3.3:0 ) |
459 |
- drm? ( x11-libs/libdrm ) |
460 |
- dvd? ( |
461 |
- >=media-libs/libdvdnav-4.2.0 |
462 |
- >=media-libs/libdvdread-4.1.0 |
463 |
- ) |
464 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
465 |
- iconv? ( |
466 |
- virtual/libiconv |
467 |
- uchardet? ( app-i18n/uchardet ) |
468 |
- ) |
469 |
- jack? ( virtual/jack ) |
470 |
- jpeg? ( virtual/jpeg:0 ) |
471 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
472 |
- libass? ( |
473 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
474 |
- virtual/ttf-fonts |
475 |
- ) |
476 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
477 |
- lua? ( |
478 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
479 |
- luajit? ( dev-lang/luajit:2 ) |
480 |
- ) |
481 |
- openal? ( >=media-libs/openal-1.13 ) |
482 |
- opengl? ( X? ( virtual/opengl ) ) |
483 |
- pulseaudio? ( media-sound/pulseaudio ) |
484 |
- raspberry-pi? ( |
485 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
486 |
- virtual/opengl |
487 |
- ) |
488 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
489 |
- samba? ( net-fs/samba[smbclient(+)] ) |
490 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
491 |
- v4l? ( media-libs/libv4l ) |
492 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
493 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
494 |
- wayland? ( |
495 |
- >=dev-libs/wayland-1.6.0 |
496 |
- >=x11-libs/libxkbcommon-0.3.0 |
497 |
- ) |
498 |
- X? ( |
499 |
- x11-libs/libX11 |
500 |
- x11-libs/libXext |
501 |
- >=x11-libs/libXrandr-1.2.0 |
502 |
- opengl? ( x11-libs/libXdamage ) |
503 |
- xinerama? ( x11-libs/libXinerama ) |
504 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
505 |
- xv? ( x11-libs/libXv ) |
506 |
- ) |
507 |
-" |
508 |
-DEPEND="${COMMON_DEPEND} |
509 |
- ${PYTHON_DEPS} |
510 |
- dev-python/docutils |
511 |
- virtual/pkgconfig |
512 |
- doc? ( dev-python/rst2pdf ) |
513 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
514 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
515 |
- v4l? ( virtual/os-headers ) |
516 |
- zsh-completion? ( dev-lang/perl ) |
517 |
-" |
518 |
-RDEPEND="${COMMON_DEPEND} |
519 |
- cuda? ( x11-drivers/nvidia-drivers[X] ) |
520 |
- selinux? ( sec-policy/selinux-mplayer ) |
521 |
- tools? ( ${PYTHON_DEPS} ) |
522 |
-" |
523 |
- |
524 |
-PATCHES=( |
525 |
- "${FILESDIR}/${PN}-0.19.0-make-ffmpeg-version-check-non-fatal.patch" |
526 |
- "${FILESDIR}/${PN}-0.23.0-make-libavdevice-check-accept-libav.patch" |
527 |
- "${FILESDIR}/${PN}-rely-on-pkgconfig-for-raspberrypi-compiler-flags.patch" |
528 |
-) |
529 |
- |
530 |
-mpv_check_compiler() { |
531 |
- if [[ ${MERGE_TYPE} != "binary" ]]; then |
532 |
- if tc-is-gcc && ( [[ $(gcc-major-version) -lt 4 ]] || \ |
533 |
- ( [[ $(gcc-major-version) -eq 4 ]] && [[ $(gcc-minor-version) -lt 5 ]] ) ); then |
534 |
- die "${PN} requires GCC>=4.5." |
535 |
- fi |
536 |
- if ( use opengl || use egl ) && ! tc-has-tls; then |
537 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8 or Clang>=3.3." |
538 |
- fi |
539 |
- if use vaapi && use cpu_flags_x86_sse4_1 && ! tc-is-gcc; then |
540 |
- die "${PN} requires GCC for SSE4.1 intrinsics." |
541 |
- fi |
542 |
- fi |
543 |
-} |
544 |
- |
545 |
-pkg_pretend() { |
546 |
- mpv_check_compiler |
547 |
-} |
548 |
- |
549 |
-pkg_setup() { |
550 |
- mpv_check_compiler |
551 |
- [[ ${MERGE_TYPE} != "binary" ]] && python_setup |
552 |
-} |
553 |
- |
554 |
-src_prepare() { |
555 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
556 |
- chmod +x "${S}"/waf || die |
557 |
- default_src_prepare |
558 |
-} |
559 |
- |
560 |
-src_configure() { |
561 |
- tc-export CC PKG_CONFIG AR |
562 |
- |
563 |
- if tc-is-cross-compiler && use raspberry-pi; then |
564 |
- export EXTRA_PKG_CONFIG_LIBDIR="${SYSROOT%/}${EPREFIX}/opt/vc/lib/pkgconfig" |
565 |
- # Drop next line when Gentoo bug 607344 is fixed or if you fixed it locally. |
566 |
- die "${PN} can't be cross built with raspberry-pi USE enabled. See Gentoo bug 607344." |
567 |
- fi |
568 |
- |
569 |
- local mywafargs=( |
570 |
- --confdir="${EPREFIX}/etc/${PN}" |
571 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
572 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
573 |
- |
574 |
- $(usex cli '' '--disable-cplayer') |
575 |
- $(use_enable libmpv libmpv-shared) |
576 |
- |
577 |
- # See deep down below for build-date. |
578 |
- --disable-libmpv-static |
579 |
- --disable-static-build |
580 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
581 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
582 |
- --enable-html-build |
583 |
- |
584 |
- $(use_enable doc pdf-build) |
585 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
586 |
- $(use_enable zsh-completion zsh-comp) |
587 |
- $(use_enable test) |
588 |
- |
589 |
- $(use_enable iconv) |
590 |
- $(use_enable samba libsmbclient) |
591 |
- $(use_enable lua) |
592 |
- $(usex luajit '--lua=luajit' '') |
593 |
- $(use_enable libass) |
594 |
- $(use_enable libass libass-osd) |
595 |
- $(use_enable encode encoding) |
596 |
- $(use_enable bluray libbluray) |
597 |
- $(use_enable dvd dvdread) |
598 |
- $(use_enable dvd dvdnav) |
599 |
- $(use_enable cdda) |
600 |
- $(use_enable uchardet) |
601 |
- $(use_enable rubberband) |
602 |
- $(use_enable lcms lcms2) |
603 |
- --disable-vapoursynth # Only available in overlays. |
604 |
- --disable-vapoursynth-lazy |
605 |
- $(use_enable archive libarchive) |
606 |
- |
607 |
- --enable-libavdevice |
608 |
- |
609 |
- # Audio outputs: |
610 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
611 |
- --disable-sdl1 |
612 |
- $(use_enable oss oss-audio) |
613 |
- --disable-rsound # Only available in overlays. |
614 |
- --disable-sndio # Only available in overlays. |
615 |
- $(use_enable pulseaudio pulse) |
616 |
- $(use_enable jack) |
617 |
- $(use_enable openal) |
618 |
- --disable-opensles |
619 |
- $(use_enable alsa) |
620 |
- $(use_enable coreaudio) |
621 |
- |
622 |
- # Video outputs: |
623 |
- $(use_enable aqua cocoa) |
624 |
- $(use_enable drm) |
625 |
- $(use_enable gbm) |
626 |
- $(use_enable wayland) |
627 |
- $(use_enable X x11) |
628 |
- $(use_enable xscreensaver xss) |
629 |
- $(use_enable X xext) |
630 |
- $(use_enable xv) |
631 |
- $(use_enable xinerama) |
632 |
- $(use_enable X xrandr) |
633 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
634 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
635 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
636 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
637 |
- $(use_enable wayland gl-wayland) |
638 |
- $(use_enable vdpau) |
639 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
640 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
641 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
642 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
643 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
644 |
- $(use_enable libcaca caca) |
645 |
- $(use_enable jpeg) |
646 |
- --disable-android |
647 |
- $(use_enable raspberry-pi rpi) |
648 |
- $(usex opengl "$(use_enable !aqua standard-gl)" '--disable-standard-gl') |
649 |
- --disable-ios-gl |
650 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
651 |
- --disable-mali-fbdev # Only available in overlays. |
652 |
- |
653 |
- # HWaccels: |
654 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
655 |
- $(use_enable vaapi vaapi-hwaccel) |
656 |
- $(use_enable vdpau vdpau-hwaccel) |
657 |
- $(use_enable cuda cuda-hwaccel) |
658 |
- |
659 |
- # TV features: |
660 |
- $(use_enable v4l tv) |
661 |
- $(use_enable v4l tv-v4l2) |
662 |
- $(use_enable v4l libv4l2) |
663 |
- $(use_enable v4l audio-input) |
664 |
- $(use_enable dvb dvbin) |
665 |
- |
666 |
- # Miscellaneous features: |
667 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
668 |
- ) |
669 |
- |
670 |
- if use vaapi && use X; then |
671 |
- mywafargs+=( |
672 |
- $(use_enable opengl vaapi-glx) |
673 |
- $(use_enable egl vaapi-x-egl) |
674 |
- ) |
675 |
- fi |
676 |
- |
677 |
- if ! use egl && ! use opengl && ! use raspberry-pi; then |
678 |
- mywafargs+=(--disable-gl) |
679 |
- fi |
680 |
- |
681 |
- # Create reproducible non-live builds. |
682 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
683 |
- |
684 |
- waf-utils_src_configure "${mywafargs[@]}" |
685 |
-} |
686 |
- |
687 |
-src_install() { |
688 |
- waf-utils_src_install |
689 |
- |
690 |
- if use lua; then |
691 |
- insinto /usr/share/${PN} |
692 |
- doins -r TOOLS/lua |
693 |
- fi |
694 |
- |
695 |
- if use cli && use luajit; then |
696 |
- pax-mark -m "${ED}"usr/bin/${PN} |
697 |
- fi |
698 |
- |
699 |
- if use tools; then |
700 |
- dobin TOOLS/{mpv_identify.sh,umpv} |
701 |
- newbin TOOLS/idet.sh mpv_idet.sh |
702 |
- python_replicate_script "${ED}"usr/bin/umpv |
703 |
- fi |
704 |
-} |
705 |
- |
706 |
-pkg_preinst() { |
707 |
- gnome2_icon_savelist |
708 |
-} |
709 |
- |
710 |
-pkg_postinst() { |
711 |
- local rv softvol_0_18_1=0 osc_0_21_0=0 |
712 |
- |
713 |
- for rv in ${REPLACING_VERSIONS}; do |
714 |
- version_compare ${rv} 0.18.1 |
715 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
716 |
- version_compare ${rv} 0.21.0 |
717 |
- [[ $? -eq 1 ]] && osc_0_21_0=1 |
718 |
- done |
719 |
- |
720 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
721 |
- elog "Since version 0.18.1 the software volume control is always enabled." |
722 |
- elog "This means that volume controls don't change the system volume," |
723 |
- elog "e.g. per-application volume with PulseAudio." |
724 |
- elog "If you want to restore the previous behaviour, please refer to" |
725 |
- elog |
726 |
- elog "https://wiki.gentoo.org/wiki/Mpv#Volume_in_0.18.1" |
727 |
- elog |
728 |
- fi |
729 |
- |
730 |
- if [[ ${osc_0_21_0} -eq 1 ]]; then |
731 |
- elog "In version 0.21.0 the default OSC layout was changed." |
732 |
- elog "If you want to restore the previous layout, please refer to" |
733 |
- elog |
734 |
- elog "https://wiki.gentoo.org/wiki/Mpv#OSC_in_0.21.0" |
735 |
- elog |
736 |
- fi |
737 |
- |
738 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
739 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
740 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
741 |
- elog "If you want to have command-line completion via bash-completion," |
742 |
- elog "please install app-shells/mpv-bash-completion." |
743 |
- fi |
744 |
- |
745 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
746 |
- has_version 'app-shells/mpv-bash-completion'; then |
747 |
- elog "If command-line completion doesn't work after mpv update," |
748 |
- elog "please rebuild app-shells/mpv-bash-completion." |
749 |
- fi |
750 |
- |
751 |
- gnome2_icon_cache_update |
752 |
- xdg_desktop_database_update |
753 |
-} |
754 |
- |
755 |
-pkg_postrm() { |
756 |
- gnome2_icon_cache_update |
757 |
- xdg_desktop_database_update |
758 |
-} |
759 |
- |
760 |
-src_test() { |
761 |
- cd "${S}"/build/test || die |
762 |
- local test |
763 |
- for test in *; do |
764 |
- if [[ -x ${test} ]]; then |
765 |
- ./"${test}" || die "Test suite failed" |
766 |
- fi |
767 |
- done |
768 |
-} |