aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Olagbaiye <bqv@fron.io>2023-04-23 00:12:12 +0100
committerTony Olagbaiye <bqv@fron.io>2023-04-23 00:12:12 +0100
commit92cd3b1a04a0e576d469c71b4545ea6ba4035fe3 (patch)
treef50eca51f987156650349dcd2e6f99da16192d02 /app-admin/rbw
parentapp-vim/vala-syntax: new package, add 20200502 (diff)
downloadguru-92cd3b1a04a0e576d469c71b4545ea6ba4035fe3.tar.gz
guru-92cd3b1a04a0e576d469c71b4545ea6ba4035fe3.tar.bz2
guru-92cd3b1a04a0e576d469c71b4545ea6ba4035fe3.zip
app-admin/rbw: new package, add 9999
Signed-off-by: Tony Olagbaiye <bqv@fron.io>
Diffstat (limited to 'app-admin/rbw')
-rw-r--r--app-admin/rbw/rbw-9999.ebuild58
1 files changed, 58 insertions, 0 deletions
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
+}