1 |
commit: 2750d39659984c6fde725f7a22b0812f52dccefa |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 02:04:59 2022 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 02:04:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2750d396 |
7 |
|
8 |
app-containers/nerdctl: add 0.18.0 |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
app-containers/nerdctl/Manifest | 1 + |
13 |
app-containers/nerdctl/nerdctl-0.18.0.ebuild | 33 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 34 insertions(+) |
15 |
|
16 |
diff --git a/app-containers/nerdctl/Manifest b/app-containers/nerdctl/Manifest |
17 |
index 5da7f5d615c1..16b1b6c9d01b 100644 |
18 |
--- a/app-containers/nerdctl/Manifest |
19 |
+++ b/app-containers/nerdctl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nerdctl-0.17.1-vendor.tar.gz 7762770 BLAKE2B 399a99047cb3a3ab31806529e2502f3446e3df717950f1db05d8a449e5c931719717a35e420791232b19338c9d81c8443f0cd2520c38509aedbbaddc8b6d2893 SHA512 ec2967abee1ff44dcd44dd21d079a9d1e9bb254d0a5b150f57a2668cdd26e7f6dd5de99bc1fff3a94b4fb1c4546785e78245ed4e4e5f026b81b909f8dbf318c6 |
22 |
+DIST nerdctl-0.18.0-vendor.tar.gz 7757873 BLAKE2B dfc77baee4649cf5a4ffa2ae196460d34eea531f930f04b894cc715b68a4295d1bcf98c89702032aaf6c5fc0b1a7f8b885f6c4b0bd61afd044b67fe4510c6967 SHA512 b542abafbd1dfe4213646b66b69d7bb286b8fda152870846cd350ad0362cbd16ca5f2d8fe23ae056f0c18f5674eb984f2993cf2937d7aff7b67668d65d9e1488 |
23 |
|
24 |
diff --git a/app-containers/nerdctl/nerdctl-0.18.0.ebuild b/app-containers/nerdctl/nerdctl-0.18.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..7641dedec9f4 |
27 |
--- /dev/null |
28 |
+++ b/app-containers/nerdctl/nerdctl-0.18.0.ebuild |
29 |
@@ -0,0 +1,33 @@ |
30 |
+# Copyright 2021-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+inherit go-module |
35 |
+ |
36 |
+DESCRIPTION="Docker-compatible CLI for containerd, with support for Compose" |
37 |
+HOMEPAGE="https://github.com/containerd/nerdctl" |
38 |
+ |
39 |
+EGIT_COMMIT="77276ff0fffad3f855ab9f2f5a4ad5527ef76485" |
40 |
+# There are too many vendor dependencies to distribute via EGO_SUM (see https://bugs.gentoo.org/721088), |
41 |
+# so they are instead distributed via a combined tarball. |
42 |
+SRC_URI="https://github.com/zmedico/nerdctl/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz" |
43 |
+BDEPEND=">=dev-lang/go-1.16" |
44 |
+LICENSE="Apache-2.0 BSD BSD-2 ISC MIT" |
45 |
+SLOT="0" |
46 |
+ |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="" |
49 |
+S=${WORKDIR}/${P}-vendor |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ sed -e 's:/usr/local/bin:/usr/bin:' \ |
53 |
+ -e "s|^VERSION[[:space:]]*=.*|VERSION := v${PV}|" \ |
54 |
+ -e "s|^REVISION[[:space:]]*=.*|REVISION := ${EGIT_COMMIT}|" \ |
55 |
+ -i Makefile || die |
56 |
+ default |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ DOCS=(README.md docs examples) |
61 |
+ default_src_install |
62 |
+} |