From 314a5f72ccfc3be0c1ba2c734416ffc69aa05de4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Oct 2022 02:03:41 +0100 Subject: gentoo auto-resync : 22:10:2022 - 02:03:41 --- app-containers/nerdctl/nerdctl-1.0.0.ebuild | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app-containers/nerdctl/nerdctl-1.0.0.ebuild (limited to 'app-containers/nerdctl/nerdctl-1.0.0.ebuild') diff --git a/app-containers/nerdctl/nerdctl-1.0.0.ebuild b/app-containers/nerdctl/nerdctl-1.0.0.ebuild new file mode 100644 index 000000000000..bb0db49328aa --- /dev/null +++ b/app-containers/nerdctl/nerdctl-1.0.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="c00780a1f5b905b09812722459c54936c9e070e6" +# 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 +} -- cgit v1.2.3