mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
app-admin/rbw: new package, add 9999
Signed-off-by: Tony Olagbaiye <bqv@fron.io>
This commit is contained in:
58
app-admin/rbw/rbw-9999.ebuild
Normal file
58
app-admin/rbw/rbw-9999.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user