1 |
commit: ba154e05856863d5f17c9f2f2ed4987e971df728 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 6 19:31:57 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 6 19:31:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba154e05 |
7 |
|
8 |
app-emulation/containers-storage: Bump to version 1.12.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/containers-storage/Manifest | 1 + |
14 |
.../containers-storage-1.12.9.ebuild | 110 +++++++++++++++++++++ |
15 |
2 files changed, 111 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/containers-storage/Manifest b/app-emulation/containers-storage/Manifest |
18 |
index 89e7a21a47e..fa6fac3b2db 100644 |
19 |
--- a/app-emulation/containers-storage/Manifest |
20 |
+++ b/app-emulation/containers-storage/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST containers-storage-1.12.8.tar.gz 1591018 BLAKE2B cbcc46e86d6c00badfa3e9d5988757fca969fb1b61f6cd0f81cf257c6feac6deefbdad8534fd99e52842efcfd5099ca0d7e27966b0eb16f699e6c1c06e90c683 SHA512 2badef5ccd7292c77ad5de70403c6d343c3a19a81c0e7c22539eb939b5a3ea59447176d5d3d99e34e9877a11b3608268f8951bc74378be99c074ba2a31f27fdb |
23 |
+DIST containers-storage-1.12.9.tar.gz 1593286 BLAKE2B f53ef233e3d08dad84cda9154271254f9fe04e951643f20e8ab5bd37456e4eeb7083c1810656072c2b4bdeea0f6188871d4db566363c8363d2c2087ab9a4d3cb SHA512 0b5ad6cb52b4b74da7c574ec6841d74b92ef20f853e8d8fed83e0f9d529a7749692225e26ae4ab89fbd2a6202651c8a3a44a57bc1f42bcbb755fdba26e9cb3fd |
24 |
DIST github.com-pquerna-ffjson-e517b90714f7c0eabe6d2e570a5886ae077d6db6.tar.gz 103470 BLAKE2B 81f0f6ea6648997cb61723d09d456802e60a3d1eb35134c4bbc8af5943b955b1402fe2b3f8d0d4d2d0293ab256a9be66d53262d5f79ca00bf8c18ded39dc44f4 SHA512 fadca5a7bd0c0578b23281720a08c505054f3497daeee8efa36b5acafa4118feb4b8a96c4acb4c279d72ebcd50846307cfbb846a355b62f350c961f9102c93a6 |
25 |
|
26 |
diff --git a/app-emulation/containers-storage/containers-storage-1.12.9.ebuild b/app-emulation/containers-storage/containers-storage-1.12.9.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..312d2cda060 |
29 |
--- /dev/null |
30 |
+++ b/app-emulation/containers-storage/containers-storage-1.12.9.ebuild |
31 |
@@ -0,0 +1,110 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+EGO_VENDOR=( |
38 |
+ "github.com/pquerna/ffjson e517b90714f7c0eabe6d2e570a5886ae077d6db6" |
39 |
+) |
40 |
+ |
41 |
+inherit golang-vcs-snapshot |
42 |
+ |
43 |
+KEYWORDS="~amd64" |
44 |
+DESCRIPTION="containers/storage library" |
45 |
+HOMEPAGE="https://github.com/containers/storage" |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="0" |
48 |
+IUSE="btrfs +device-mapper ostree test" |
49 |
+EGO_PN="${HOMEPAGE#*//}" |
50 |
+EGIT_COMMIT="v${PV}" |
51 |
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz |
52 |
+ ${EGO_VENDOR_URI}" |
53 |
+RDEPEND=" |
54 |
+ btrfs? ( sys-fs/btrfs-progs ) |
55 |
+ device-mapper? ( sys-fs/lvm2:= ) |
56 |
+ ostree? ( |
57 |
+ dev-libs/glib:= |
58 |
+ dev-util/ostree:= |
59 |
+ )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ dev-go/go-md2man |
62 |
+ test? ( |
63 |
+ sys-fs/btrfs-progs |
64 |
+ sys-fs/lvm2 |
65 |
+ sys-apps/util-linux |
66 |
+ )" |
67 |
+RESTRICT="test? ( userpriv ) !test? ( test )" |
68 |
+ |
69 |
+src_unpack() { |
70 |
+ golang-vcs-snapshot_src_unpack |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ |
76 |
+ [[ -f ${S}/src/${EGO_PN}/hack/btrfs_tag.sh ]] || die |
77 |
+ use btrfs || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_btrfs" > \ |
78 |
+ "${S}/src/${EGO_PN}/hack/btrfs_tag.sh" || die; } |
79 |
+ |
80 |
+ [[ -f ${S}/src/${EGO_PN}/hack/libdm_tag.sh ]] || die |
81 |
+ use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_devicemapper" > \ |
82 |
+ "${S}/src/${EGO_PN}/hack/libdm_tag.sh" || die; } |
83 |
+ |
84 |
+ [[ -f ${S}/src/${EGO_PN}/hack/ostree_tag.sh ]] || die |
85 |
+ use ostree || { echo -e "#!/bin/sh\ntrue" > \ |
86 |
+ "${S}/src/${EGO_PN}/hack/ostree_tag.sh" || die; } |
87 |
+ |
88 |
+ sed -e 's:TestChrootUntarPath(:_\0:' \ |
89 |
+ -i "${S}/src/${EGO_PN}/pkg/chrootarchive/archive_test.go" || die |
90 |
+ sed -e 's:TestTarUntar(:_\0:' \ |
91 |
+ -e 's:TestTarWithOptionsChownOptsAlwaysOverridesIdPair(:_\0:' \ |
92 |
+ -e 's:TestTarWithOptions(:_\0:' \ |
93 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/archive_test.go" || die |
94 |
+ sed -e 's:TestTarUntarWithXattr(:_\0:' \ |
95 |
+ -e 's:TestTarWithBlockCharFifo(:_\0:' \ |
96 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/archive_unix_test.go" || die |
97 |
+ sed -e 's:TestTarUntarWithXattr(:_\0:' \ |
98 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/archive_test.go" || die |
99 |
+ sed -e 's:TestApplyLayer(:_\0:' \ |
100 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/changes_test.go" || die |
101 |
+ sed -e 's:TestApplyLayerInvalidFilenames(:_\0:' \ |
102 |
+ -e 's:TestApplyLayerInvalidHardlink(:_\0:' \ |
103 |
+ -e 's:TestApplyLayerInvalidSymlink(:_\0:' \ |
104 |
+ -e 's:TestApplyLayerWhiteouts(:_\0:' \ |
105 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/diff_test.go" || die |
106 |
+ sed -e 's:TestCopyCaseE(:_\0:' \ |
107 |
+ -e 's:TestCopyCaseEFSym(:_\0:' \ |
108 |
+ -e 's:TestCopyCaseG(:_\0:' \ |
109 |
+ -e 's:TestCopyCaseGFSym(:_\0:' \ |
110 |
+ -e 's:TestCopyCaseH(:_\0:' \ |
111 |
+ -e 's:TestCopyCaseHFSym(:_\0:' \ |
112 |
+ -e 's:TestCopyCaseJ(:_\0:' \ |
113 |
+ -e 's:TestCopyCaseJFSym(:_\0:' \ |
114 |
+ -i "${S}/src/${EGO_PN}/pkg/archive/copy_unix_test.go" || die |
115 |
+ sed -e 's:TestMount(:_\0:' \ |
116 |
+ -i "${S}/src/${EGO_PN}/pkg/mount/mounter_linux_test.go" || die |
117 |
+} |
118 |
+ |
119 |
+src_compile() { |
120 |
+ export -n GOCACHE XDG_CACHE_HOME #678856 |
121 |
+ mkdir -p "${S}/src/github.com/pquerna" || die |
122 |
+ ln -s "${S}/src/${EGO_PN}/vendor/github.com/pquerna/ffjson" "${WORKDIR}/${P}/src/github.com/pquerna/ffjson" || die |
123 |
+ mkdir -p "${S}/bin" || die |
124 |
+ cd "${S}/bin" || die |
125 |
+ GOPATH="${S}" GOBIN="${S}/bin" \ |
126 |
+ go build -v -work -x ${EGO_BUILD_FLAGS} "${S}/src/github.com/pquerna/ffjson/ffjson.go" || die |
127 |
+ GOPATH="${S}" GOBIN="${S}/bin" PATH="${S}/bin:${PATH}" \ |
128 |
+ emake -C "${S}/src/${EGO_PN}" containers-storage docs |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ dobin "${S}/src/${EGO_PN}/${PN}" |
133 |
+ while read -r -d ''; do |
134 |
+ mv "${REPLY}" "${REPLY%.1}" || die |
135 |
+ done < <(find "${S}/src/${EGO_PN}/docs" -name '*.[[:digit:]].1' -print0) |
136 |
+ find "${S}/src/${EGO_PN}/docs" -name '*.[[:digit:]]' -exec doman '{}' + || die |
137 |
+} |
138 |
+ |
139 |
+src_test() { |
140 |
+ GOPATH="${S}" unshare -m emake -C "${S}/src/${EGO_PN}" FLAGS="-v -work -x" local-test-unit || die |
141 |
+} |