diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-28 05:40:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-28 05:40:38 +0000 |
commit | 88f366f99d8e731ae1a13d9eca9a5284484d2c6f (patch) | |
tree | 07a82726de0e87969c85cdfb68522c4d444939e9 /app-containers/nerdctl/nerdctl-1.7.4.ebuild | |
parent | fdd31f37b982d2c1b6d73b85f99718b13031be36 (diff) |
gentoo auto-resync : 28:02:2024 - 05:40:38
Diffstat (limited to 'app-containers/nerdctl/nerdctl-1.7.4.ebuild')
-rw-r--r-- | app-containers/nerdctl/nerdctl-1.7.4.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-containers/nerdctl/nerdctl-1.7.4.ebuild b/app-containers/nerdctl/nerdctl-1.7.4.ebuild new file mode 100644 index 000000000000..43a574817df7 --- /dev/null +++ b/app-containers/nerdctl/nerdctl-1.7.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +EGIT_COMMIT="7b5f7e0d8f705ed4e54f7040512327e231433366" + +DESCRIPTION="Docker-compatible CLI for containerd, with support for Compose" +HOMEPAGE="https://github.com/containerd/nerdctl" +SRC_URI=" + https://github.com/containerd/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/containerd/${PN}/releases/download/v${PV}/${P}-go-mod-vendor.tar.gz +" + +LICENSE="Apache-2.0" +LICENSE+=" BSD BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="rootless" + +DEPEND=" + rootless? ( + app-containers/slirp4netns + sys-apps/rootlesskit + ) +" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack "${P}.tar.gz" + cd "${S}" + unpack "${P}-go-mod-vendor.tar.gz" +} + +src_compile() { + emake VERSION=v${PV} REVISION="${EGIT_COMMIT}" +} + +src_install() { + local emake_args=( + DESTDIR="${D}" + VERSION=v${PV} + REVISION="${EGIT_COMMIT}" + DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + PREFIX="${EPREFIX}/usr" + install + ) + emake "${emake_args[@]}" + DOCS=( README.md docs/* examples ) + einstalldocs +} |