summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2017-06-14 17:36:02 -0500
committerWilliam Hubbs <williamh@gentoo.org>2017-06-14 18:20:20 -0500
commitbfd6c1ab3cc72eab443079e6afe80365f2b89cf0 (patch)
treea4544e409db403ecd8cc3ce06cc75d70b3ece53b /app-emulation/umoci/umoci-0.2.1.ebuild
parentsys-libs/glibc: update USE=hardened __stack_chk_fail handler (diff)
downloadgentoo-bfd6c1ab3cc72eab443079e6afe80365f2b89cf0.tar.gz
gentoo-bfd6c1ab3cc72eab443079e6afe80365f2b89cf0.tar.bz2
gentoo-bfd6c1ab3cc72eab443079e6afe80365f2b89cf0.zip
app-emulation/umoci: new package
Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'app-emulation/umoci/umoci-0.2.1.ebuild')
-rw-r--r--app-emulation/umoci/umoci-0.2.1.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-emulation/umoci/umoci-0.2.1.ebuild b/app-emulation/umoci/umoci-0.2.1.ebuild
new file mode 100644
index 00000000000..d21fe333b7a
--- /dev/null
+++ b/app-emulation/umoci/umoci-0.2.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+EGO_PN="github.com/openSUSE/umoci"
+COMMIT=0465f83826bc4f52e6e3c4dbb1022ec5792c421f
+inherit golang-vcs-snapshot
+
+DESCRIPTION="Manipulation tool for OCI images"
+HOMEPAGE="http://github.com/openSUSE/umoci"
+SRC_URI="http://github.com/openSUSE/umoci/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-go/go-md2man"
+
+S="${WORKDIR}/${P}/src/${EGO_PN}"
+
+RESTRICT="test"
+
+src_compile() {
+ set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ go build -v -work -x \
+ -ldflags "-w -X main.gitCommit=${COMMIT} -X main.version=${PV}" \
+ -o "bin/${PN}" ./cmd/${PN}
+ echo "$@"
+ "$@" || die
+ cd man
+ for f in *.1.md; do
+ go-md2man -in ${f} -out ${f%%.md} || die
+ done
+}
+
+src_install() {
+dobin bin/${PN}
+doman man/*.1
+dodoc CHANGELOG.md
+einstalldocs
+}