diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-19 23:40:42 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-12-20 00:51:47 -0800 |
commit | cc0c1e49ee53f01fe49a5742a3b441c1c9f6fa8b (patch) | |
tree | 389e7f81d1949e65db3bfd0183fc2347b19718ba /app-containers/umoci/umoci-0.4.6.ebuild | |
parent | Move {app-emulation -> app-containers}/snapd (diff) | |
download | gentoo-cc0c1e49ee53f01fe49a5742a3b441c1c9f6fa8b.tar.gz gentoo-cc0c1e49ee53f01fe49a5742a3b441c1c9f6fa8b.tar.bz2 gentoo-cc0c1e49ee53f01fe49a5742a3b441c1c9f6fa8b.zip |
Move {app-emulation -> app-containers}/umoci
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-containers/umoci/umoci-0.4.6.ebuild')
-rw-r--r-- | app-containers/umoci/umoci-0.4.6.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app-containers/umoci/umoci-0.4.6.ebuild b/app-containers/umoci/umoci-0.4.6.ebuild new file mode 100644 index 000000000000..f315c80c886b --- /dev/null +++ b/app-containers/umoci/umoci-0.4.6.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +COMMIT=5efa06acfb3bb4e65d2711cf5255970948e047cf +inherit go-module + +DESCRIPTION="Manipulation tool for OCI images" +HOMEPAGE="https://github.com/opencontainers/umoci" +SRC_URI="https://github.com/opencontainers/umoci/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="dev-go/go-md2man" + +RESTRICT+=" test " + +src_compile() { + go build -buildmode=pie -mod=vendor \ + -ldflags "-w -X main.gitCommit=${COMMIT} -X main.version=${PV}" \ + -o "bin/${PN}" ./cmd/${PN} || die + cd doc/man + for f in *.1.md; do + go-md2man -in ${f} -out ${f%%.md} || die + done +} + +src_install() { + dobin bin/${PN} + doman doc/man/*.1 + dodoc CHANGELOG.md + einstalldocs +} |