commit: 4c4dde4e370a2ea31f9365ac6d9b9fc489bcd0ee Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> AuthorDate: Fri Oct 23 20:09:21 2020 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sat Oct 24 22:44:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4dde4e
dev-util/promu: Version updated to 0.6.1. Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com> Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> dev-util/promu/Manifest | 1 + dev-util/promu/promu-0.6.1.ebuild | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest index b17a577e1cd..584bf41293f 100644 --- a/dev-util/promu/Manifest +++ b/dev-util/promu/Manifest @@ -1 +1,2 @@ DIST promu-0.5.0.tar.gz 643970 BLAKE2B b61e8421b5e68f3cd0ec125faadf64c7491f54cfe03de9d6497cb627e5d548b58fafe735c76a5a86a55489aea56dffb6e02d52acd1ca977ea32ec974f34475ac SHA512 b895c0b5b5a33bd0c2372e8c1c698b8548b1b7086849161ffa99bf9718f4b7f3a57bcf218681d84e4cc5ef31ef39df7e6c59345a84441369ec3ec402999ac4de +DIST promu-0.6.1.tar.gz 1704561 BLAKE2B 40947a8a2cd470456db2c47f1208ef7dc009b102fbc0c2a749f99271881ae6f4009d616d977f504a60795e7844271350e5e44423e12bb8633e441dd3ade45b24 SHA512 58983905a0da911f2142e2cf89b241320abfdbe62568378355786f606b3e319322722c25d3fc7b7bd127dc916df9f79684ba3f28455a59b5ee73f7c455fba351 diff --git a/dev-util/promu/promu-0.6.1.ebuild b/dev-util/promu/promu-0.6.1.ebuild new file mode 100644 index 00000000000..db82f31450c --- /dev/null +++ b/dev-util/promu/promu-0.6.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module + +EGIT_COMMIT="d3d03a28b678b6e3af03a86d1998bfc051a9d896" + +DESCRIPTION="Prometheus Utility Tool" +HOMEPAGE="https://github.com/prometheus/promu" +SRC_URI="https://github.com/prometheus/promu/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm" +IUSE="" + +RESTRICT+=" test" + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${EGIT_COMMIT}/" .promu.yml || die +} + +src_compile() { + go build -mod=vendor . || die "compile failed" +} + +src_install() { + dobin ${PN} + dodoc -r {doc,{README,CONTRIBUTING}.md} +}