1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit user golang-build golang-vcs-snapshot
7 EGO_PN="github.com/prometheus/${PN}"
8 EGIT_COMMIT="4a7436442837da72f9e211d99f0145dff3246b66"
9 ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
12 DESCRIPTION="A tool to scrape a Prometheus client and dump the result as JSON"
13 HOMEPAGE="https://github.com/prometheus/prom2json"
14 SRC_URI="${ARCHIVE_URI}"
19 DEPEND="dev-util/promu"
23 sed -i -e "s/{{.Revision}}/${EGIT_COMMIT:0:7}/" src/${EGO_PN}/.promu.yml || die
27 pushd src/${EGO_PN} || die
29 GOPATH="${S}" promu build -v --prefix ${PN} || die
34 pushd src/${EGO_PN} || die
36 dodoc {README,CONTRIBUTING}.md