app-misc/cheat: restore zsh-completion use

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2020-12-27 16:45:47 +01:00
parent 831bd1cd16
commit 8c82cbbd4c

View File

@@ -90,9 +90,9 @@ SRC_URI="
LICENSE="MIT Apache-2.0 BSD BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="zsh-completion"
RDEPEND=""
RDEPEND="zsh-completion? ( !app-shells/zsh-completions )"
BDEPEND="app-text/pandoc"
src_prepare() {
@@ -110,11 +110,13 @@ src_test() {
src_install() {
dobin "dist/${PN}"
newbashcomp scripts/cheat.bash "${PN}"
insinto /usr/share/zsh/site-functions
newins scripts/cheat.zsh _cheat
insinto /usr/share/fish/vendor_completions.d
doins scripts/cheat.fish
doman doc/cheat.1
if use zsh-completion; then
insinto /usr/share/zsh/site-functions
newins scripts/cheat.zsh _cheat
fi
}
pkg_postinst() {