commit: ca8a78531e2f3214ff790100c047e8b7c723008c Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Mon May 1 19:07:41 2023 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Mon May 1 19:07:41 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca8a7853
app-admin/rbw: fix completions install Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> app-admin/rbw/rbw-9999.ebuild | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/app-admin/rbw/rbw-9999.ebuild b/app-admin/rbw/rbw-9999.ebuild index 87e1c6a5c..9e9ca4d11 100644 --- a/app-admin/rbw/rbw-9999.ebuild +++ b/app-admin/rbw/rbw-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 2021 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cargo +inherit cargo shell-completion DESCRIPTION="unofficial bitwarden cli" HOMEPAGE="https://git.tozt.net/rbw" @@ -19,11 +19,6 @@ fi LICENSE="MIT" SLOT="0" -IUSE="bash-completion zsh-completion fish-completion" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="virtual/rust" src_unpack() { if [[ ${PV} = *9999* ]]; then @@ -37,21 +32,12 @@ src_unpack() { src_install() { cargo_src_install - if use bash-completion; then - insinto /usr/share/bash-completion/completions - rbw gen-completions bash > rbw.bash - doins rbw.bash - fi + rbw gen-completions bash > rbw.bash || die + dobashcomp rbw.bash - if use fish-completion; then - insinto /usr/share/fish/completions - rbw gen-completions fish > rbw.fish - doins rbw.fish - fi + rbw gen-completions fish > rbw.fish || die + dofishcomp rbw.fish - if use zsh-completion; then - insinto /usr/share/zsh-completion/completions - rbw gen-completions zsh > _rbw - doins _rbw - fi + rbw gen-completions zsh > _rbw || die + dozshcomp _rbw }
