commit:     bfd6c1ab3cc72eab443079e6afe80365f2b89cf0
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 14 22:36:02 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 23:20:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfd6c1ab

app-emulation/umoci: new package

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 app-emulation/umoci/Manifest           |  1 +
 app-emulation/umoci/metadata.xml       |  8 +++++++
 app-emulation/umoci/umoci-0.2.1.ebuild | 42 ++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/app-emulation/umoci/Manifest b/app-emulation/umoci/Manifest
new file mode 100644
index 00000000000..a19a93d2f12
--- /dev/null
+++ b/app-emulation/umoci/Manifest
@@ -0,0 +1 @@
+DIST umoci-0.2.1.tar.gz 241472 SHA256 
ac665b9b55366e1d41ce09fe5255cfd462ed2303e42fefabc5459328378342a2 SHA512 
dfd7bbd1afd232400a9bffaf6c074d28ce4ce696c9f3c70bd436cc41b96928415d0793d57b1cf34dd70efd7d0e5eb567eaeea65d793c27ff9ea46fb190bd1807
 WHIRLPOOL 
9eee539309ae7ccf19075f6f6d9f7a1fcc4257bfc473feb938dd87999e6e5230b50e4a3b2fd415dd501b6c91c2a74adcaed68fa41000dd7879f8f12f7cafc6de

diff --git a/app-emulation/umoci/metadata.xml b/app-emulation/umoci/metadata.xml
new file mode 100644
index 00000000000..c36c37139fa
--- /dev/null
+++ b/app-emulation/umoci/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>willi...@gentoo.org</email>
+               <name>William Hubbs</name>
+       </maintainer>
+</pkgmetadata>

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
+}

Reply via email to