mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user