diff options
| author | 2025-11-26 00:43:16 +0100 | |
|---|---|---|
| committer | 2025-11-26 00:54:43 +0100 | |
| commit | 70eab04ef499e64764ba30310cb0ad1cc3114939 (patch) | |
| tree | 0405da5c7a42158e37b07fc2433f9508efccd817 /sys-cluster/kubie/kubie-0.26.0.ebuild | |
| parent | sys-auth/kubectl-passman: add 1.2.5, drop 1.2.3 (diff) | |
| download | ebuilds-70eab04ef499e64764ba30310cb0ad1cc3114939.tar.xz | |
sys-cluster/kubie: add 0.26.0, drop 0.23.1
Diffstat (limited to 'sys-cluster/kubie/kubie-0.26.0.ebuild')
| -rw-r--r-- | sys-cluster/kubie/kubie-0.26.0.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sys-cluster/kubie/kubie-0.26.0.ebuild b/sys-cluster/kubie/kubie-0.26.0.ebuild new file mode 100644 index 0000000..4c78065 --- /dev/null +++ b/sys-cluster/kubie/kubie-0.26.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-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 shell-completion + +DESCRIPTION="A more powerful alternative to kubectx and kubens." +HOMEPAGE="https://github.com/sbstp/kubie" +SRC_URI="https://github.com/sbstp/kubie/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz " + +LICENSE="ZLIB" +# Dependent crate licenses +LICENSE+=" MIT Apache-2.0 Unicode-DFS-2016 0BSD Apache-2.0-with-LLVM-exceptions" +LICENSE+=" Boost-1.0 ISC BSD Unlicense MPL-2.0" + +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" sys-cluster/kubectl" + +src_unpack() { + cargo_src_unpack + mkdir "${S}"/{vendor,.cargo} || die + ln -s "${WORKDIR}/vendor/"* "${S}"/vendor || die + cp "${FILESDIR}"/"${PN}-vendor-config" "${S}"/.cargo/config.toml || die +} + +src_prepare() { + default + sed -i 's/strip = true/strip = false/' Cargo.toml || die +} + +src_configure() { + cargo_gen_config + cargo_src_configure --frozen --no-default-features +} + +src_install() { + cargo_src_install + + newbashcomp completion/kubie.bash kubie + newfishcomp completion/kubie.fish kubie +} |
