commit: e27c3fd8768fa7467854f47a82a406b4da154f07 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Wed Dec 31 13:25:24 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Wed Dec 31 13:25:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e27c3fd8
app-shells/starship: add 1.24.2 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-shells/starship/Manifest | 2 + app-shells/starship/starship-1.24.2.ebuild | 66 ++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/app-shells/starship/Manifest b/app-shells/starship/Manifest index 4f9cffb1590a..70580be264ad 100644 --- a/app-shells/starship/Manifest +++ b/app-shells/starship/Manifest @@ -4,3 +4,5 @@ DIST starship-1.24.0-crates.tar.xz 34085856 BLAKE2B d9d94eb46711df432b0c6d998566 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 +DIST starship-1.24.2-crates.tar.xz 32217520 BLAKE2B b7421de0fe4d62dc5382483a4cfaaf9f1cccabe0dfa6493564c7ff532f5df9db5493d3d845cbbb8d30ccbb26500718d479edc25492feb6c3d033b8d7116d79d0 SHA512 cc4ede2e47d8f89fd0d9ece8ca162a47dcbf6c6895038f93773275c3d41aa3f95a89c92c77e063dc2cfc5f7e025083c3828eeadb5c836c94c75edc36977901ca +DIST starship-1.24.2.tar.gz 10845172 BLAKE2B d03065d61e3efbe991b7d4e25df1748f4b8951f074357ae310c679ce7c6eea05d6c9626de350289ef10998e228b696ecf0224f07070cde32600aaa9571f9441b SHA512 07c2bb32ec25cc698e4ad713b9c5285041f6fa3c868bace740765cbfe9e6cd41bbb471609b22397314e63a4edda2a20a732837a48ba395093da833efa815a15f diff --git a/app-shells/starship/starship-1.24.2.ebuild b/app-shells/starship/starship-1.24.2.ebuild new file mode 100644 index 000000000000..0f1965f6104a --- /dev/null +++ b/app-shells/starship/starship-1.24.2.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 +}
