mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -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
|
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"
|
DESCRIPTION="cheat allows you to create and view interactive cheatsheets on the command-line"
|
||||||
HOMEPAGE="https://github.com/cheat/cheat"
|
HOMEPAGE="https://github.com/cheat/cheat"
|
||||||
@@ -37,12 +37,11 @@ src_install() {
|
|||||||
use man && doman doc/${PN}.1
|
use man && doman doc/${PN}.1
|
||||||
|
|
||||||
newbashcomp scripts/${PN}.bash ${PN}
|
newbashcomp scripts/${PN}.bash ${PN}
|
||||||
insinto /usr/share/fish/vendor_completions.d
|
dofishcomp "scripts/$PN.fish"
|
||||||
doins scripts/${PN}.fish
|
|
||||||
|
|
||||||
if use zsh-completion; then
|
if use zsh-completion; then
|
||||||
insinto /usr/share/zsh/site-functions
|
mv "scripts/${PN}.zsh" "scripts/_${PN}"
|
||||||
newins scripts/${PN}.zsh _cheat
|
newzshcomp "scripts/${PN}.zsh" "_${PN}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user