mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-shells/starship: add 1.25.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST starship-1.24.1-crates.tar.xz 34111124 BLAKE2B c2b15816bb431343791b9693ecf8
|
||||
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
|
||||
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
|
||||
|
||||
66
app-shells/starship/starship-1.25.0.ebuild
Normal file
66
app-shells/starship/starship-1.25.0.ebuild
Normal file
@@ -0,0 +1,66 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user