mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
app-admin/rbw: sync live
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -1,25 +1,39 @@
|
|||||||
# Copyright 2021-2023 Gentoo Authors
|
# Copyright 2021-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit cargo shell-completion
|
inherit cargo shell-completion
|
||||||
|
|
||||||
DESCRIPTION="unofficial bitwarden cli"
|
DESCRIPTION="Unofficial Bitwarden CLI"
|
||||||
HOMEPAGE="https://git.tozt.net/rbw"
|
HOMEPAGE="https://git.tozt.net/rbw"
|
||||||
|
|
||||||
if [[ ${PV} = *9999* ]]; then
|
if [[ ${PV} = *9999* ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://git.tozt.net/rbw"
|
EGIT_REPO_URI="https://git.tozt.net/rbw"
|
||||||
else
|
else
|
||||||
SRC_URI="https://git.tozt.net/rbw/snapshot/rbw-${PV}.tar.gz -> ${P}.tar.gz
|
SRC_URI="https://git.tozt.net/rbw/snapshot/${P}.tar.gz
|
||||||
$(cargo_crate_uris ${CRATES})"
|
${CARGO_CRATE_URIS}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
|
# Dependent crate licenses
|
||||||
|
LICENSE+=" Apache-2.0 BSD Boost-1.0 ISC MIT Unicode-DFS-2016"
|
||||||
|
# Manually added crate licenses
|
||||||
|
LICENSE+=" openssl"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
|
||||||
|
# copypasta crate provides wayland clipboard support via dlopen calls against
|
||||||
|
# libwayland-client.so
|
||||||
|
RDEPEND="app-crypt/pinentry"
|
||||||
|
BDEPEND=">=virtual/rust-1.74"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="
|
||||||
|
usr/bin/rbw
|
||||||
|
usr/bin/rbw-agent
|
||||||
|
"
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
if [[ ${PV} = *9999* ]]; then
|
if [[ ${PV} = *9999* ]]; then
|
||||||
git-r3_src_unpack
|
git-r3_src_unpack
|
||||||
@@ -29,15 +43,21 @@ src_unpack() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# cc-rs picks up CFLAGS from the env
|
||||||
|
export CFLAGS
|
||||||
|
cargo_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
cargo_src_install
|
cargo_src_install
|
||||||
|
|
||||||
rbw gen-completions bash > rbw.bash || die
|
local comp DOCS="CHANGELOG.md README.md"
|
||||||
dobashcomp rbw.bash
|
for comp in bash fish zsh; do
|
||||||
|
"$(cargo_target_dir)"/rbw gen-completions ${comp} > rbw.${comp} || die
|
||||||
rbw gen-completions fish > rbw.fish || die
|
done
|
||||||
|
newbashcomp rbw.bash rbw
|
||||||
dofishcomp rbw.fish
|
dofishcomp rbw.fish
|
||||||
|
newzshcomp rbw.zsh _rbw
|
||||||
rbw gen-completions zsh > _rbw || die
|
einstalldocs
|
||||||
dozshcomp _rbw
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user