commit:     5d5ad2949255bb73714bce2d50bd09080e18ab07
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 31 18:37:28 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Fri Dec 31 18:37:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d5ad294

app-containers/containers-storage: Bump to version 1.37.0

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/containers-storage/Manifest         |  1 +
 .../containers-storage-1.37.0.ebuild               | 58 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/app-containers/containers-storage/Manifest 
b/app-containers/containers-storage/Manifest
index 050d7d59a91c..b50841a3ce12 100644
--- a/app-containers/containers-storage/Manifest
+++ b/app-containers/containers-storage/Manifest
@@ -1 +1,2 @@
 DIST containers-storage-1.30.0.tar.gz 3642657 BLAKE2B 
daab9412702822fd6be64b8a4ac88875cdc12688b919dba955a7551bb2b56af87d55bd66c02401d2c329fdcb4db466c7b5acb9e53075028fef1248e0a62c6f37
 SHA512 
47e256d49fbd1d507e2d8bfa45cb0c840212478594ef8551c0ebb86f4f0e70ad7ed2be6727f52768afbb55c0e912bf32c23620e508b65ed4f3edc9e1f95837a2
+DIST containers-storage-1.37.0.tar.gz 3557198 BLAKE2B 
ebe5c8e562149a9d007ac87d7fc615d29ad7decbfd6b1b8d919b14684a6341575d8f65080a808ba52674664d187a18bb47e88f10e1a02a2975898862873dadf9
 SHA512 
3a65a50946e1eed1c79ea77b65feb1c6c8cf58a0b7b81932acb8891b6daa25e007582eb7f70ef7e7f2a6d8262be5db7757ead2fe079e47c99114b47917d81084

diff --git a/app-containers/containers-storage/containers-storage-1.37.0.ebuild 
b/app-containers/containers-storage/containers-storage-1.37.0.ebuild
new file mode 100644
index 000000000000..a55dd8c3f0fb
--- /dev/null
+++ b/app-containers/containers-storage/containers-storage-1.37.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module
+
+KEYWORDS="~amd64"
+DESCRIPTION="containers/storage library"
+HOMEPAGE="https://github.com/containers/storage";
+LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
+SLOT="0"
+IUSE="btrfs +device-mapper test"
+SRC_URI="https://github.com/containers/storage/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+RDEPEND="
+       btrfs? ( sys-fs/btrfs-progs )
+       device-mapper? ( sys-fs/lvm2:= )"
+DEPEND="${RDEPEND}
+       dev-go/go-md2man
+       test? (
+               sys-fs/btrfs-progs
+               sys-fs/lvm2
+               sys-apps/util-linux
+       )"
+RESTRICT="test"
+
+S=${WORKDIR}/${P#containers-}
+
+src_prepare() {
+       default
+
+       sed -e 's|: install\.tools|:|' -i Makefile || die
+
+       [[ -f hack/btrfs_tag.sh ]] || die
+       use btrfs || { echo -e "#!/bin/sh\necho exclude_graphdriver_btrfs" > \
+               "hack/btrfs_tag.sh" || die; }
+
+       [[ -f hack/libdm_tag.sh ]] || die
+       use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion 
exclude_graphdriver_devicemapper" > \
+               "hack/libdm_tag.sh" || die; }
+}
+
+src_compile() {
+       export -n GOCACHE GOPATH XDG_CACHE_HOME #678856
+       emake GOMD2MAN=go-md2man FFJSON= containers-storage docs
+}
+
+src_install() {
+       dobin "${PN}"
+       while read -r -d ''; do
+               mv "${REPLY}" "${REPLY%.1}" || die
+       done < <(find "${S}/docs" -name '*.[[:digit:]].1' -print0)
+       find "${S}/docs" -name '*.[[:digit:]]' -exec doman '{}' + || die
+}
+
+src_test() {
+       env -u GOFLAGS unshare -m emake local-test-unit || die
+}

Reply via email to