diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-06-12 13:24:35 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-06-12 13:24:35 +0200 |
commit | f47d5b0c6489e57b550c48f9b67a86298a239fe8 (patch) | |
tree | e0473dc30e88b0db65c279c1fc600a36a4f53cde /dev-util/promu | |
parent | app-editors/lpe: use HTTPS (diff) | |
download | gentoo-f47d5b0c6489e57b550c48f9b67a86298a239fe8.tar.gz gentoo-f47d5b0c6489e57b550c48f9b67a86298a239fe8.tar.bz2 gentoo-f47d5b0c6489e57b550c48f9b67a86298a239fe8.zip |
dev-util/promu: Update snapshot
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-util/promu')
-rw-r--r-- | dev-util/promu/Manifest | 1 | ||||
-rw-r--r-- | dev-util/promu/promu-0.1.0_p20170607.ebuild | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest index 9a015ede882e..f0893740ae7b 100644 --- a/dev-util/promu/Manifest +++ b/dev-util/promu/Manifest @@ -1,2 +1,3 @@ DIST promu-0.1.0_p20161031.tar.gz 393908 SHA256 eab458c5f03dd45405ef56b1e333bd95fdd379d6a3010af1a2a0fc9db2d49159 SHA512 75bb77f91bb4ee2817e0481e13e0ac0c4abe4ab899608a455fac99e9939f63eedd17e42271c1ac76f2d475fb5aaa066dd24d5229b3e74571eec67dd448c7a487 WHIRLPOOL 67988a4980c908650001f423a3683486520a1b1d61389bdc2c423b90d3c097fad7066e8e0096b4d85ce0d1edc83c6813a5c94414a1b9c2cc4edecfe05b61316c DIST promu-0.1.0_p20170130.tar.gz 393885 SHA256 a8807488ff74bb6ad9653ffa91accdbbf11382dfa8e5ca511f086f7a52f785fa SHA512 fd12a1f96ab55bfd669e912b68902e9340726da6f70d95159f055006bbbbe8e0cc14e9878b4dda3f473f9521918d6033d98e713b4d18d66dae03b1fa25828a80 WHIRLPOOL 21543bb1e9706bfdbe11c07dbb5fefcd0dbb7626baf7a59bb128d3f4ee58a1d71ff0b402ad1b7dc832dc8acb461578c680e0fb4a6f99cc834678575076076851 +DIST promu-0.1.0_p20170607.tar.gz 399675 SHA256 e2995015d66c25e431284e24623a3ecb5813fdaf45cd31231d1ba5a9a500e1a0 SHA512 38c5230b8a301675b55ea80c2ab461be51d560d96511c8ce4ac101434e484dca0a90ccacb06b3bb9057d151fac407adc443833032ddd226416a1fd5af788edaf WHIRLPOOL d2779d629d1b04ca9ccc78711a591a19ef1beede1ac6708e45f3a0d0fd2bcf309858d7aaeba739c6ce17cf12bd5edc6612a123dee2a41d4796685c0b188e599d diff --git a/dev-util/promu/promu-0.1.0_p20170607.ebuild b/dev-util/promu/promu-0.1.0_p20170607.ebuild new file mode 100644 index 000000000000..afa41dc9ac4e --- /dev/null +++ b/dev-util/promu/promu-0.1.0_p20170607.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/promu" +EGIT_COMMIT="85ceabc50a0f1c0072304f694333062836c9f640" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus Utility Tool" +HOMEPAGE="https://github.com/prometheus/promu" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +src_compile() { + LDFLAGS="-X github.com/prometheus/vendor/github.com/prometheus/common/version.Version=$(cat src/${EGO_PN}/VERSION) + -X github.com/prometheus/vendor/github.com/prometheus/common/version.Revision=${EGIT_COMMIT:0:7} + -extldflags \"-static\"" + GOPATH="${S}" go build -ldflags "${LDFLAGS}" -o bin/promu src/${EGO_PN}/main.go || die +} + +src_install() { + dobin bin/* + dodoc -r src/${EGO_PN}/{doc,{README,CONTRIBUTING}.md} +} |