Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/img/
Date: Thu, 31 May 2018 09:34:10
Message-Id: 1527759201.f251eb2e6990882190d5bf38b7b2ade82be12128.mrueg@gentoo
1 commit: f251eb2e6990882190d5bf38b7b2ade82be12128
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 31 09:33:21 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Thu May 31 09:33:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f251eb2e
7
8 app-emulation/img: Initial version
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-emulation/img/Manifest | 1 +
13 app-emulation/img/img-0.3.6.ebuild | 32 ++++++++++++++++++++++++++++++++
14 app-emulation/img/metadata.xml | 11 +++++++++++
15 3 files changed, 44 insertions(+)
16
17 diff --git a/app-emulation/img/Manifest b/app-emulation/img/Manifest
18 new file mode 100644
19 index 00000000000..4b5ebf49c7d
20 --- /dev/null
21 +++ b/app-emulation/img/Manifest
22 @@ -0,0 +1 @@
23 +DIST img-0.3.6.tar.gz 6043716 BLAKE2B 982a6f470f4b79cd4cc2b06be4060f516786f700872510948a25d5ad313cccf402b0fe26c053f7505b66c170221274568ce44632729c16e1ade680b5dc007b0d SHA512 911cf6a761741a04553d5e526399973c0e943cfda5eead7f94196969fed4f586134358b1e6f023c6cf07e755de802e498991eb320bd50af32649749622a26969
24
25 diff --git a/app-emulation/img/img-0.3.6.ebuild b/app-emulation/img/img-0.3.6.ebuild
26 new file mode 100644
27 index 00000000000..9ebadf2113a
28 --- /dev/null
29 +++ b/app-emulation/img/img-0.3.6.ebuild
30 @@ -0,0 +1,32 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit golang-build golang-vcs-snapshot
36 +
37 +EGO_PN="github.com/genuinetools/img"
38 +EGIT_COMMIT="v${PV}"
39 +GIT_COMMIT="e4a43d044778e3df56e0de3c6ca00706fcca8b50"
40 +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
41 +KEYWORDS="~amd64"
42 +
43 +DESCRIPTION="Tool to move from docker-compose to Kubernetes"
44 +HOMEPAGE="https://github.com/kubernetes/kompose https://kompose.io"
45 +SRC_URI="${ARCHIVE_URI}"
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +IUSE="seccomp"
49 +
50 +RESTRICT="test"
51 +
52 +src_compile() {
53 + local TAGS=$(usex seccomp 'seccomp' '')
54 + pushd src/${EGO_PN} || die
55 + GOPATH="${S}" go build -tags ${TAGS} -v -ldflags "-X ${EGO_PN}/version.GITCOMMIT=${GIT_COMMIT} -X ${EGO_PN}/version.VERSION=${PV}" -o "${S}"/bin/img . || die
56 + popd || die
57 +}
58 +
59 +src_install() {
60 + dobin bin/*
61 + dodoc -r src/${EGO_PN}/README.md
62 +}
63
64 diff --git a/app-emulation/img/metadata.xml b/app-emulation/img/metadata.xml
65 new file mode 100644
66 index 00000000000..06bfaa067c9
67 --- /dev/null
68 +++ b/app-emulation/img/metadata.xml
69 @@ -0,0 +1,11 @@
70 +<?xml version="1.0" encoding="UTF-8"?>
71 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
72 +<pkgmetadata>
73 + <maintainer type="person">
74 + <email>mrueg@g.o</email>
75 + <name>Manuel Rüger</name>
76 + </maintainer>
77 + <upstream>
78 + <remote-id type="github">genuinetools/img</remote-id>
79 + </upstream>
80 +</pkgmetadata>