commit: f67f1e5edce38e34bd2f0c71e5cc1f9a3e46f922 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Tue Sep 13 00:08:31 2022 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Sep 13 00:08:37 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f67f1e5e
app-containers/nerdctl: add 0.23.0 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> app-containers/nerdctl/Manifest | 1 + app-containers/nerdctl/nerdctl-0.23.0.ebuild | 33 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/app-containers/nerdctl/Manifest b/app-containers/nerdctl/Manifest index 5908a85cd3b5..5a36384871dc 100644 --- a/app-containers/nerdctl/Manifest +++ b/app-containers/nerdctl/Manifest @@ -1 +1,2 @@ DIST nerdctl-0.22.2-vendor.tar.gz 8374960 BLAKE2B 84b8cb1bef03d05f9277c6931f1f4596609b35ba4e555b02885a5ad99aa692ac8c7b32c778f18993bba518945816dc9ca2ebdb4818b733fc999c4b717c0c7313 SHA512 fa6c166c5376395e129b2b79653382c7e5bc6fcc4a744063afd92fc4b5e84afc41489543c58c0f65c893d7b3d906d502b520d5cb4401ca4ca49c9526606c9291 +DIST nerdctl-0.23.0-vendor.tar.gz 8420534 BLAKE2B 824ea8761a81ed063b853f5a78bd7506f7eecfe6f7b6e3e7d9fbb7113477c32236b59e669821851117b07eb7b5be82cab6b8750ddef59a053535dfa48a65dc77 SHA512 e8431d292a0e8f6db828b3475bb2e918612961b46212e6dcad6b1edadf6fca828c7ff0aeeadbc6e847b8a2d2b0c362f789b6a19ebb6c20922e0f77e46d3df84a diff --git a/app-containers/nerdctl/nerdctl-0.23.0.ebuild b/app-containers/nerdctl/nerdctl-0.23.0.ebuild new file mode 100644 index 000000000000..93e8df5fdcff --- /dev/null +++ b/app-containers/nerdctl/nerdctl-0.23.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module + +DESCRIPTION="Docker-compatible CLI for containerd, with support for Compose" +HOMEPAGE="https://github.com/containerd/nerdctl" + +EGIT_COMMIT="660680b7ddfde1d38a66ec1c7f08f8d89ab92c68" +# There are too many vendor dependencies to distribute via EGO_SUM (see https://bugs.gentoo.org/721088), +# so they are instead distributed via a combined tarball. +SRC_URI="https://github.com/zmedico/nerdctl/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz" +BDEPEND=">=dev-lang/go-1.16" +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" +SLOT="0" + +KEYWORDS="~amd64" +IUSE="" +S=${WORKDIR}/${P}-vendor + +src_prepare() { + sed -e 's:/usr/local/bin:/usr/bin:' \ + -e "s|^VERSION[[:space:]]*=.*|VERSION := v${PV}|" \ + -e "s|^REVISION[[:space:]]*=.*|REVISION := ${EGIT_COMMIT}|" \ + -i Makefile || die + default +} + +src_install() { + DOCS=(README.md docs examples) + default_src_install +}