commit:     a65931f9b42f4bf748ef8ca632dc52cc68f35a5e
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 19:30:30 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 28 07:06:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a65931f9

app-shells/starship: add 1.24.0

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

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

diff --git a/app-shells/starship/Manifest b/app-shells/starship/Manifest
index a4fab073c46c..acdb422b3ada 100644
--- a/app-shells/starship/Manifest
+++ b/app-shells/starship/Manifest
@@ -1,2 +1,4 @@
 DIST starship-1.23.0-crates.tar.xz 26250264 BLAKE2B 
c13e472850abb73ebfa960514beff2e9ea7a156f103e05d029142f3809fb27aacdbe7485af687d51d214a0c0f0960ac32f879dac7f8ba414757d83581d76c877
 SHA512 
f144704bfa32574f87dcb8d71be3efc55449f1aeefed4aaae22883ad93e237a3e8bbc5754c31540735909eff4ed8cc263082f7646af2f98b73827755ff917bf8
 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

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