diff options
Diffstat (limited to 'app-emulation/umoci')
-rw-r--r-- | app-emulation/umoci/Manifest | 3 | ||||
-rw-r--r-- | app-emulation/umoci/metadata.xml | 8 | ||||
-rw-r--r-- | app-emulation/umoci/umoci-0.2.1.ebuild | 42 |
3 files changed, 53 insertions, 0 deletions
diff --git a/app-emulation/umoci/Manifest b/app-emulation/umoci/Manifest new file mode 100644 index 000000000000..1d6c29eb748c --- /dev/null +++ b/app-emulation/umoci/Manifest @@ -0,0 +1,3 @@ +DIST umoci-0.2.1.tar.gz 241472 BLAKE2B 2802fcb14e717a6460f9dc06226d3b430cce2181838a32064e86987131317947a4b117e91d11f981fa1df027804dbf2d92472b5c21749783b4f2ed371c699e7e SHA512 dfd7bbd1afd232400a9bffaf6c074d28ce4ce696c9f3c70bd436cc41b96928415d0793d57b1cf34dd70efd7d0e5eb567eaeea65d793c27ff9ea46fb190bd1807 +EBUILD umoci-0.2.1.ebuild 921 BLAKE2B caa93ba823c4e8f26d9c65ebeae4f96412dbd47221ccc6a2180ca09ba8ef8ad5bd0bf6a3817547745744657c981b298d2047cd4cc8bfca899cdd254e0aa43159 SHA512 875c57b7d8ba2d7f7485866bc2a12b210505fcbab62abfa901cb5353efc8e77738938cd0380c99b02bd05dd8b34ef2b42e7a23543dfab0925e34580029d40fa9 +MISC metadata.xml 248 BLAKE2B 5d9c3678c604aac0f24c5d5015e28f02b9ce83bb6a179755a44adeb3d69e4dd50be4acc30a6317649f5be23bcf13ac210bbe4712aa403e9c4cf2de351b39c941 SHA512 dc5b06a888be6367909895d5891a08189f4657bcee602e5ff0021be2ad3677e58ec7387ff244625be66a142138666e7eac790d2a7b1e298f0ad644725b5e57e0 diff --git a/app-emulation/umoci/metadata.xml b/app-emulation/umoci/metadata.xml new file mode 100644 index 000000000000..c36c37139fad --- /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>williamh@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 000000000000..ad66e4afe83d --- /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="https://github.com/openSUSE/umoci" +SRC_URI="https://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 +} |