1 |
commit: 660e5d9a2fee2f462b50a1cd0fed9b49e3976b8a |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 05:46:28 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 05:46:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=660e5d9a |
7 |
|
8 |
app-emulation/containers-storage: Bump to version 1.15.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/containers-storage/Manifest | 1 + |
14 |
.../containers-storage-1.15.1.ebuild | 60 ++++++++++++++++++++++ |
15 |
2 files changed, 61 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/containers-storage/Manifest b/app-emulation/containers-storage/Manifest |
18 |
index a63ff9869c1..3d89411a36f 100644 |
19 |
--- a/app-emulation/containers-storage/Manifest |
20 |
+++ b/app-emulation/containers-storage/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST containers-storage-1.15.0.tar.gz 5971848 BLAKE2B 79e39d0587319df2e73d1f2b0d34dd5d72b32151edd94a87af9e0ce109ee4a276bba80db8c04e496618c16ff427b6396414cfa1b99b2eaeacc66fbceb7456965 SHA512 5d758a863b0c845d912ee97afb4e8304e3899071d489c41b3116c8acaf2aa55648e6c0a14d0edb0d2694a8eb74b61ea05373b6bb5d3d577aeda9b8693092fced |
23 |
+DIST containers-storage-1.15.1.tar.gz 6037975 BLAKE2B e6d0d9adae829fd3d8cb40aa124b7149ee56ed13650b0dc57ba316ab2f03e754bdbb3e566c199b7768c612b159fa3051db39cd90127f4676255e452863aa7e24 SHA512 ea017e7dec840e5794f0ae61ebfc0cbf55b8de2c237286371eef3fd1808809e2bb149f08ba62126c741e0811839bf0af8f97bbda32e715132e42905f2ebd3a6c |
24 |
|
25 |
diff --git a/app-emulation/containers-storage/containers-storage-1.15.1.ebuild b/app-emulation/containers-storage/containers-storage-1.15.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d094e8ef9e3 |
28 |
--- /dev/null |
29 |
+++ b/app-emulation/containers-storage/containers-storage-1.15.1.ebuild |
30 |
@@ -0,0 +1,60 @@ |
31 |
+# Copyright 1999-2019 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 |
+EGO_PN="${HOMEPAGE#*//}" |
45 |
+EGIT_COMMIT="v${PV}" |
46 |
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
47 |
+RDEPEND=" |
48 |
+ btrfs? ( sys-fs/btrfs-progs ) |
49 |
+ device-mapper? ( sys-fs/lvm2:= )" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ dev-go/go-md2man |
52 |
+ test? ( |
53 |
+ sys-fs/btrfs-progs |
54 |
+ sys-fs/lvm2 |
55 |
+ sys-apps/util-linux |
56 |
+ )" |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+S=${WORKDIR}/${P#containers-} |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ sed -e 's:GO111MODULE=off:GO111MODULE=on:' -i Makefile || die |
65 |
+ |
66 |
+ [[ -f hack/btrfs_tag.sh ]] || die |
67 |
+ use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \ |
68 |
+ "hack/btrfs_tag.sh" || die; } |
69 |
+ |
70 |
+ [[ -f hack/libdm_tag.sh ]] || die |
71 |
+ use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_devicemapper" > \ |
72 |
+ "hack/libdm_tag.sh" || die; } |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ export -n GOCACHE XDG_CACHE_HOME #678856 |
77 |
+ emake containers-storage docs |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ dobin "${PN}" |
82 |
+ while read -r -d ''; do |
83 |
+ mv "${REPLY}" "${REPLY%.1}" || die |
84 |
+ done < <(find "${S}/docs" -name '*.[[:digit:]].1' -print0) |
85 |
+ find "${S}/docs" -name '*.[[:digit:]]' -exec doman '{}' + || die |
86 |
+} |
87 |
+ |
88 |
+src_test() { |
89 |
+ GOPATH="${S}" unshare -m emake local-test-unit || die |
90 |
+} |