Diff process-exporter-0.7.10 with a process-exporter-0.8.5
/usr/portage/app-metrics/process-exporter/process-exporter-0.8.5.ebuild 2025-07-29 16:22:12.572448054 +0300 | ||
---|---|---|
1 |
# Copyright 2019-2022 Gentoo Authors |
|
1 |
# Copyright 2019-2025 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 |
inherit go-module systemd |
6 | 6 | |
7 |
# update on every bump |
|
8 |
REVISION=626431b9a759d425bbb78eb15153f892970aadee |
|
7 | 9 |
DESCRIPTION="Process exporter for prometheus" |
8 | 10 |
HOMEPAGE="https://github.com/ncabatoff/process-exporter" |
9 | 11 |
SRC_URI="https://github.com/ncabatoff/process-exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
... | ... | |
11 | 13 | |
12 | 14 |
LICENSE="MIT Apache-2.0 BSD BSD-2" |
13 | 15 |
SLOT="0" |
14 |
KEYWORDS="~amd64" |
|
16 |
KEYWORDS="~amd64 ~x86" |
|
17 | ||
18 |
src_prepare() { |
|
19 |
#See bug 924632 |
|
20 |
case $ARCH in |
|
21 |
x86|arm) |
|
22 |
ewarn "Force CGO_ENABLED=1 for $ARCH, see bug #924632" |
|
23 |
sed -r -i \ |
|
24 |
-e 's/(CGO_ENABLED=)0/\11/g' \ |
|
25 |
Makefile \ |
|
26 |
|| ewarn "Can not force CGO_ENABLED=1" |
|
27 |
;; |
|
28 |
esac |
|
29 |
eapply_user |
|
30 |
} |
|
15 | 31 | |
16 | 32 |
src_compile() { |
17 |
emake build |
|
33 |
emake \ |
|
34 |
BRANCH=HEAD \ |
|
35 |
REVISION=${REVISION} \ |
|
36 |
TAG_VERSION=v${PV} \ |
|
37 |
build |
|
18 | 38 |
} |
19 | 39 | |
20 | 40 |
src_install() { |