Install this version:
emerge -a =app-admin/kubecm-0.36.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-admin/kubecm-0.36.0
Or alternatively:
emerge --autounmask-write -a =app-admin/kubecm-0.36.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.36.0 | 9 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit go-module shell-completion
COMMIT="3e967a2"
DESCRIPTION="Manage your kubeconfig more easily"
HOMEPAGE="https://github.com/sunny0826/kubecm"
SRC_URI="https://github.com/sunny0826/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/SpiderX/portage-overlay/releases/download/${P}/${P}-deps.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND=">=dev-lang/go-1.25.0"
src_compile() {
DATE="$(date -u '+%Y-%m-%d')"
LDFLAGS="-w -X github.com/sunny0826/kubecm/version.Version=${PV}
-X github.com/sunny0826/kubecm/version.GitRevision=${COMMIT}
-X \"github.com/sunny0826/kubecm/version.BuildDate=${DATE}\""
ego build -ldflags "${LDFLAGS}"
local completion
for completion in bash zsh fish ; do
edo ./kubecm completion "${completion}" > kubecm."${completion}"
done
}
src_test() {
ego test ./cmd/...
}
src_install() {
einstalldocs
dobin kubecm
newbashcomp kubecm.bash kubecm
newfishcomp kubecm.fish kubecm
newzshcomp kubecm.zsh _kubecm
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | kubecm-0.36.0-deps.tar.xz | 18273812 bytes | https://github.com/SpiderX/portage-overlay/releases/download/kubecm-0.36.0/kubecm-0.36.0-deps.tar.xz |
| DIST | kubecm-0.36.0.tar.gz | 56700916 bytes | https://github.com/sunny0826/kubecm/archive/v0.36.0.tar.gz |