summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2016-04-26 13:34:44 +0300
committerIan Delaney <idella4@gentoo.org>2016-04-26 23:33:23 +0800
commita9d7e745a5d734895a78ea6f97326db2ef6e1c52 (patch)
tree7ea41ee3cc76d3085545e48bef3619c984a5a284 /media-video
parentmedia-video/mpv: don't bother zsh users with bash completion in 0.17.0-r2 (diff)
downloadgentoo-a9d7e745a5d734895a78ea6f97326db2ef6e1c52.tar.gz
gentoo-a9d7e745a5d734895a78ea6f97326db2ef6e1c52.tar.bz2
gentoo-a9d7e745a5d734895a78ea6f97326db2ef6e1c52.zip
media-video/mpv: propagate recent changes to 9999 ebuild
Closes: https://github.com/gentoo/gentoo/pull/1356 Package-Manager: portage-2.2.28 Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/mpv/mpv-9999.ebuild16
1 files changed, 15 insertions, 1 deletions
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild
index 05e76314cc07..5cfce9c09b43 100644
--- a/media-video/mpv/mpv-9999.ebuild
+++ b/media-video/mpv/mpv-9999.ebuild
@@ -28,7 +28,7 @@ DOCS+=( README.md )
# See Copyright in source tarball and bug #506946. Waf is BSD, libmpv is ISC.
LICENSE="GPL-2+ BSD ISC"
SLOT="0"
-IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb +dvd +egl +enca
+IUSE="aqua +alsa archive bluray cdda +cli coreaudio doc drm dvb dvd +egl +enca
encode gbm +iconv jack jpeg lcms +libass libav libcaca libguess libmpv lua
luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba -sdl
selinux test uchardet v4l vaapi vdpau vf-dlopen wayland +X xinerama
@@ -266,6 +266,20 @@ pkg_preinst() {
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
+
+ # bash-completion prior to 2.3-r1 installs (mostly broken) mpv completion.
+ if use cli && ! use zsh-completion && \
+ ! has_version '<app-shells/bash-completion-2.3-r1' && \
+ ! has_version 'app-shells/mpv-bash-completion'; then
+ elog "If you want to have command-line completion via bash-completion,"
+ elog "please install app-shells/mpv-bash-completion."
+ fi;
+
+ if use cli && [[ -n ${REPLACING_VERSIONS} ]] && \
+ has_version 'app-shells/mpv-bash-completion'; then
+ elog "If command-line completion doesn't work after mpv update,"
+ elog "please rebuild app-shells/mpv-bash-completion."
+ fi;
}
pkg_postrm() {