commit:     8c82cbbd4cfb2dc03c4971cc7d3c704cc51fbdae
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Dec 27 15:45:47 2020 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon Feb 22 01:18:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8c82cbbd

app-misc/cheat: restore zsh-completion use

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 .../cheat/{cheat-4.2.0-r1.ebuild => cheat-4.2.0-r2.ebuild}     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/app-misc/cheat/cheat-4.2.0-r1.ebuild 
b/app-misc/cheat/cheat-4.2.0-r2.ebuild
similarity index 95%
rename from app-misc/cheat/cheat-4.2.0-r1.ebuild
rename to app-misc/cheat/cheat-4.2.0-r2.ebuild
index 036f2c13..57a32bd0 100644
--- a/app-misc/cheat/cheat-4.2.0-r1.ebuild
+++ b/app-misc/cheat/cheat-4.2.0-r2.ebuild
@@ -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() {

Reply via email to