commit:     491cdfbc1086228ce9eaa9de26e8aaa9a16da83a
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Mon Jul 21 00:33:33 2025 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Mon Jul 21 00:35:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=491cdfbc

app-misc/cheat: use shell-completion.eclass instead of doing insinto

fixes the following pkgcheck warnigns:

app-misc/cheat
  DeprecatedInsinto: version 4.2.3: deprecated insinto usage (use
    dofishcomp or newfishcomp from shell-completion.eclass instead), line
    40: insinto /usr/share/fish/vendor_completions.d
  DeprecatedInsinto: version 4.2.3: deprecated insinto usage (use
    dozshcomp or newzshcomp from shell-completion.eclass instead), line 44:
    insinto /usr/share/zsh/site-functions

Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>

 app-misc/cheat/cheat-4.2.3.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/app-misc/cheat/cheat-4.2.3.ebuild 
b/app-misc/cheat/cheat-4.2.3.ebuild
index d45719a630..dc4c442fd6 100644
--- a/app-misc/cheat/cheat-4.2.3.ebuild
+++ b/app-misc/cheat/cheat-4.2.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 go-module optfeature
+inherit shell-completion go-module optfeature
 
 DESCRIPTION="cheat allows you to create and view interactive cheatsheets on 
the command-line"
 HOMEPAGE="https://github.com/cheat/cheat";
@@ -37,12 +37,11 @@ src_install() {
        use man && doman doc/${PN}.1
 
        newbashcomp scripts/${PN}.bash ${PN}
-       insinto /usr/share/fish/vendor_completions.d
-       doins scripts/${PN}.fish
+       dofishcomp "scripts/$PN.fish"
 
        if use zsh-completion; then
-               insinto /usr/share/zsh/site-functions
-               newins scripts/${PN}.zsh _cheat
+               mv "scripts/${PN}.zsh" "scripts/_${PN}"
+               newzshcomp "scripts/${PN}.zsh" "_${PN}"
        fi
 }
 

Reply via email to