commit: 92cd3b1a04a0e576d469c71b4545ea6ba4035fe3 Author: Tony Olagbaiye <bqv <AT> fron <DOT> io> AuthorDate: Sat Apr 22 23:12:12 2023 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Sat Apr 22 23:12:12 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=92cd3b1a
app-admin/rbw: new package, add 9999 Signed-off-by: Tony Olagbaiye <bqv <AT> fron.io> app-admin/rbw/rbw-9999.ebuild | 58 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/app-admin/rbw/rbw-9999.ebuild b/app-admin/rbw/rbw-9999.ebuild new file mode 100644 index 000000000..c0ebfc061 --- /dev/null +++ b/app-admin/rbw/rbw-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cargo + +DESCRIPTION="unofficial bitwarden cli" +HOMEPAGE="https://git.tozt.net/rbw" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.tozt.net/rbw" +else + SRC_URI="https://git.tozt.net/rbw/snapshot/rbw-${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES})" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bash-completion zsh-completion fish-completion" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="virtual/rust" + +src_unpack() { + if [[ ${PV} = *9999* ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + +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 + + if use fish-completion; then + insinto /usr/share/fish/completions + rbw gen-completions fish > rbw.fish + doins rbw.fish + fi + + if use zsh-completion; then + insinto /usr/share/zsh-completion/completions + rbw gen-completions zsh > _rbw + doins _rbw + fi +}
