1 |
commit: cfdc915fa547482ef5a177a41f30cd546e1967fb |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Aug 28 04:55:22 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 17:09:32 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfdc915f |
7 |
|
8 |
media-video/mpv: remove old. |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/2153 |
11 |
Package-Manager: portage-2.3.0 |
12 |
|
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
media-video/mpv/Manifest | 3 - |
16 |
media-video/mpv/mpv-0.17.0-r6.ebuild | 300 -------------------------------- |
17 |
media-video/mpv/mpv-0.19.0.ebuild | 321 ----------------------------------- |
18 |
3 files changed, 624 deletions(-) |
19 |
|
20 |
diff --git a/media-video/mpv/Manifest b/media-video/mpv/Manifest |
21 |
index 34d71c7..23a85ce 100644 |
22 |
--- a/media-video/mpv/Manifest |
23 |
+++ b/media-video/mpv/Manifest |
24 |
@@ -1,7 +1,4 @@ |
25 |
-DIST mpv-0.17.0-patches-06.tar.gz 14418 SHA256 a0fcf861ed50686f35556a9334581e1d735f2910f834d1885b9940bd90d7525c SHA512 0bbd040df7d59e30e5c0b37b6966e5f24bd9041b3916a68b68f97a1f2aa3c2447a2dc873742d779f8ebfe599aeef6474c542f8acc7cd2fdf871d89b6b458452b WHIRLPOOL 38ab169a92b0d2c8266e459037c152ca841440231ba5dda2c2153dbee2f5a6e2193351d8f7e01e9eb6110fd21687deb1f39ea765e35dc8c69db358c45ff3c25e |
26 |
-DIST mpv-0.17.0.tar.gz 2882629 SHA256 602cd2b0f5fc7e43473234fbb96e3f7bbb6418f15eb8fa720d9433cce31eba6e SHA512 fb79738a16dbc12b60199a68836aca121a800958af4eaf6c2bdf1114bde36c156bafc232e814045a16fd738d2de1e2d8392bc98507961e5a73fa692e270dc7a2 WHIRLPOOL 704133b4033a5a2be8db92a4f1e52397d5b261a99a035d38e33b91d2c478e0e9bfcb2ba0e24ee03d37fffe693b275f50f7f1e453263a5afe61e8944f51eefa61 |
27 |
DIST mpv-0.18.0.tar.gz 2758960 SHA256 b656638d4f6bce2621baaacb60d8be384aa492fcd86dfd43996aaa2c16fee02b SHA512 5a899ea680b4da6d668a6e77a254e623bafef16f376ee46639e40f151da5a000de84b382f2b07f3a1e87b60fc8e524132767fdf243e36474966af11a88277437 WHIRLPOOL c491e61cb2d7f453cfc23605120048e81c2b7621b8d9591cad6415d3b550f55db6a6c8c6f90d27c7ce214ff89f92a9861d202b457c2de25c5b7de11d8d1d40af |
28 |
-DIST mpv-0.19.0.tar.gz 2770618 SHA256 3df5811942cd1d71f48eb4720092fdafec11885bf6dd6d1d3e6413f32e5d67e2 SHA512 11a1318e0bcf937635e8f83bba615998c7a89ceb0fb0829cef9f510c215d142b205b5c26c617e95d95dfcfc3fbd212cee58cab2dae0b8b8250a44e998d18380f WHIRLPOOL bb1c016a51bae0a512f3383f252cf661414d6375e31d8a08a3885f2450cd772e38d102f26ffecfc6fec1b469f64b33f027dcc5c0e7ca22f171c074e628310bd3 |
29 |
DIST mpv-0.20.0.tar.gz 2775740 SHA256 fe6ec9d2ded5ce84b963f54b812d579d04f944f4a737f3ae639c4d5d9e842b56 SHA512 6b00bde2aa802cbc104a7c3e85dc0165010113f9942f881b023434f8ead04a2cb5486cd3dd32c14ea86c54ed9a2b976124bd007e8e40e3d8754c48bb33c4b512 WHIRLPOOL 336d12c3309ef099fa16331859b599beaa556acefa467b8a74761291faecdcb56f3f01137dd12ffbbc4a41c3f2e60212163deccc498d065c0d944ed9adc26f8a |
30 |
DIST mpv-0.9.2.tar.gz 2701306 SHA256 c0148f55dbd17705f49bb496d0ce374419de62e1b17195d91409d7727cbd4751 SHA512 4f652a8e78d65b0ef44a06287b05250dfdfbce4cf5a6e21d3b446eedec268d83cf98afcc687272e2da2cfac9e9f69a303847dffdfd45cecdd4273b943ce50967 WHIRLPOOL 1512bacc2ce50e875770c76106a1bb2bc1d0cc5f6e2bdce91ff8c5cfc8bf13ffb48519858a5fa2a7d57880820dc12e5eb20f34ab71eca5d76ec303618da8f3fe |
31 |
DIST waf-1.8.12 97567 SHA256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b SHA512 8e47112abb134f965f15a27a600b4453cad3075afb5dadc17f2f6dac33d80ec68b679ac0ebc5f8a0245cbd07ae9fc7b899e69afc1bd021cce74e7af2ab457939 WHIRLPOOL c36d37c2d8c08e4048b4800f511611af5cf534304fcb58388ca491ff308bfcbcdd959d153edfd6ff8c118404e7293d8b786e43b07486139bf915a82aa75d792b |
32 |
|
33 |
diff --git a/media-video/mpv/mpv-0.17.0-r6.ebuild b/media-video/mpv/mpv-0.17.0-r6.ebuild |
34 |
deleted file mode 100644 |
35 |
index bc7b2d4..00000000 |
36 |
--- a/media-video/mpv/mpv-0.17.0-r6.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,300 +0,0 @@ |
39 |
-# Copyright 1999-2016 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
-# $Id$ |
42 |
- |
43 |
-EAPI=6 |
44 |
- |
45 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
46 |
-PYTHON_REQ_USE='threads(+)' |
47 |
- |
48 |
-WAF_PV=1.8.12 |
49 |
- |
50 |
-inherit eutils fdo-mime gnome2-utils pax-utils python-any-r1 toolchain-funcs waf-utils |
51 |
- |
52 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
53 |
-HOMEPAGE="https://mpv.io/" |
54 |
- |
55 |
-if [[ ${PV} != *9999* ]]; then |
56 |
- SRC_URI=" |
57 |
- https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz |
58 |
- https://dev.gentoo.org/~wraeth/distfiles/${P}-patches-06.tar.gz |
59 |
- " |
60 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
61 |
- DOCS=( RELEASE_NOTES ) |
62 |
-else |
63 |
- EGIT_REPO_URI="git://github.com/mpv-player/mpv.git" |
64 |
- inherit git-r3 |
65 |
-fi |
66 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
67 |
-DOCS+=( CONTRIBUTING.md README.md ) |
68 |
- |
69 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
70 |
-LICENSE="GPL-2+ BSD ISC" |
71 |
-SLOT="0" |
72 |
-IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca |
73 |
- encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua |
74 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba -sdl |
75 |
- selinux test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
76 |
- +xscreensaver +xv zsh-completion" |
77 |
- |
78 |
-REQUIRED_USE=" |
79 |
- || ( cli libmpv ) |
80 |
- aqua? ( opengl ) |
81 |
- egl? ( || ( gbm X wayland ) ) |
82 |
- enca? ( iconv ) |
83 |
- gbm? ( drm egl ) |
84 |
- lcms? ( || ( opengl egl ) ) |
85 |
- libguess? ( iconv ) |
86 |
- luajit? ( lua ) |
87 |
- uchardet? ( iconv ) |
88 |
- v4l? ( || ( alsa oss ) ) |
89 |
- vaapi? ( || ( gbm X wayland ) ) |
90 |
- vdpau? ( X ) |
91 |
- wayland? ( egl ) |
92 |
- xinerama? ( X ) |
93 |
- xscreensaver? ( X ) |
94 |
- xv? ( X ) |
95 |
- zsh-completion? ( cli ) |
96 |
-" |
97 |
- |
98 |
-COMMON_DEPEND=" |
99 |
- !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] ) |
100 |
- libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
101 |
- sys-libs/zlib |
102 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
103 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
104 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
105 |
- cdda? ( dev-libs/libcdio-paranoia ) |
106 |
- drm? ( x11-libs/libdrm ) |
107 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
108 |
- dvd? ( |
109 |
- >=media-libs/libdvdnav-4.2.0 |
110 |
- >=media-libs/libdvdread-4.1.0 |
111 |
- ) |
112 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
113 |
- iconv? ( |
114 |
- virtual/libiconv |
115 |
- enca? ( app-i18n/enca ) |
116 |
- libguess? ( >=app-i18n/libguess-1.0 ) |
117 |
- uchardet? ( dev-libs/uchardet ) |
118 |
- ) |
119 |
- jack? ( virtual/jack ) |
120 |
- jpeg? ( virtual/jpeg:0 ) |
121 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
122 |
- libass? ( |
123 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
124 |
- virtual/ttf-fonts |
125 |
- ) |
126 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
127 |
- lua? ( |
128 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
129 |
- luajit? ( dev-lang/luajit:2 ) |
130 |
- ) |
131 |
- openal? ( >=media-libs/openal-1.13 ) |
132 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
133 |
- pulseaudio? ( media-sound/pulseaudio ) |
134 |
- raspberry-pi? ( |
135 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
136 |
- media-libs/mesa[egl,gles2] |
137 |
- ) |
138 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
139 |
- samba? ( net-fs/samba ) |
140 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
141 |
- v4l? ( media-libs/libv4l ) |
142 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
143 |
- wayland? ( |
144 |
- >=dev-libs/wayland-1.6.0 |
145 |
- >=x11-libs/libxkbcommon-0.3.0 |
146 |
- ) |
147 |
- X? ( |
148 |
- x11-libs/libX11 |
149 |
- x11-libs/libXext |
150 |
- >=x11-libs/libXrandr-1.2.0 |
151 |
- opengl? ( x11-libs/libXdamage ) |
152 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
153 |
- xinerama? ( x11-libs/libXinerama ) |
154 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
155 |
- xv? ( x11-libs/libXv ) |
156 |
- ) |
157 |
-" |
158 |
-DEPEND="${COMMON_DEPEND} |
159 |
- ${PYTHON_DEPS} |
160 |
- >=dev-lang/perl-5.8 |
161 |
- dev-python/docutils |
162 |
- virtual/pkgconfig |
163 |
- doc? ( dev-python/rst2pdf ) |
164 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
165 |
-" |
166 |
-RDEPEND="${COMMON_DEPEND} |
167 |
- selinux? ( sec-policy/selinux-mplayer ) |
168 |
-" |
169 |
- |
170 |
-pkg_pretend() { |
171 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then |
172 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
173 |
- fi |
174 |
-} |
175 |
- |
176 |
-src_prepare() { |
177 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
178 |
- chmod +x "${S}"/waf || die |
179 |
- default_src_prepare |
180 |
- EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch "${WORKDIR}/${PV}" |
181 |
-} |
182 |
- |
183 |
-src_configure() { |
184 |
- local mywafargs=( |
185 |
- --confdir="${EPREFIX}/etc/${PN}" |
186 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
187 |
- |
188 |
- --disable-gpl3 # Unclear license info. See Gentoo bug 571728. |
189 |
- |
190 |
- $(usex cli '' '--disable-cplayer') |
191 |
- $(use_enable libmpv libmpv-shared) |
192 |
- |
193 |
- # See deep down below for build-date. |
194 |
- --disable-libmpv-static |
195 |
- --disable-static-build |
196 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
197 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
198 |
- |
199 |
- $(use_enable doc html-build) |
200 |
- $(use_enable doc pdf-build) |
201 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
202 |
- $(use_enable zsh-completion zsh-comp) |
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 libass) |
210 |
- $(use_enable libass libass-osd) |
211 |
- $(use_enable encode encoding) |
212 |
- $(use_enable bluray libbluray) |
213 |
- $(use_enable dvd dvdread) |
214 |
- $(use_enable dvd dvdnav) |
215 |
- $(use_enable cdda) |
216 |
- $(use_enable enca) |
217 |
- $(use_enable libguess) |
218 |
- $(use_enable uchardet) |
219 |
- $(use_enable rubberband) |
220 |
- $(use_enable lcms lcms2) |
221 |
- --disable-vapoursynth # Only available in overlays. |
222 |
- --disable-vapoursynth-lazy |
223 |
- $(use_enable archive libarchive) |
224 |
- |
225 |
- --enable-libavdevice |
226 |
- |
227 |
- # Audio outputs: |
228 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
229 |
- --disable-sdl1 |
230 |
- $(use_enable oss oss-audio) |
231 |
- --disable-rsound # Only available in overlays. |
232 |
- $(use_enable pulseaudio pulse) |
233 |
- $(use_enable jack) |
234 |
- $(use_enable openal) |
235 |
- --disable-opensles |
236 |
- $(use_enable alsa) |
237 |
- $(use_enable coreaudio) |
238 |
- |
239 |
- # Video outputs: |
240 |
- $(use_enable aqua cocoa) |
241 |
- $(use_enable drm) |
242 |
- $(use_enable gbm) |
243 |
- $(use_enable wayland) |
244 |
- $(use_enable X x11) |
245 |
- $(use_enable xscreensaver xss) |
246 |
- $(use_enable X xext) |
247 |
- $(use_enable xv) |
248 |
- $(use_enable xinerama) |
249 |
- $(use_enable X xrandr) |
250 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
251 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
252 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
253 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
254 |
- $(use_enable wayland gl-wayland) |
255 |
- $(use_enable vdpau) |
256 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
257 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
258 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
259 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
260 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
261 |
- $(use_enable libcaca caca) |
262 |
- $(use_enable jpeg) |
263 |
- --disable-android |
264 |
- $(use_enable raspberry-pi rpi) |
265 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
266 |
- |
267 |
- # HWaccels: |
268 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
269 |
- $(use_enable vaapi vaapi-hwaccel) |
270 |
- # Automagic VDPAU HW acceleration. See Gentoo bug 558870. |
271 |
- |
272 |
- # TV features: |
273 |
- $(use_enable v4l tv) |
274 |
- $(use_enable v4l tv-v4l2) |
275 |
- $(use_enable v4l libv4l2) |
276 |
- $(use_enable v4l audio-input) |
277 |
- $(use_enable dvb dvbin) |
278 |
- |
279 |
- # Miscellaneous features: |
280 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
281 |
- ) |
282 |
- |
283 |
- if use vaapi && use X; then |
284 |
- mywafargs+=( |
285 |
- $(use_enable opengl vaapi-glx) |
286 |
- $(use_enable egl vaapi-x-egl) |
287 |
- ) |
288 |
- fi |
289 |
- |
290 |
- # Create reproducible non-live builds. |
291 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
292 |
- |
293 |
- waf-utils_src_configure "${mywafargs[@]}" |
294 |
-} |
295 |
- |
296 |
-src_install() { |
297 |
- waf-utils_src_install |
298 |
- |
299 |
- if use cli && use luajit; then |
300 |
- pax-mark -m "${ED}"usr/bin/${PN} |
301 |
- fi |
302 |
-} |
303 |
- |
304 |
-pkg_preinst() { |
305 |
- gnome2_icon_savelist |
306 |
-} |
307 |
- |
308 |
-pkg_postinst() { |
309 |
- fdo-mime_desktop_database_update |
310 |
- gnome2_icon_cache_update |
311 |
- |
312 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
313 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
314 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
315 |
- elog "If you want to have command-line completion via bash-completion," |
316 |
- elog "please install app-shells/mpv-bash-completion." |
317 |
- fi |
318 |
- |
319 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
320 |
- has_version 'app-shells/mpv-bash-completion'; then |
321 |
- elog "If command-line completion doesn't work after mpv update," |
322 |
- elog "please rebuild app-shells/mpv-bash-completion." |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-pkg_postrm() { |
327 |
- fdo-mime_desktop_database_update |
328 |
- gnome2_icon_cache_update |
329 |
-} |
330 |
- |
331 |
-src_test() { |
332 |
- cd "${S}"/build/test || die |
333 |
- for test in *; do |
334 |
- if [[ -x ${test} ]]; then |
335 |
- ./"${test}" || die "Test suite failed" |
336 |
- fi |
337 |
- done |
338 |
-} |
339 |
|
340 |
diff --git a/media-video/mpv/mpv-0.19.0.ebuild b/media-video/mpv/mpv-0.19.0.ebuild |
341 |
deleted file mode 100644 |
342 |
index 35d45c3..00000000 |
343 |
--- a/media-video/mpv/mpv-0.19.0.ebuild |
344 |
+++ /dev/null |
345 |
@@ -1,321 +0,0 @@ |
346 |
-# Copyright 1999-2016 Gentoo Foundation |
347 |
-# Distributed under the terms of the GNU General Public License v2 |
348 |
-# $Id$ |
349 |
- |
350 |
-EAPI=6 |
351 |
- |
352 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} ) |
353 |
-PYTHON_REQ_USE='threads(+)' |
354 |
- |
355 |
-WAF_PV=1.8.12 |
356 |
- |
357 |
-inherit fdo-mime gnome2-utils pax-utils python-any-r1 toolchain-funcs versionator waf-utils |
358 |
- |
359 |
-DESCRIPTION="Media player based on MPlayer and mplayer2" |
360 |
-HOMEPAGE="https://mpv.io/" |
361 |
- |
362 |
-if [[ ${PV} != *9999* ]]; then |
363 |
- SRC_URI="https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
364 |
- KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux" |
365 |
- DOCS=( RELEASE_NOTES ) |
366 |
-else |
367 |
- EGIT_REPO_URI="git://github.com/mpv-player/mpv.git" |
368 |
- inherit git-r3 |
369 |
-fi |
370 |
-SRC_URI+=" https://waf.io/waf-${WAF_PV}" |
371 |
-DOCS+=( README.md ) |
372 |
- |
373 |
-# See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC. |
374 |
-LICENSE="GPL-2+ BSD ISC" |
375 |
-SLOT="0" |
376 |
-IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca |
377 |
- encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua |
378 |
- luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba -sdl |
379 |
- selinux test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
380 |
- +xscreensaver +xv zsh-completion" |
381 |
- |
382 |
-REQUIRED_USE=" |
383 |
- || ( cli libmpv ) |
384 |
- aqua? ( opengl ) |
385 |
- egl? ( || ( gbm X wayland ) ) |
386 |
- enca? ( iconv ) |
387 |
- gbm? ( drm egl ) |
388 |
- lcms? ( || ( opengl egl ) ) |
389 |
- libguess? ( iconv ) |
390 |
- luajit? ( lua ) |
391 |
- uchardet? ( iconv ) |
392 |
- v4l? ( || ( alsa oss ) ) |
393 |
- vaapi? ( || ( gbm X wayland ) ) |
394 |
- vdpau? ( X ) |
395 |
- wayland? ( egl ) |
396 |
- xinerama? ( X ) |
397 |
- xscreensaver? ( X ) |
398 |
- xv? ( X ) |
399 |
- zsh-completion? ( cli ) |
400 |
-" |
401 |
- |
402 |
-COMMON_DEPEND=" |
403 |
- !libav? ( >=media-video/ffmpeg-2.4:0=[encode?,threads,vaapi?,vdpau?] ) |
404 |
- libav? ( >=media-video/libav-11:0=[encode?,threads,vaapi?,vdpau?] ) |
405 |
- sys-libs/zlib |
406 |
- alsa? ( >=media-libs/alsa-lib-1.0.18 ) |
407 |
- archive? ( >=app-arch/libarchive-3.0.0:= ) |
408 |
- bluray? ( >=media-libs/libbluray-0.3.0 ) |
409 |
- cdda? ( dev-libs/libcdio-paranoia ) |
410 |
- drm? ( x11-libs/libdrm ) |
411 |
- dvb? ( virtual/linuxtv-dvb-headers ) |
412 |
- dvd? ( |
413 |
- >=media-libs/libdvdnav-4.2.0 |
414 |
- >=media-libs/libdvdread-4.1.0 |
415 |
- ) |
416 |
- egl? ( media-libs/mesa[egl,gbm(-)?,wayland(-)?] ) |
417 |
- iconv? ( |
418 |
- virtual/libiconv |
419 |
- enca? ( app-i18n/enca ) |
420 |
- libguess? ( >=app-i18n/libguess-1.0 ) |
421 |
- uchardet? ( dev-libs/uchardet ) |
422 |
- ) |
423 |
- jack? ( virtual/jack ) |
424 |
- jpeg? ( virtual/jpeg:0 ) |
425 |
- lcms? ( >=media-libs/lcms-2.6:2 ) |
426 |
- libass? ( |
427 |
- >=media-libs/libass-0.12.1:=[fontconfig,harfbuzz] |
428 |
- virtual/ttf-fonts |
429 |
- ) |
430 |
- libcaca? ( >=media-libs/libcaca-0.99_beta18 ) |
431 |
- lua? ( |
432 |
- !luajit? ( <dev-lang/lua-5.3:= ) |
433 |
- luajit? ( dev-lang/luajit:2 ) |
434 |
- ) |
435 |
- openal? ( >=media-libs/openal-1.13 ) |
436 |
- opengl? ( !aqua? ( virtual/opengl ) ) |
437 |
- pulseaudio? ( media-sound/pulseaudio ) |
438 |
- raspberry-pi? ( |
439 |
- >=media-libs/raspberrypi-userland-0_pre20160305-r1 |
440 |
- media-libs/mesa[egl,gles2] |
441 |
- ) |
442 |
- rubberband? ( >=media-libs/rubberband-1.8.0 ) |
443 |
- samba? ( net-fs/samba ) |
444 |
- sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] ) |
445 |
- v4l? ( media-libs/libv4l ) |
446 |
- vaapi? ( >=x11-libs/libva-1.4.0[drm?,X?,wayland?] ) |
447 |
- wayland? ( |
448 |
- >=dev-libs/wayland-1.6.0 |
449 |
- >=x11-libs/libxkbcommon-0.3.0 |
450 |
- ) |
451 |
- X? ( |
452 |
- x11-libs/libX11 |
453 |
- x11-libs/libXext |
454 |
- >=x11-libs/libXrandr-1.2.0 |
455 |
- opengl? ( x11-libs/libXdamage ) |
456 |
- vdpau? ( >=x11-libs/libvdpau-0.2 ) |
457 |
- xinerama? ( x11-libs/libXinerama ) |
458 |
- xscreensaver? ( x11-libs/libXScrnSaver ) |
459 |
- xv? ( x11-libs/libXv ) |
460 |
- ) |
461 |
-" |
462 |
-DEPEND="${COMMON_DEPEND} |
463 |
- ${PYTHON_DEPS} |
464 |
- >=dev-lang/perl-5.8 |
465 |
- dev-python/docutils |
466 |
- virtual/pkgconfig |
467 |
- doc? ( dev-python/rst2pdf ) |
468 |
- test? ( >=dev-util/cmocka-1.0.0 ) |
469 |
-" |
470 |
-RDEPEND="${COMMON_DEPEND} |
471 |
- selinux? ( sec-policy/selinux-mplayer ) |
472 |
-" |
473 |
- |
474 |
-PATCHES=( "${FILESDIR}/${P}-make-ffmpeg-version-check-non-fatal.patch" ) |
475 |
- |
476 |
-pkg_pretend() { |
477 |
- if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then |
478 |
- die "Your compiler lacks C++11 TLS support. Use GCC>=4.8.0 or Clang>=3.3." |
479 |
- fi |
480 |
-} |
481 |
- |
482 |
-src_prepare() { |
483 |
- cp "${DISTDIR}/waf-${WAF_PV}" "${S}"/waf || die |
484 |
- chmod +x "${S}"/waf || die |
485 |
- default_src_prepare |
486 |
-} |
487 |
- |
488 |
-src_configure() { |
489 |
- local mywafargs=( |
490 |
- --confdir="${EPREFIX}/etc/${PN}" |
491 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" |
492 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" |
493 |
- |
494 |
- $(usex cli '' '--disable-cplayer') |
495 |
- $(use_enable libmpv libmpv-shared) |
496 |
- |
497 |
- # See deep down below for build-date. |
498 |
- --disable-libmpv-static |
499 |
- --disable-static-build |
500 |
- --disable-optimize # Don't add '-O2' to CFLAGS. |
501 |
- --disable-debug-build # Don't add '-g' to CFLAGS. |
502 |
- --enable-html-build |
503 |
- |
504 |
- $(use_enable doc pdf-build) |
505 |
- $(use_enable vf-dlopen vf-dlopen-filters) |
506 |
- $(use_enable zsh-completion zsh-comp) |
507 |
- $(use_enable test) |
508 |
- |
509 |
- $(use_enable iconv) |
510 |
- $(use_enable samba libsmbclient) |
511 |
- $(use_enable lua) |
512 |
- $(usex luajit '--lua=luajit' '') |
513 |
- $(use_enable libass) |
514 |
- $(use_enable libass libass-osd) |
515 |
- $(use_enable encode encoding) |
516 |
- $(use_enable bluray libbluray) |
517 |
- $(use_enable dvd dvdread) |
518 |
- $(use_enable dvd dvdnav) |
519 |
- $(use_enable cdda) |
520 |
- $(use_enable enca) |
521 |
- $(use_enable libguess) |
522 |
- $(use_enable uchardet) |
523 |
- $(use_enable rubberband) |
524 |
- $(use_enable lcms lcms2) |
525 |
- --disable-vapoursynth # Only available in overlays. |
526 |
- --disable-vapoursynth-lazy |
527 |
- $(use_enable archive libarchive) |
528 |
- |
529 |
- --enable-libavdevice |
530 |
- |
531 |
- # Audio outputs: |
532 |
- $(use_enable sdl sdl2) # Listed under audio, but also includes video. |
533 |
- --disable-sdl1 |
534 |
- $(use_enable oss oss-audio) |
535 |
- --disable-rsound # Only available in overlays. |
536 |
- $(use_enable pulseaudio pulse) |
537 |
- $(use_enable jack) |
538 |
- $(use_enable openal) |
539 |
- --disable-opensles |
540 |
- $(use_enable alsa) |
541 |
- $(use_enable coreaudio) |
542 |
- |
543 |
- # Video outputs: |
544 |
- $(use_enable aqua cocoa) |
545 |
- $(use_enable drm) |
546 |
- $(use_enable gbm) |
547 |
- $(use_enable wayland) |
548 |
- $(use_enable X x11) |
549 |
- $(use_enable xscreensaver xss) |
550 |
- $(use_enable X xext) |
551 |
- $(use_enable xv) |
552 |
- $(use_enable xinerama) |
553 |
- $(use_enable X xrandr) |
554 |
- $(usex opengl "$(use_enable aqua gl-cocoa)" '--disable-gl-cocoa') |
555 |
- $(usex opengl "$(use_enable X gl-x11)" '--disable-gl-x11') |
556 |
- $(usex egl "$(use_enable X egl-x11)" '--disable-egl-x11') |
557 |
- $(usex egl "$(use_enable gbm egl-drm)" '--disable-egl-drm') |
558 |
- $(use_enable wayland gl-wayland) |
559 |
- $(use_enable vdpau) |
560 |
- $(usex vdpau "$(use_enable opengl vdpau-gl-x11)" '--disable-vdpau-gl-x11') |
561 |
- $(use_enable vaapi) # See below for vaapi-glx, vaapi-x-egl. |
562 |
- $(usex vaapi "$(use_enable X vaapi-x11)" '--disable-vaapi-x11') |
563 |
- $(usex vaapi "$(use_enable wayland vaapi-wayland)" '--disable-vaapi-wayland') |
564 |
- $(usex vaapi "$(use_enable gbm vaapi-drm)" '--disable-vaapi-drm') |
565 |
- $(use_enable libcaca caca) |
566 |
- $(use_enable jpeg) |
567 |
- --disable-android |
568 |
- $(use_enable raspberry-pi rpi) |
569 |
- $(usex libmpv "$(use_enable opengl plain-gl)" '--disable-plain-gl') |
570 |
- |
571 |
- # HWaccels: |
572 |
- # Automagic Video Toolbox HW acceleration. See Gentoo bug 577332. |
573 |
- $(use_enable vaapi vaapi-hwaccel) |
574 |
- # Automagic VDPAU HW acceleration. See Gentoo bug 558870. |
575 |
- |
576 |
- # TV features: |
577 |
- $(use_enable v4l tv) |
578 |
- $(use_enable v4l tv-v4l2) |
579 |
- $(use_enable v4l libv4l2) |
580 |
- $(use_enable v4l audio-input) |
581 |
- $(use_enable dvb dvbin) |
582 |
- |
583 |
- # Miscellaneous features: |
584 |
- --disable-apple-remote # Needs testing first. See Gentoo bug 577332. |
585 |
- ) |
586 |
- |
587 |
- if use vaapi && use X; then |
588 |
- mywafargs+=( |
589 |
- $(use_enable opengl vaapi-glx) |
590 |
- $(use_enable egl vaapi-x-egl) |
591 |
- ) |
592 |
- fi |
593 |
- |
594 |
- if ! use egl && ! use opengl && ! use raspberry-pi; then |
595 |
- mywafargs+=(--disable-gl) |
596 |
- fi |
597 |
- |
598 |
- # Create reproducible non-live builds. |
599 |
- [[ ${PV} != *9999* ]] && mywafargs+=(--disable-build-date) |
600 |
- |
601 |
- waf-utils_src_configure "${mywafargs[@]}" |
602 |
-} |
603 |
- |
604 |
-src_install() { |
605 |
- waf-utils_src_install |
606 |
- |
607 |
- if use cli && use luajit; then |
608 |
- pax-mark -m "${ED}"usr/bin/${PN} |
609 |
- fi |
610 |
-} |
611 |
- |
612 |
-pkg_preinst() { |
613 |
- gnome2_icon_savelist |
614 |
-} |
615 |
- |
616 |
-pkg_postinst() { |
617 |
- fdo-mime_desktop_database_update |
618 |
- gnome2_icon_cache_update |
619 |
- |
620 |
- local softvol_0_18_1=0 |
621 |
- for rv in ${REPLACING_VERSIONS}; do |
622 |
- version_compare ${rv} 0.18.1-r1 |
623 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
624 |
- done |
625 |
- |
626 |
- if [[ ${softvol_0_18_1} -eq 1 ]]; then |
627 |
- echo |
628 |
- elog "Starting from version 0.18.1 the software volume control is" |
629 |
- elog "enabled by default, see:" |
630 |
- elog "https://github.com/mpv-player/mpv/blob/v0.18.1/DOCS/interface-changes.rst" |
631 |
- elog "https://github.com/mpv-player/mpv/issues/3322" |
632 |
- elog |
633 |
- elog "This means that volume controls don't change the system volume," |
634 |
- elog "e.g. per-application volume with PulseAudio." |
635 |
- elog "If you want to restore the old behaviour, please refer to" |
636 |
- elog "https://bugs.gentoo.org/show_bug.cgi?id=588492#c7" |
637 |
- echo |
638 |
- fi |
639 |
- |
640 |
- # bash-completion < 2.3-r1 already installs (mostly broken) mpv completion. |
641 |
- if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
642 |
- ! has_version 'app-shells/mpv-bash-completion'; then |
643 |
- elog "If you want to have command-line completion via bash-completion," |
644 |
- elog "please install app-shells/mpv-bash-completion." |
645 |
- fi |
646 |
- |
647 |
- if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
648 |
- has_version 'app-shells/mpv-bash-completion'; then |
649 |
- elog "If command-line completion doesn't work after mpv update," |
650 |
- elog "please rebuild app-shells/mpv-bash-completion." |
651 |
- fi |
652 |
-} |
653 |
- |
654 |
-pkg_postrm() { |
655 |
- fdo-mime_desktop_database_update |
656 |
- gnome2_icon_cache_update |
657 |
-} |
658 |
- |
659 |
-src_test() { |
660 |
- cd "${S}"/build/test || die |
661 |
- for test in *; do |
662 |
- if [[ -x ${test} ]]; then |
663 |
- ./"${test}" || die "Test suite failed" |
664 |
- fi |
665 |
- done |
666 |
-} |