media-video/mpv: don't bother zsh users with bash completion in 0.17.0-r2
authorIlya Tumaykin <itumaykin@gmail.com>
Tue, 26 Apr 2016 10:04:04 +0000 (13:04 +0300)
committerIan Delaney <idella4@gentoo.org>
Tue, 26 Apr 2016 15:33:23 +0000 (23:33 +0800)
Package-Manager: portage-2.2.28

Signed-off-by: Ian Delaney <idella4@gentoo.org>
media-video/mpv/mpv-0.17.0-r2.ebuild

index 33a5f174401f1813349e00265148a541229413aa..495b7488f971289af619543e603b35bafdcf8e89 100644 (file)
@@ -282,7 +282,8 @@ pkg_postinst() {
        gnome2_icon_cache_update
 
        # bash-completion prior to 2.3-r1 installs (mostly broken) mpv completion.
-       if use cli && ! has_version '<app-shells/bash-completion-2.3-r1' && \
+       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."