commit: b442dfba28bcaf70c605cb126661467d4bb39028 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Sep 23 09:13:11 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Sep 23 09:48:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b442dfba
app-containers/dive: new package, add 0.13.1 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-containers/dive/Manifest | 2 ++ app-containers/dive/dive-0.13.1.ebuild | 36 ++++++++++++++++++++++++++++++++++ app-containers/dive/metadata.xml | 11 +++++++++++ 3 files changed, 49 insertions(+) diff --git a/app-containers/dive/Manifest b/app-containers/dive/Manifest new file mode 100644 index 000000000000..5baffabf39ae --- /dev/null +++ b/app-containers/dive/Manifest @@ -0,0 +1,2 @@ +DIST dive-0.13.1-deps.tar.xz 47305832 BLAKE2B 8c505313be0b9d98deef4fa4e26307d3cef79232e52976adfb605f41ab3d9e441f576fdb47a934f28820a3cefad175108a45c9ed4f3b3713c92bb3de7244afe0 SHA512 bfaaf73c70fed682d3ea4109e5d3c773ad62552209181f75fddc106b01424b512d8609cc8c9c6b320336a9255b1ffcbcc6513228dbdeb8ca4a878b62ebdefa4c +DIST dive-0.13.1.tar.gz 5873218 BLAKE2B af742ce8404b9b1fad59517ea2c99896f9fc777282336b048692ddde178be81dda602823f6f5d4fd04dac121e36c3b1f400109d1a2d31fe7f9146028e8870ceb SHA512 570a7e185d4594e7dabd783b9b68c1985a0c5c0bdafba51e3c5a6e3a93a305bc23559c5d44324e9f82d0226fcf2a624a3d50307a19e82464a88e42eae0abbed0 diff --git a/app-containers/dive/dive-0.13.1.ebuild b/app-containers/dive/dive-0.13.1.ebuild new file mode 100644 index 000000000000..0976779c33fc --- /dev/null +++ b/app-containers/dive/dive-0.13.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +# update this on every bump +GIT_COMMIT=fe98c8a2 + +DESCRIPTION="terminal based UI to manage kubernetes clusters" +HOMEPAGE="https://github.com/wagoodman/dive" +SRC_URI="https://github.com/wagoodman/dive/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/gentoo-golang-dist/dive/releases/download/v${PV}/${P}-deps.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" # no tests + +BDEPEND=">=dev-lang/go-1.24.1" + +src_compile() { + local ldflags=( + -w + -X main.version=${PV} + -X main.commit=${GIT_COMMIT} + -X main.buildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ) + ) + ego build -o bin/dive -ldflags "${ldflags[*]}" . +} + +src_install() { + dobin bin/dive + einstalldocs +} diff --git a/app-containers/dive/metadata.xml b/app-containers/dive/metadata.xml new file mode 100644 index 000000000000..63eb9a0cc35e --- /dev/null +++ b/app-containers/dive/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Arthur Zamarin</name> + </maintainer> + <upstream> + <remote-id type="github">wagoodman/dive</remote-id> + </upstream> +</pkgmetadata>
