app-shells/starship: add 1.25.1

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-05-01 16:26:33 +03:00
parent a89143d5e0
commit aff2fc10cf
2 changed files with 66 additions and 0 deletions
+2
View File
@@ -8,3 +8,5 @@ DIST starship-1.24.2-crates.tar.xz 32217520 BLAKE2B b7421de0fe4d62dc5382483a4cfa
DIST starship-1.24.2.tar.gz 10845172 BLAKE2B d03065d61e3efbe991b7d4e25df1748f4b8951f074357ae310c679ce7c6eea05d6c9626de350289ef10998e228b696ecf0224f07070cde32600aaa9571f9441b SHA512 07c2bb32ec25cc698e4ad713b9c5285041f6fa3c868bace740765cbfe9e6cd41bbb471609b22397314e63a4edda2a20a732837a48ba395093da833efa815a15f
DIST starship-1.25.0-crates.tar.xz 31514820 BLAKE2B 13ab82a98cbb8ec1abb05a70026d2a36fd0c7743c53fb84375757e2f0d366358516eb579a69f5df8a5a983f24762ff644f063b100c12139affb0c26953b59173 SHA512 b834f36a36820e4aa15564e4ac68b4b903dfa0d959ea0a1d1d888745d36268de1143aaca528d103d49ac7c9fcb20fc0b3f1eba8d0cae531f322e0945a07028a9
DIST starship-1.25.0.tar.gz 10871784 BLAKE2B 7b62464a6934ebf3eed87c0591b2a1e8b889a96801e2e63dcba2ec8d72898455090b8a7616f80d80509c7f4281f41cd3915ff69d18f48edefe0692f204eb79e4 SHA512 ed3e0be311a0838e894039d24e2ae527792517ebb933cf0126994c6a872012d58fad0c821b2d027fe91cfc233619de4fc272f0768493a03a94bf1799e3d53e36
DIST starship-1.25.1-crates.tar.xz 31162024 BLAKE2B 3ac54466e535d9b452299f3865abb319dcd8013d2ca934ea3031799f36bc7d7f8039e2cd633108a17b10f742dd69db1add3bff8463e3e130e432699a75a9a272 SHA512 866bb32581224ef8dcac0540ae2bb0ef310fe2fd48ff11375678d3d150b4663914be4f376ca4fd66360ce37e5e064427effdbe6f80407cdf188e21564de4caba
DIST starship-1.25.1.tar.gz 10962049 BLAKE2B 7024fb9c7143e9fed9ba445bba45881b42999246d41ad2a7199277ac3e7e9425eaaf3f4c670a4ca6c75c06cca7e4eae1571917e142ed3f76280d5e5a8e9cadd1 SHA512 f5d8b99f67e5dad1f36f8f0dd5810ac34f3402f942d27815737b342a66f06035cda8403e14bad06d59d8a140602e1326da9979ec803458a74c1ee60cacbbe25e
@@ -0,0 +1,64 @@
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
RUST_MIN_VER="1.91.0"
inherit cargo optfeature shell-completion
DESCRIPTION="The minimal, blazing-fast, and infinitely customizable prompt for any shell"
HOMEPAGE="https://starship.rs/"
SRC_URI="https://github.com/starship/starship/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
LICENSE="ISC"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0 Unlicense WTFPL-2
ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
BDEPEND="dev-build/cmake"
QA_FLAGS_IGNORED="usr/bin/starship"
src_prepare() {
sed -e '/^strip/s/true/false/' -i Cargo.toml || die # bug 866133
default
}
src_configure() {
export PKG_CONFIG_ALLOW_CROSS=1
export OPENSSL_NO_VENDOR=true
cargo_src_configure
}
src_compile() {
cargo_src_compile
local STARSHIP_BIN="$(cargo_target_dir)/${PN}"
# Prepare shell completion generation
mkdir "${T}/completions" || die
local shell
for shell in bash fish zsh; do
"${STARSHIP_BIN}" completions ${shell} > "${T}/completions/${shell}" || die
done
}
src_install() {
dobin "$(cargo_target_dir)/${PN}"
dodoc README.md
newbashcomp "${T}/completions/bash" "${PN}"
newzshcomp "${T}/completions/zsh" "${PN}"
newfishcomp "${T}/completions/fish" "${PN}.fish"
}
pkg_postinst() {
optfeature "font support" media-fonts/iosevka media-fonts/noto-emoji
}