app-admin/rbw: add 1.14.0

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2025-08-26 00:03:10 +09:00
parent a2e07d7770
commit 6f2102f6cc
2 changed files with 69 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST rbw-1.13.2-crates.tar.xz 21883868 BLAKE2B 5f2fa098bbc6208874740c4415297d5c347f7507bbead4059db57cff3871ed21f206e55a41353f5bd0c88c24d00478876d04c2de90b773fbbd78d7c6acab0c21 SHA512 1fb0d2147b5b76d3a5144e387050fa83a3003462d7ba4aff8326cbae783ceda41543d358e5476924a1093883010e7d03bbc7558e21cefdcf92088e4bfdc89274
DIST rbw-1.13.2.tar.gz 114013 BLAKE2B 7d5abc46807ff7255dec555fdc66e02b679703f705f1857a4ba6323cca0db4e005fb26b88cffd17002b41dcf5dfabf742e38295d45f88272f9f75642976119ad SHA512 15ade846222db380907f52d2b7494c24a3e397a91e7ffdff60a17f874f90734ca282265c247d6229fec0936a25b63dfe8add072fb29f5c045d7c7dfd44f865dc
DIST rbw-1.14.0-crates.tar.xz 20219004 BLAKE2B d4d035ce862ce0f99ba247783acccb74b88b45b67d13439a98bfd5471acdab432262940afcb11ad3a512d8fd3197b1811e50ea462eb7d0efe61e35d09294df40 SHA512 c16627fc7598a65a3dd3b0a415664f4146fee1ea069fddd639e307da3f42ba0719a2328e4bfbb2a1648758271abe7c200b65bfc62ac8a4af82d8fd90e6ec501c
DIST rbw-1.14.0.tar.gz 124487 BLAKE2B 02e354cc792049a94856b9e622b143435e0ea77ebabc9c5d6b3958cf80ea2caef615a0f12174faf68c665d11c0ff9a838a5767136ab96fdd031cd4ef6107a354 SHA512 3f077e4f0c860eb41d08af6ba9396df2b79e3dec255ffc52946e2a83eefb7838fd19281b0bd38d3db7384ecd355a92bd58078b83525e4b782c5e0edddd5653bf

View File

@@ -0,0 +1,67 @@
# 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
}