summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-01-17 16:16:16 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-01-17 16:21:42 +0200
commitaf65073c61ea3d10bc1ffef650c2ab9807d339ca (patch)
treeaa1f927ac5a073336bed4dec0fca429c9e81fa8e /app-shells
parentdev-lang/go: add 1.23.5 (diff)
downloadgentoo-af65073c61ea3d10bc1ffef650c2ab9807d339ca.tar.gz
gentoo-af65073c61ea3d10bc1ffef650c2ab9807d339ca.tar.bz2
gentoo-af65073c61ea3d10bc1ffef650c2ab9807d339ca.zip
app-shells/starship: add 1.22.1, improve shell handle
- use single distfile package, because the list of crates is huge - install shell-completion files Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/starship/Manifest2
-rw-r--r--app-shells/starship/starship-1.22.1.ebuild69
2 files changed, 71 insertions, 0 deletions
diff --git a/app-shells/starship/Manifest b/app-shells/starship/Manifest
index f12fd44248d1..5be2dc46eeca 100644
--- a/app-shells/starship/Manifest
+++ b/app-shells/starship/Manifest
@@ -391,6 +391,8 @@ DIST slab-0.4.9.crate 17108 BLAKE2B 8e5288c4d00efa915e7be27b55f2204850968624f0d8
DIST smallvec-1.13.2.crate 35216 BLAKE2B 31a268aad595c06cdb078577a97b089dbea156a0df307a3e6aaaf4861bd9a680c5b11921da9dbdb1bcfe17d58c0cbede1ffe6bba3aef59b384fb1b9703c62d27 SHA512 a97c758b668e40ad9eb572e65feeae4954e09200a04ab92e26a13b48894381cd3a3d2571070c4b7a5e181182e1ede9688f990650342ec69ecfe1a264d234c679
DIST starship-1.20.1.crate 349540 BLAKE2B 1961b68596bbf5bb25ca36ef882382724c1e34d93671ace290f8f4bea54cf3e6f59dde6b84a8c4e55707a0d39f9826ff19d31990b5e4fdab11720c8a5dc8b165 SHA512 8e26455d90e92c1dd2f759d94c08c04c0f4e4ec1dbe07c39d273074e2d713128fec435740810eaf86a552b61faa90077b3e0cec75d6e8e3049e5a0e125ad63d8
DIST starship-1.21.1.crate 351548 BLAKE2B 6f4681bef17557ab88fd7fa780317ae7e907fde7fe6b0e547af30423e447d90af0a038c30f9e99beff182470dec8388cdfbf804a192d719a50d15557549e3dfb SHA512 bea60890fb384fe3a32518122422675271e6c316f5eb2d75c00e0d5bc70a9a1a1dc2eff774eb2b4036ca15687af7ea46c320c499b5d7d81f43e3fd02dea330ca
+DIST starship-1.22.1-crates.tar.xz 35080388 BLAKE2B 041bb5c5375084546a33998583eea2e4ddb5c4abd2a1d7e95ce1601cbaf61204be3281b2f035402af01909d5766611a25a35b7d85f33c7dea4a411a5bf5c5e84 SHA512 dd34614c1bee2fbb5053b2b8320a450749a04f941766e834eb7fbd4b856d1aa4d744046c10ba9149aad19d11ef446497c7c0b63b44abb3cf5569a0c700ed6982
+DIST starship-1.22.1.tar.gz 9444990 BLAKE2B fd062b3cdf08fde07fd8fd67112ae9f5330c8a96a55f7c69b1a616e113580bbf3e7dd484a1e0ffd3d7bafab8a1a0618dc12bff7ddacb9d310e9287b89ceee3fd SHA512 97377922ae0b4e702ddf36534abc9b2fdfbfac50c5f0d4a483a06135f5efef6585abd1fd335ed28f9b0e43b5a0197b724ab1385d3adeef2c75046f5a29fe4ff6
DIST starship-battery-0.10.0.crate 46077 BLAKE2B 72577108688df58be583ae4f81b197cdc796fc14a0bce21eb95e3142b19cabee3a0cc12b4ade6fe368ee3789034bfb3294159e2ebbf875d8917b767df83e7090 SHA512 dd271d64afaa785f74bf530c93e50a01e907f6de39fede07101f2ccd013ca8d4ba4d67ea8b10014b3ba7fb5895a702ebc2a4bfdc55a3c0e425a32976d148bb1f
DIST starship-battery-0.9.1.crate 47052 BLAKE2B 3eed951f93008986cd4829dc78d7f379d1360714e9dbbe4063df221cf0009f0933ca67a6cc03c50590222df43cfc085517abc1e219935bfb1c190739719986ca SHA512 247474425d9456f7b43016ab69983ba3d1ba319689127476250fcb120005354c04068940e39fadc281956dae1fae992425154edcd693748d86555058435cf121
DIST static_assertions-1.1.0.crate 18480 BLAKE2B 358dd5ac413d06f62da0388e2016c5fcb8ec68fd7dceb0dbbcb97665c032b7509b7e083c20701648b6a9174485f117c02682ae4bde7ef037e80a85cdf6a0c86e SHA512 46d0e35f77941dee6f60f574c130472248063dc38494c1c4f84f7c048244cc2a58a86fe17c0990e3f0f01406b75ed385a13d00058612b27cf0e867c8d31c92ee
diff --git a/app-shells/starship/starship-1.22.1.ebuild b/app-shells/starship/starship-1.22.1.ebuild
new file mode 100644
index 000000000000..366397127267
--- /dev/null
+++ b/app-shells/starship/starship-1.22.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES=""
+RUST_MIN_VER="1.80.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
+ ${CARGO_CRATE_URIS}"
+SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/app-shells/${PN}/${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
+}