mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
app-portage/emlop: Using eclass 'shell-completion', fixed 'debug' USE
Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2017-2022 Gentoo Authors
|
# Copyright 2017-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -65,7 +65,7 @@ CRATES="
|
|||||||
winapi-x86_64-pc-windows-gnu-0.4.0
|
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit cargo bash-completion-r1
|
inherit cargo shell-completion
|
||||||
|
|
||||||
DESCRIPTION="A fast, accurate, ergonomic emerge.log parser"
|
DESCRIPTION="A fast, accurate, ergonomic emerge.log parser"
|
||||||
HOMEPAGE="https://github.com/vincentdephily/emlop"
|
HOMEPAGE="https://github.com/vincentdephily/emlop"
|
||||||
@@ -86,17 +86,15 @@ src_install() {
|
|||||||
cargo_src_install
|
cargo_src_install
|
||||||
einstalldocs
|
einstalldocs
|
||||||
if use bash-completion; then
|
if use bash-completion; then
|
||||||
./target/release/emlop complete bash > emlop
|
./target/$(usex debug debug release)/emlop complete bash > "${PN}"
|
||||||
dobashcomp emlop
|
dobashcomp emlop
|
||||||
fi
|
fi
|
||||||
if use zsh-completion; then
|
if use zsh-completion; then
|
||||||
./target/release/emlop complete zsh > _emlop
|
./target/$(usex debug debug release)/emlop complete zsh > "_${PN}"
|
||||||
insinto /usr/share/zsh/site-functions
|
dozshcomp "_${PN}"
|
||||||
doins _emlop
|
|
||||||
fi
|
fi
|
||||||
if use fish-completion; then
|
if use fish-completion; then
|
||||||
./target/release/emlop complete fish > emlop.fish
|
./target/$(usex debug debug release)/emlop complete fish > "${PN}.fish"
|
||||||
insinto /usr/share/fish/vendor_completions.d
|
dofishcomp "${PN}.fish"
|
||||||
doins emlop.fish
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user