From 1e006885e964b5e2760c8c086f4527e05c1d994f Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Sun, 19 Dec 2021 23:29:38 -0800 Subject: Move {app-emulation -> app-containers}/containers-storage Signed-off-by: Georgy Yakovlev --- app-containers/containers-storage/Manifest | 1 + .../containers-storage-1.30.0.ebuild | 58 ++++++++++++++++++++++ app-containers/containers-storage/metadata.xml | 21 ++++++++ 3 files changed, 80 insertions(+) create mode 100644 app-containers/containers-storage/Manifest create mode 100644 app-containers/containers-storage/containers-storage-1.30.0.ebuild create mode 100644 app-containers/containers-storage/metadata.xml (limited to 'app-containers') diff --git a/app-containers/containers-storage/Manifest b/app-containers/containers-storage/Manifest new file mode 100644 index 000000000000..050d7d59a91c --- /dev/null +++ b/app-containers/containers-storage/Manifest @@ -0,0 +1 @@ +DIST containers-storage-1.30.0.tar.gz 3642657 BLAKE2B daab9412702822fd6be64b8a4ac88875cdc12688b919dba955a7551bb2b56af87d55bd66c02401d2c329fdcb4db466c7b5acb9e53075028fef1248e0a62c6f37 SHA512 47e256d49fbd1d507e2d8bfa45cb0c840212478594ef8551c0ebb86f4f0e70ad7ed2be6727f52768afbb55c0e912bf32c23620e508b65ed4f3edc9e1f95837a2 diff --git a/app-containers/containers-storage/containers-storage-1.30.0.ebuild b/app-containers/containers-storage/containers-storage-1.30.0.ebuild new file mode 100644 index 000000000000..a55dd8c3f0fb --- /dev/null +++ b/app-containers/containers-storage/containers-storage-1.30.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 +} diff --git a/app-containers/containers-storage/metadata.xml b/app-containers/containers-storage/metadata.xml new file mode 100644 index 000000000000..e452dd2d6b3f --- /dev/null +++ b/app-containers/containers-storage/metadata.xml @@ -0,0 +1,21 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + + Enables dependencies for the "btrfs" graph driver, including + necessary kernel flags. + + + Enables dependencies for the "devicemapper" graph driver, including + necessary kernel flags. + + + + containers/storage + + -- cgit v1.2.3-65-gdbad