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: dev-util/promu/
Date: Sat, 02 Mar 2019 17:39:51
Message-Id: 1551548367.67ad008d693e49f1bdc38d40e7e0880de87d98b7.mrueg@gentoo
1 commit: 67ad008d693e49f1bdc38d40e7e0880de87d98b7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 2 17:39:27 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 2 17:39:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67ad008d
7
8 dev-util/promu: Version bump to 0.3.0
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 dev-util/promu/Manifest | 1 +
14 dev-util/promu/promu-0.3.0.ebuild | 34 ++++++++++++++++++++++++++++++++++
15 2 files changed, 35 insertions(+)
16
17 diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest
18 index 0b0d47242d6..66d840ecb4a 100644
19 --- a/dev-util/promu/Manifest
20 +++ b/dev-util/promu/Manifest
21 @@ -1 +1,2 @@
22 DIST promu-0.2.0.tar.gz 1072026 BLAKE2B 2b68d992b37421d6b9a08cc9a9134f9ae52643d4c2844c8e1f6f6724f015582c99a8724ab6b8d1ee69437c660e3b972af85949e3221d8d8c709fd8c1a45e1256 SHA512 4da4716a9d4fb96b6016c9bd452fed0403721ab15f95e6955db2ab6e8e482f3bbb35cb4c1c94f690af9520729a93c100015ee48cb69627e129004ae0b15257ae
23 +DIST promu-0.3.0.tar.gz 366019 BLAKE2B 0e6e93bb573da0ef20947b72989d8a68a7d6d1490efc802acaee58c9f546e9b46162054172d445e4dcb5cbc33c152529f006edf3acc594b92927df0ab489f86a SHA512 543cb514fcab9700bc45cb1b4a9f056720af4acf8ed949e03445c2f4e52d89f6fb8eda3ee538bc92feb2dc06db31026bebad9bf6c86a6e37a0be294d17e4b518
24
25 diff --git a/dev-util/promu/promu-0.3.0.ebuild b/dev-util/promu/promu-0.3.0.ebuild
26 new file mode 100644
27 index 00000000000..ea822459f7d
28 --- /dev/null
29 +++ b/dev-util/promu/promu-0.3.0.ebuild
30 @@ -0,0 +1,34 @@
31 +# Copyright 1999-2019 Gentoo Authors
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/prometheus/promu"
38 +EGIT_COMMIT="295a70a7f580b886572861b19545b28accfd4491"
39 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +KEYWORDS="~amd64"
41 +
42 +DESCRIPTION="Prometheus Utility Tool"
43 +HOMEPAGE="https://github.com/prometheus/promu"
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +IUSE=""
47 +
48 +DEPEND=">=dev-lang/go-1.11"
49 +
50 +src_prepare() {
51 + default
52 + sed -i -e "s/{{.Revision}}/${EGIT_COMMIT}/" src/${EGO_PN}/.promu.yml || die
53 +}
54 +
55 +src_compile() {
56 + pushd src/${EGO_PN} || die
57 + GO111MODULES=on GOCACHE="${T}/go-cache" GOPATH="${S}" go install -v github.com/prometheus/promu || die
58 + popd || die
59 +}
60 +
61 +src_install() {
62 + dobin bin/*
63 + dodoc -r src/${EGO_PN}/{doc,{README,CONTRIBUTING}.md}
64 +}