From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0948913835A for ; Tue, 7 Jul 2020 15:09:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA2A0E087B; Tue, 7 Jul 2020 15:09:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D0EB8E087B for ; Tue, 7 Jul 2020 15:09:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B47FF34F29D for ; Tue, 7 Jul 2020 15:09:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B8192A4 for ; Tue, 7 Jul 2020 15:09:41 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1594134571.977c64661759cc23ca516517edf08b297c74b275.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/prom2json/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-metrics/prom2json/Manifest app-metrics/prom2json/prom2json-1.3.0.ebuild X-VCS-Directories: app-metrics/prom2json/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 977c64661759cc23ca516517edf08b297c74b275 X-VCS-Branch: master Date: Tue, 7 Jul 2020 15:09:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 415018c7-980c-430e-ab5d-63304a083bf0 X-Archives-Hash: 2f4c307e13b5c0632d2f67d13bf6103b commit: 977c64661759cc23ca516517edf08b297c74b275 Author: William Hubbs gentoo org> AuthorDate: Tue Jul 7 15:08:48 2020 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Jul 7 15:09:31 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=977c6466 app-metrics/prom2json: 1.3.0 bump Signed-off-by: William Hubbs gentoo.org> app-metrics/prom2json/Manifest | 1 + app-metrics/prom2json/prom2json-1.3.0.ebuild | 35 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/app-metrics/prom2json/Manifest b/app-metrics/prom2json/Manifest index bd8d9aa7971..a99918699d3 100644 --- a/app-metrics/prom2json/Manifest +++ b/app-metrics/prom2json/Manifest @@ -1 +1,2 @@ DIST prom2json-0.1.0_p20170523.tar.gz 129179 BLAKE2B ef0e42e340d53894c31bff7018b668d8575fc3568584a43dc308955665ac6f59dbabf2d4605bc2a66957df57a29ebb7b3a4eef1f99537eefc2805a5ffd86904f SHA512 824f4c43f4a167dc7dde2f11e84cf482e5cdfa26ab11caf08a5461d525543c3491180f54694c4ae61fdd5dc9763ff16f6e29b332a64dc3ac52fdb7b9c0902571 +DIST prom2json-1.3.0.tar.gz 1646893 BLAKE2B 9b8fcfa4a3e45ee08a57016fa6a7611604cbb578f162f0bf7ff8338f345f98788b75c3ac047ffca95b62020e972c302bc1c44f2f7f00240cfd978f73b8d9c829 SHA512 8f02c7b2616d915e2b4ff5f195a8c2eff89d18417f7396dc02d2aa4cf34711358b0beef6effae9b42a3d6f4b0616c5d3ab995a73ab9e37a4a0ec230adff6f249 diff --git a/app-metrics/prom2json/prom2json-1.3.0.ebuild b/app-metrics/prom2json/prom2json-1.3.0.ebuild new file mode 100644 index 00000000000..d90427c7afa --- /dev/null +++ b/app-metrics/prom2json/prom2json-1.3.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +GIT_COMMIT=9180c89ee65bde2cbbe799d06d7d09e30f629984 + +DESCRIPTION="A tool to scrape a Prometheus client and dump the result as JSON" +HOMEPAGE="https://github.com/prometheus/prom2json" +SRC_URI="https://github.com/prometheus/prom2json/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" +KEYWORDS="~amd64" + +BDEPEND="dev-util/promu" + +src_prepare() { + default + sed -i \ + -e "s/{{.Revision}}/${GIT_COMMIT}/" \ + -e "s/{{.Version}}/${PV}/" \ + .promu.yml || die +} + +src_compile() { + mkdir bin || die + promu build --prefix bin || die +} + +src_install() { + dobin bin/* + dodoc {README,CONTRIBUTING}.md +}