commit: 4c9b616059dd02fdcd72b38bc46989316b1aceee Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Wed Mar 5 14:49:31 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Wed Mar 5 14:49:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c9b6160
app-admin/kubectx: add 0.9.5 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-admin/kubectx/Manifest | 2 ++ app-admin/kubectx/kubectx-0.9.5.ebuild | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/app-admin/kubectx/Manifest b/app-admin/kubectx/Manifest index b2dce71b37b3..abdb0d075a4d 100644 --- a/app-admin/kubectx/Manifest +++ b/app-admin/kubectx/Manifest @@ -1,2 +1,4 @@ DIST kubectx-0.9.4-deps.tar.xz 106630540 BLAKE2B 861c56ad7e881e50b5b1add6deed0f9418bfd9a932d72bbec8883ef69044128ba3340f537f8096297d8fea1bee99e223ce556d6ff64060a414ae8167ecdd0614 SHA512 97df8113ad27bf2280dd089b00130ced0b65b679bc2829b4b57ecec9317dfad844d1a738cfcaf9f1d8d374c073de12b1f43835063d57c03a771d69f23c9a21ee DIST kubectx-0.9.4.tar.gz 520663 BLAKE2B 127eb69c46f2d331c4854b7d935d0fb10c9bc08219d021f5a4b6710b0408eee586d584da47acb8eb415a3472655bc8c8e2e0748eba2a449d8c8dc458c98d32bf SHA512 edb5a05d5b32e486a227e8a4c98864a8dd1e0f3c325fd63a9c3f10ba3ca7a57420d3b1dda9d7674cdbf18fea9cfafbfabdc19c4e15ab1a2a18af967d8fd50997 +DIST kubectx-0.9.5-deps.tar.xz 10465832 BLAKE2B 576efe8a640d10f00e5b92ad0118946af1a7fe06a1ec208601f490f8503a7343dadc934d949dd727e2559a4968b6e150eff442a2d1f7d6812387c2cc0f109cb8 SHA512 f0f6241101087526b9d02d9588f161d65e5a3e6c3d4fcd1fb5563dcb7f9d5dcd079987da517867749cf2e1efef5405c3dcfb39280c53e968be9cdd68dbeb0bcc +DIST kubectx-0.9.5.tar.gz 523259 BLAKE2B e23ed5ad53abd645577682f5c263db1d62d9b77b688181fe7f2911312f182e18d6a56d063302253d2853a39c5fc832467ea0dd1c18b6ad34d5c99e9535530b6c SHA512 a7eacc4676d70caba7081aa09f36f8513c3578368a6f0984fd88d3fe674df8cadb3c5ccf109e9ea231bcfd189af6416b94b8e2cb4a4073a9b12c37e88ed73008 diff --git a/app-admin/kubectx/kubectx-0.9.5.ebuild b/app-admin/kubectx/kubectx-0.9.5.ebuild new file mode 100644 index 000000000000..2983562b6873 --- /dev/null +++ b/app-admin/kubectx/kubectx-0.9.5.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module shell-completion + +DESCRIPTION="Fast way to switch between clusters and namespaces in kubectl" +HOMEPAGE="https://github.com/ahmetb/kubectx" +SRC_URI="https://github.com/ahmetb/kubectx/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/app-admin/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +# Dependent licenses +LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +src_compile() { + ego build -trimpath -ldflags "-w -s" ./cmd/{kubectx,kubens} +} + +src_install() { + dobin kubectx kubens + + newbashcomp completion/kubectx.bash kubectx + newbashcomp completion/kubens.bash kubens + newzshcomp completion/_kubectx.zsh _kubectx + newzshcomp completion/_kubens.zsh _kubens + dofishcomp completion/{kubectx,kubens}.fish +}
