1 |
commit: d9956a32b148bc68f843bbb62685c5eb752f82f3 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 7 16:21:51 2022 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 16:22:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9956a32 |
7 |
|
8 |
app-containers/skopeo: add 1.8.0 |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
app-containers/skopeo/Manifest | 1 + |
13 |
app-containers/skopeo/skopeo-1.8.0.ebuild | 52 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/app-containers/skopeo/Manifest b/app-containers/skopeo/Manifest |
17 |
index 1d517d2f9311..031ef59dd127 100644 |
18 |
--- a/app-containers/skopeo/Manifest |
19 |
+++ b/app-containers/skopeo/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST skopeo-1.5.1.tar.gz 5636533 BLAKE2B 7f0e86cdee5c3250ec1280d7e71554ac2f8ad96ababe0e81dfabc00e8c128a13fc0c9c561b7a9be389d7386e9f664b95118bd2122612b9c2e8844db49769c03c SHA512 3f8c730eaa739bf2a29b82d3b04aa4eee1c09f957b61964fc8c48e59d1537bcb87b5bdf9c18fa48f9d36cf2b7ede3a1448918a20b5a3167f6ce09881a6cd3dde |
22 |
DIST skopeo-1.7.0.tar.gz 6542347 BLAKE2B 990ad594df9483ad114debeb2882ed3976306d69983ae3d91d807e2654583e7a6599ddf50152df9a937c1c64c1e5a8abb6ed83433036e7efd4ef7e911f99c191 SHA512 7d17f98e86677150fb2ddba9edae18d8b1ac8f06fba575268e6ba54c60f7b371b5e5a9eab1a4fe19da6c7e85eb79c1eef169ad2a39eff979130ee8d141bd8d6b |
23 |
+DIST skopeo-1.8.0.tar.gz 6577667 BLAKE2B 21565736a13d2fcce2576fcc1ff522e81b74aff6c18058f4c994e4f0fc12efa38706ba4c07bbe35abd7e339d9080783f766b68325b01cba90c3cd82f19470aec SHA512 697242244e533b597f481005754301efed8581018cdc297e071fa24347301ddf6111d1f1d3ccc6e87e3e5a9ea606e9c6b40c47bf69d2df6b44336fb260f546de |
24 |
|
25 |
diff --git a/app-containers/skopeo/skopeo-1.8.0.ebuild b/app-containers/skopeo/skopeo-1.8.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c3dcc4973b2a |
28 |
--- /dev/null |
29 |
+++ b/app-containers/skopeo/skopeo-1.8.0.ebuild |
30 |
@@ -0,0 +1,52 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+COMMIT=37727a45f96ac208785b606f7772d609bf50dbc4 |
36 |
+inherit go-module bash-completion-r1 |
37 |
+ |
38 |
+DESCRIPTION="Command line utility foroperations on container images and image repositories" |
39 |
+HOMEPAGE="https://github.com/containers/skopeo" |
40 |
+SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm64" |
45 |
+IUSE="btrfs" |
46 |
+ |
47 |
+COMMON_DEPEND=">=app-crypt/gpgme-1.5.5:= |
48 |
+ >=dev-libs/libassuan-2.4.3:= |
49 |
+ dev-libs/libgpg-error:= |
50 |
+ btrfs? ( >=sys-fs/btrfs-progs-4.0.1 ) |
51 |
+ >=sys-fs/lvm2-2.02.145:=" |
52 |
+DEPEND="${COMMON_DEPEND} |
53 |
+ dev-go/go-md2man" |
54 |
+RDEPEND="${COMMON_DEPEND}" |
55 |
+ |
56 |
+RESTRICT+=" test" |
57 |
+ |
58 |
+src_compile() { |
59 |
+ local BUILDTAGS |
60 |
+ BUILDTAGS="containers_image_ostree_stub $(usex btrfs "" exclude_graphdriver_btrfs)" |
61 |
+ set -- go build -mod=vendor -ldflags "-X main.gitCommit=${COMMIT}" \ |
62 |
+ -gcflags "${GOGCFLAGS}" -tags "${BUILDTAGS}" \ |
63 |
+ -o skopeo ./cmd/skopeo |
64 |
+ echo "$@" |
65 |
+ "$@" || die |
66 |
+ cd docs || die |
67 |
+ for f in *.1.md; do |
68 |
+ go-md2man -in ${f} -out ${f%%.md} || die |
69 |
+ done |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ dobin skopeo |
74 |
+ doman docs/*.1 |
75 |
+ dobashcomp completions/bash/skopeo |
76 |
+ insinto /etc/containers |
77 |
+ newins default-policy.json policy.json |
78 |
+ insinto /etc/containers/registries.d |
79 |
+ doins default.yaml |
80 |
+ keepdir /var/lib/atomic/sigstore |
81 |
+ einstalldocs |
82 |
+} |