1 |
commit: c376fc577e643b81806c138b943908076bb9deb2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 21:01:30 2022 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 21:01:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c376fc57 |
7 |
|
8 |
app-containers/containers-storage: add 1.41.0 |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
app-containers/containers-storage/Manifest | 1 + |
13 |
.../containers-storage-1.41.0.ebuild | 58 ++++++++++++++++++++++ |
14 |
2 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/app-containers/containers-storage/Manifest b/app-containers/containers-storage/Manifest |
17 |
index aace3124c6f9..aec4c235e25d 100644 |
18 |
--- a/app-containers/containers-storage/Manifest |
19 |
+++ b/app-containers/containers-storage/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST containers-storage-1.39.0.tar.gz 3670784 BLAKE2B ad46a33fd51bb95385ed1572a30136bc117bd1d72adb2cbcde2d864fe4ac51dde02b45a8457366d84b889bfcfd62f74c249fc7b5505ca316da08bc03af5c866d SHA512 c3b59361755150adc4a13995a200879175ff1ddf402ce3191311b9e525995ccb73cb8e9c9bc485388cb7517783cd9f9e3a7916c03087dbd5d0be170198b1c861 |
22 |
DIST containers-storage-1.40.2.tar.gz 3686775 BLAKE2B 980f714e86bb198687b351876e1bb55a6a115e5aa1c73b1c54f63f57ee75727a3b720322b62300c21de30982b5028c82f6ca94d9457e35f9e88d67de96a2f16f SHA512 f4ff23e26d9103debc1709cbbbc6e715d2b9378a3bd7c2e72393841b2eb499ffce525526aa53bd1f7985cda87962a98f1d0b4601610f7cee8c9c879957575ad2 |
23 |
+DIST containers-storage-1.41.0.tar.gz 3685908 BLAKE2B 5835fa222127d8e2398a33ec02b24ee0b5a94943ed30a19d8b5f76ce4b852f1e7ad9eceb052dcbb2a2c3db96d3ec4ca0150ab81cd0e0a0e351b353f47c0862b5 SHA512 e2d4d887f067d4bdab97426d9cfe7f941b8148d3c40ddb60d5cbc08f1b3a8c5e6a182586f9cdb96873377b8467368527ff89220ba8a5cd7ad4682a90a1243f56 |
24 |
|
25 |
diff --git a/app-containers/containers-storage/containers-storage-1.41.0.ebuild b/app-containers/containers-storage/containers-storage-1.41.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..c01863fdb218 |
28 |
--- /dev/null |
29 |
+++ b/app-containers/containers-storage/containers-storage-1.41.0.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit go-module |
37 |
+ |
38 |
+KEYWORDS="~amd64" |
39 |
+DESCRIPTION="containers/storage library" |
40 |
+HOMEPAGE="https://github.com/containers/storage" |
41 |
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT" |
42 |
+SLOT="0" |
43 |
+IUSE="btrfs +device-mapper test" |
44 |
+SRC_URI="https://github.com/containers/storage/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+RDEPEND=" |
46 |
+ btrfs? ( sys-fs/btrfs-progs ) |
47 |
+ device-mapper? ( sys-fs/lvm2:= )" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ dev-go/go-md2man |
50 |
+ test? ( |
51 |
+ sys-fs/btrfs-progs |
52 |
+ sys-fs/lvm2 |
53 |
+ sys-apps/util-linux |
54 |
+ )" |
55 |
+RESTRICT="test" |
56 |
+ |
57 |
+S=${WORKDIR}/${P#containers-} |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ sed -e 's|: install\.tools|:|' -i Makefile || die |
63 |
+ |
64 |
+ [[ -f hack/btrfs_tag.sh ]] || die |
65 |
+ use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
66 |
+ "hack/btrfs_tag.sh" || die; } |
67 |
+ |
68 |
+ [[ -f hack/libdm_tag.sh ]] || die |
69 |
+ use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_devicemapper" > \ |
70 |
+ "hack/libdm_tag.sh" || die; } |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ export -n GOCACHE GOPATH XDG_CACHE_HOME #678856 |
75 |
+ emake GOMD2MAN=go-md2man FFJSON= containers-storage docs |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ dobin "${PN}" |
80 |
+ while read -r -d ''; do |
81 |
+ mv "${REPLY}" "${REPLY%.1}" || die |
82 |
+ done < <(find "${S}/docs" -name '*.[[:digit:]].1' -print0) |
83 |
+ find "${S}/docs" -name '*.[[:digit:]]' -exec doman '{}' + || die |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ env -u GOFLAGS unshare -m emake local-test-unit || die |
88 |
+} |