blob: 406f5c416f18120e9ce66742acaf99c3410e48eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
DESCRIPTION="Real-time logging dashboard for Kubernetes"
HOMEPAGE="https://github.com/kubetail-org/kubetail"
SRC_URI="https://github.com/kubetail-org/kubetail/releases/download/cli%2Fv${PV}/kubetail-${PV}-vendored.tar.gz"
S="${WORKDIR}/kubetail-${PV}/modules/cli"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
BDEPEND=">=dev-lang/go-1.25.0"
src_compile() {
(
GOWORK=off \
ego build \
-mod=vendor \
-ldflags "-X github.com/kubetail-org/kubetail/modules/cli/cmd.version=${PV}" \
-o "${PN}" \
.
)
"./${PN}" completion bash > "${PN}.bash" || die
"./${PN}" completion zsh > "${PN}.zsh" || die
"./${PN}" completion fish > "${PN}.fish" || die
}
src_install() {
dobin "${PN}"
newbashcomp "${PN}.bash" "${PN}"
newzshcomp "${PN}.zsh" "_${PN}"
dofishcomp "${PN}.fish"
}
|