1 |
commit: a9d7e745a5d734895a78ea6f97326db2ef6e1c52 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Apr 26 10:34:44 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 26 15:33:23 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d7e745 |
7 |
|
8 |
media-video/mpv: propagate recent changes to 9999 ebuild |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/1356 |
11 |
Package-Manager: portage-2.2.28 |
12 |
|
13 |
Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org> |
14 |
|
15 |
media-video/mpv/mpv-9999.ebuild | 16 +++++++++++++++- |
16 |
1 file changed, 15 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
19 |
index 05e7631..5cfce9c 100644 |
20 |
--- a/media-video/mpv/mpv-9999.ebuild |
21 |
+++ b/media-video/mpv/mpv-9999.ebuild |
22 |
@@ -28,7 +28,7 @@ DOCS+=( README.md ) |
23 |
# See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC. |
24 |
LICENSE="GPL-2+ BSD ISC" |
25 |
SLOT="0" |
26 |
-IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb +dvd +egl +enca |
27 |
+IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca |
28 |
encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua |
29 |
luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba -sdl |
30 |
selinux test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama |
31 |
@@ -266,6 +266,20 @@ pkg_preinst() { |
32 |
pkg_postinst() { |
33 |
fdo-mime_desktop_database_update |
34 |
gnome2_icon_cache_update |
35 |
+ |
36 |
+ # bash-completion prior to 2.3-r1 installs (mostly broken) mpv completion. |
37 |
+ if use cli && ! use zsh-completion && \ |
38 |
+ ! has_version '<app-shells/bash-completion-2.3-r1' && \ |
39 |
+ ! has_version 'app-shells/mpv-bash-completion'; then |
40 |
+ elog "If you want to have command-line completion via bash-completion," |
41 |
+ elog "please install app-shells/mpv-bash-completion." |
42 |
+ fi; |
43 |
+ |
44 |
+ if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \ |
45 |
+ has_version 'app-shells/mpv-bash-completion'; then |
46 |
+ elog "If command-line completion doesn't work after mpv update," |
47 |
+ elog "please rebuild app-shells/mpv-bash-completion." |
48 |
+ fi; |
49 |
} |
50 |
|
51 |
pkg_postrm() { |