app-containers/kompose: add 1.38.0

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-05-06 10:02:22 +03:00
parent f8ff8be623
commit f9a60d8433
2 changed files with 47 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST kompose-1.35.0-deps.tar.xz 48368152 BLAKE2B 1432b4085b945ba47c13dafcfcfafa5fc47b367cf75910d8c9c8ec79379d7ab730fcc53711f196f6dd57b11a8df4b53aa0c5d2e53fdce654d3aa061658fbc5a3 SHA512 abe32489d1d7c1e49986bca530cc9dfdfcd26493abfbe5e8ee71db3586d20af236629ab82a5a64cd0dc6fb99d799227a3dc6ec84dd0c91c5bcac7a2fccf56ac5
DIST kompose-1.35.0.tar.gz 17992643 BLAKE2B 5220a4a553addc05a027da936e6e2f1c03629a1dee05c8703534a4cdb0db98a8e435e23d34dfe4b57383c57af8cda3e37140a01da053b017a10391ddc9c7d3de SHA512 023e4e5b328e69efee5ac5de4dde44652f57f5a17cf6158283dda218a5e8ed43368cb7fb08cea75655f2a04e6be0cfcc017ad8293c9eee2ad38721d2985893f2
DIST kompose-1.38.0-vendor.tar.xz 2666508 BLAKE2B 15bd54f55ea7e54683f0d04e8e63274899c74028ee549d5f37dd776e76260b4feca23be6cb197160b7d7a8e71e2e001acc179edb7874ae1eaf7978ca2869003b SHA512 65e436d369547cf39e351f5ea2e57fe1e07251a1f183a406175d06fccf0b169079c91668e0549b817e2f2ba815b6469ad59bfca7a7882b9cf2c54dac0f40d2f7
DIST kompose-1.38.0.tar.gz 17994819 BLAKE2B 67f5ef32d97b43d45b3ec0b459e13396b97ee26446361cfaea65a66345831d4c239a53db021601a50c170c25479abdd17d0978f59a62c89c2012dd3664e9b6e3 SHA512 84d7fa05ac35502b2d3016385092c92ce31ccd3c8a8af33929d45e7d429ff226fe1a2026c9e8876a6de37d6b9f2b5dad48d2335bdb16e1a8d756395b6a8f9a5f

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion sysroot
GIT_COMMIT=a8f5d1cb
DESCRIPTION="Tool to move from docker-compose to Kubernetes"
HOMEPAGE="https://kompose.io https://github.com/kubernetes/kompose"
SRC_URI="https://github.com/kubernetes/kompose/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
local -x CGO_ENABLED=0
local myegoargs=(
-ldflags="-X github.com/kubernetes/kompose/pkg/version.GITCOMMIT=${GIT_COMMIT}"
)
ego build "${myegoargs[@]}" -o ${PN} main.go
einfo "generating shell completion files"
sysroot_try_run_prefixed ./kompose completion bash > ${PN}.bash || die
sysroot_try_run_prefixed ./kompose completion zsh > ${PN}.zsh || die
sysroot_try_run_prefixed ./kompose completion fish > ${PN}.fish || die
}
src_test() {
ego test -v ./...
}
src_install() {
dobin ${PN}
dodoc -r docs README.md
[[ -s ${PN}.bash ]] && newbashcomp ${PN}.bash ${PN}
[[ -s ${PN}.zsh ]] && newzshcomp ${PN}.zsh _${PN}
[[ -s ${PN}.fish ]] && dofishcomp ${PN}.fish
}