Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/containers-storage/
Date: Thu, 19 Sep 2019 03:24:34
Message-Id: 1568863427.4170d5580dfe60fd4f76bcc36ae58c67d1e3cde3.zmedico@gentoo
1 commit: 4170d5580dfe60fd4f76bcc36ae58c67d1e3cde3
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 19 03:23:47 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 19 03:23:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4170d558
7
8 app-emulation/containers-storage: Bump to version 1.13.3
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-emulation/containers-storage/Manifest | 1 +
14 .../containers-storage-1.13.3.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 701ffdbae01..ccac46192e8 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.13.1.tar.gz 5983556 BLAKE2B 1d0b6aba0464603fb26c45beecdb9b4afe6566dff4698da980ad6f9736a6d810ec41334f181d5709f78bab986e704c965b1967ed591348cd687d9cb92875321d SHA512 9fa686f44dda3d363f7c623abc9baa0911e26eb5e7dbb7bc60da259fe8d52411cb25fb98e2c8db10a5a80ebf04d07af8390acd48d26706f913900b19e58eac9f
23 +DIST containers-storage-1.13.3.tar.gz 5983607 BLAKE2B 9e591873da4824a133e3818ba9a97074bca234c3154bef9c4febcfd559d0b2ab7462c7da24ce7d391bbdbe2d9a62cb9fd711624623ba28cd8e79d0ca7fcabb47 SHA512 83fd16cbe5821c68092845defc2c5b8407b03c3972b146f409be3444a114d357709fefc25206a1ca26e6ef4a5fc219f360bb0195ffdc1c6e9f79e90f07740820
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.13.3.ebuild b/app-emulation/containers-storage/containers-storage-1.13.3.ebuild
27 new file mode 100644
28 index 00000000000..0e74471b34d
29 --- /dev/null
30 +++ b/app-emulation/containers-storage/containers-storage-1.13.3.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 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
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 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 +}