Diff uwsgi_exporter-0.8.0-r1 with a uwsgi_exporter-1.1.0

/usr/portage/app-metrics/uwsgi_exporter/uwsgi_exporter-1.1.0.ebuild 2023-10-09 14:52:28.780368332 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit golang-build golang-vcs-snapshot systemd
6
inherit go-module systemd
7 7

  
8
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
9
EGIT_COMMIT="v${PV/_rc/-rc.}"
10
EGO_PN="github.com/timonwong/uwsgi_exporter"
11
UWSGI_EXPORTER_COMMIT="ddbc18f"
8
SRC_URI="https://github.com/timonwong/uwsgi_exporter/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
9
	https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
10
UWSGI_EXPORTER_COMMIT="f04f713"
12 11

  
13 12
DESCRIPTION="uWSGI metrics exporter for prometheus.io"
14 13
HOMEPAGE="https://github.com/timonwong/uwsgi_exporter"
15
SRC_URI="${ARCHIVE_URI}"
16 14

  
17 15
LICENSE="Apache-2.0 BSD ISC MIT"
18 16
SLOT="0"
......
30 28

  
31 29
src_prepare() {
32 30
	default
33
	sed -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" -i src/${EGO_PN}/.promu.yml || die
31
	sed -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" -i "${S}/.promu.yml" || die
34 32
}
35 33

  
36 34
src_compile() {
37
	pushd src/${EGO_PN} || die
38 35
	mkdir -p bin || die
39
	GOPATH="${S}" promu build -v --prefix bin || die
40
	popd || die
36
	GO111MODULE=on promu build -v --prefix bin || die
41 37
}
42 38

  
43 39
src_install() {
44
	pushd src/${EGO_PN} || die
45
	dobin bin/uwsgi_exporter
40
	newbin bin/${P} uwsgi_exporter
46 41
	dodoc README.md
47
	popd || die
48 42
	local dir
49 43
	for dir in /var/log/${PN}; do
50 44
		keepdir "${dir}"
Thank you!