app-admin/rbw - 1.14.1 (guru)

Search

Install

Install this version:

emerge -a =app-admin/rbw-1.14.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-admin/rbw-1.14.1

Or alternatively:

emerge --autounmask-write -a =app-admin/rbw-1.14.1

Package Information

Description:
Unofficial Bitwarden CLI
Homepage:
https://git.tozt.net/rbw
License:
MIT Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-3.0 openssl

Ebuild Details

Version EAPI Keywords Slot
1.14.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="
"
RUST_MIN_VER="1.82.0"

inherit cargo shell-completion

DESCRIPTION="Unofficial Bitwarden CLI"
HOMEPAGE="https://git.tozt.net/rbw"

if [[ ${PV} = *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/doy/rbw.git"
else
	SRC_URI="
		https://github.com/doy/rbw/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
		https://github.com/pastalian/distfiles/releases/download/${P}/${P}-crates.tar.xz
	"
	KEYWORDS="~amd64"
fi

LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT MPL-2.0 Unicode-3.0"
# Manually added crate licenses
LICENSE+=" openssl"
SLOT="0"

RDEPEND="app-crypt/pinentry"

QA_FLAGS_IGNORED="
	usr/bin/rbw
	usr/bin/rbw-agent
"

src_unpack() {
	if [[ ${PV} = *9999* ]]; then
		git-r3_src_unpack
		cargo_live_src_unpack
	else
		cargo_src_unpack
	fi
}

src_compile() {
	# cc-rs picks up CFLAGS from the env
	export CFLAGS
	cargo_src_compile
}

src_install() {
	cargo_src_install

	local comp DOCS="CHANGELOG.md README.md"
	for comp in bash fish zsh; do
		"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || \
			die "Failed to generate completions for ${comp}."
	done
	newbashcomp rbw.bash rbw
	dofishcomp rbw.fish
	newzshcomp rbw.zsh _rbw
	einstalldocs
}

Inherited Eclasses

Dependencies

RDEPEND

app-crypt/pinentry

Manifest for 1.14.1

Type File Size Source URLs
DIST rbw-1.14.1-crates.tar.xz 20241568 bytes https://github.com/pastalian/distfiles/releases/download/rbw-1.14.1/rbw-1.14.1-crates.tar.xz
DIST rbw-1.14.1.tar.gz 124422 bytes https://github.com/doy/rbw/archive/refs/tags/1.14.1.tar.gz