Change mangal use flags to <shell>-completion
This commit is contained in:
@@ -19,11 +19,11 @@ LICENSE="MIT"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
IUSE="bash fish zsh"
|
IUSE="bash-completion fish-completion zsh-completion"
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
bash? ( app-shells/bash )
|
bash-completion? ( app-shells/bash )
|
||||||
fish? ( app-shells/fish )
|
fish-completion? ( app-shells/fish )
|
||||||
zsh? ( app-shells/zsh )
|
zsh-completion? ( app-shells/zsh )
|
||||||
"
|
"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
@@ -36,18 +36,18 @@ src_compile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
if use zsh; then
|
if use zsh-completion; then
|
||||||
insinto "/usr/share/zsh/vendor-completions"
|
insinto "/usr/share/zsh/vendor-completions"
|
||||||
cp completions/mangal.zsh completions/_mangal
|
cp completions/mangal.zsh completions/_mangal
|
||||||
doins completions/_mangal
|
doins completions/_mangal
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if use fish; then
|
if use fish-completion; then
|
||||||
insinto "/usr/share/fish/completions"
|
insinto "/usr/share/fish/completions"
|
||||||
doins completions/mangal.fish
|
doins completions/mangal.fish
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if use bash; then
|
if use bash-completion; then
|
||||||
insinto "/usr/share/bash-completion/completions"
|
insinto "/usr/share/bash-completion/completions"
|
||||||
cp completions/mangal.bash completions/mangal
|
cp completions/mangal.bash completions/mangal
|
||||||
doins completions/mangal
|
doins completions/mangal
|
||||||
|
Reference in New Issue
Block a user