commit:     789363b4890989808fcf25795cd462bc563a1d50
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 16 18:19:49 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 16 18:21:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789363b4

app-shells/starship: add 1.24.1

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-shells/starship/Manifest               |  2 +
 app-shells/starship/starship-1.24.1.ebuild | 66 ++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/app-shells/starship/Manifest b/app-shells/starship/Manifest
index acdb422b3ada..4f9cffb1590a 100644
--- a/app-shells/starship/Manifest
+++ b/app-shells/starship/Manifest
@@ -2,3 +2,5 @@ DIST starship-1.23.0-crates.tar.xz 26250264 BLAKE2B 
c13e472850abb73ebfa960514bef
 DIST starship-1.23.0.tar.gz 10760658 BLAKE2B 
e475e991240d46c2c2bc850ecd439f557f5508112a13731b85ba51d3ff9ccf07c3ec29c345209566a0cca60aa180d0fc0e31ffe2656224497f20a351b6fc83fb
 SHA512 
e04a1b711d91aed4fe756c8f2be87304e8a4fbabc4720e4c39c517829ca9cd4f93b27fb20b9208350147f5ca6af97b5e0572c04a57f5d66172539a1c41110eae
 DIST starship-1.24.0-crates.tar.xz 34085856 BLAKE2B 
d9d94eb46711df432b0c6d998566752e31a203aa1e0e37f302f8ed5db1dc3750198a04038ff5a05f96e831d87d9ad6777fa4af170776bbd1d0784bd4c48ac9de
 SHA512 
e2e71b1f4fd5f596bbc2a3a6949475e209550b8881bbfe8e901457a95bee5cdaea913e40c244ef5cba17b5b29c8d871da889acd183e4778ca35cf4248c74f249
 DIST starship-1.24.0.tar.gz 10808717 BLAKE2B 
f66758970a148fed0827d09350adb4723d6d67ad7474c51df0eaeb15ab1a1d2f6235fe718156728f0745fc5fde98a1e7f1b8d993c7700d2f8f6212085e21c0b1
 SHA512 
cfdcfb7bfb1e02b9f26945fa35eaa44834066de209e1ea321f1c52494bcf5420cabde85553da0924a0ecb0fb0a7db3108de69d2be2ed118a62d1b5b418625837
+DIST starship-1.24.1-crates.tar.xz 34111124 BLAKE2B 
c2b15816bb431343791b9693ecf8c18882313f4911b652fa834c722783eadc0490182ce343898487c9c49f82ba923646f5d81eb7e0e7331641f15215e1f5ef4c
 SHA512 
c41b5a57d97b023fe28222b3f1ac03f45a11316340ce6cc93a20e387deb7440079ddd73429c954a3f44ffe00c3f1da2ee123028f71f65eaa6739f8af812f429b
+DIST starship-1.24.1.tar.gz 10845446 BLAKE2B 
b7a4cd4a4599656a227a3765637a851f5c1355900fff1bc6fd2ae4b87344ea4b9d31ffd9d7a44a756f285234cb07b4af2f36e8f3b0ebee3e7c50f48ad7799284
 SHA512 
7e82e92c77aa35506191b7a431ede407f108366dc7802aafc563d6bd57b6dc4af877ac0ee03f3ede463731fecd906c6b33994161ad3d4a0c63ac8b708e599b8e

diff --git a/app-shells/starship/starship-1.24.1.ebuild 
b/app-shells/starship/starship-1.24.1.ebuild
new file mode 100644
index 000000000000..0f1965f6104a
--- /dev/null
+++ b/app-shells/starship/starship-1.24.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+RUST_MIN_VER="1.89.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
+}

Reply via email to