dev-embedded/probe-rs-tools: new package, add 0.31.0

Signed-off-by: AshyPinguin <pinguinlars1105+gentoo@gmail.com>
This commit is contained in:
AshyPinguin
2026-05-24 15:27:00 +02:00
parent 8b6fb25c74
commit f0f57baf24
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.15.1
EAPI=8
RUST_MIN_VER="1.88"
inherit cargo shell-completion
DESCRIPTION="A collection of on chip debugging tools to communicate with microchips."
HOMEPAGE="https://probe.rs"
SRC_URI="
https://github.com/probe-rs/probe-rs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://codeberg.org/AshyPinguin/vendor-tarballs/releases/download/${P}/${P}-crates.tar.xz
"
S="${WORKDIR}/probe-rs-${PV}/probe-rs-tools"
LICENSE="|| ( Apache-2.0 MIT )"
# Dependent crate licenses
LICENSE+="
0BSD Apache-2.0 BSD-2 BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0
Unicode-3.0 Unlicense ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
src_install() {
cargo_src_install
for i in bash fish zsh; do
SHELL="/usr/bin/${i}" "${D}/usr/bin/probe-rs" complete install --manual > "${T}/probe-rs.${i}"
done
dobashcomp "${T}/probe-rs.bash"
dofishcomp "${T}/probe-rs.fish"
dozshcomp "${T}/probe-rs.zsh"
}