diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-01 21:16:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-01 21:16:25 +0100 |
commit | c69eea8c84cee05e6ba332fd1f39cfb6554d5726 (patch) | |
tree | 86a17f65a677b3c475b682e087e779df29eb4b43 /app-containers/nerdctl/nerdctl-0.22.2.ebuild | |
parent | 9d396115d657f4e18ffa2c1d073980d8e3d6710f (diff) |
gentoo auto-resync : 01:08:2022 - 21:16:25
Diffstat (limited to 'app-containers/nerdctl/nerdctl-0.22.2.ebuild')
-rw-r--r-- | app-containers/nerdctl/nerdctl-0.22.2.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app-containers/nerdctl/nerdctl-0.22.2.ebuild b/app-containers/nerdctl/nerdctl-0.22.2.ebuild new file mode 100644 index 000000000000..b9663fd39468 --- /dev/null +++ b/app-containers/nerdctl/nerdctl-0.22.2.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="2899222cb0715f1e5ffe356d10c3439ee8ee3ba4" +# 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 +} |