Сравнение promu-0.14.0 с promu-0.15.0

/usr/portage/dev-util/promu/promu-0.15.0.ebuild 2023-10-09 14:52:30.988368388 +0300
3 3

  
4 4
EAPI=8
5 5
inherit go-module
6
EGIT_COMMIT=a880d9756ae466605040585bc3b15005b55cc9f6
7 6

  
8 7
DESCRIPTION="Prometheus Utility Tool"
9 8
HOMEPAGE="https://github.com/prometheus/promu"
10
SRC_URI="https://github.com/prometheus/promu/archive/v${PV}.tar.gz -> ${P}.tar.gz
11
	https://dev.gentoo.org/~xen0n/distfiles/dev-util/promu/${P}-deps.tar.xz"
12

  
13
LICENSE="Apache-2.0 BSD BSD-2 MIT"
9
if [[ ${PV} == *9999* ]]; then
10
	inherit git-r3
11
	EGIT_REPO_URI="https://github.com/prometheus/promu.git"
12
else
13
	SRC_URI="https://github.com/prometheus/promu/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14
	SRC_URI+=" https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz"
15
	KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86"
16
fi
17
LICENSE="Apache-2.0"
18
LICENSE+=" BSD BSD-2 MIT"
14 19
SLOT="0"
15
KEYWORDS="amd64 ~arm ~arm64 ~loong ~riscv ~x86"
16
IUSE=""
17 20

  
18 21
RESTRICT+=" test"
19

  
20
src_prepare() {
21
	default
22
	sed -i -e "s/{{.Revision}}/${EGIT_COMMIT}/" .promu.yml || die
22
DOCS=(
23
	"doc/examples"
24
	"README.md"
25
)
26

  
27
src_unpack() {
28
	if [[ ${PV} == *9999* ]]; then
29
		git-r3_src_unpack
30
		go-module_live_vendor
31
	else
32
		go-module_src_unpack
33
	fi
23 34
}
24 35

  
25 36
src_compile() {
26
	ego build .
37
	emake build
27 38
}
28 39

  
29 40
src_install() {
30
	dobin ${PN}
31
	dodoc -r {doc,{README,CONTRIBUTING}.md}
41
	if [[ ${PV} == *9999 ]]; then
42
		dobin "${PN}"
43
	else
44
		newbin "${P}" "${PN}"
45
	fi
46
	einstalldocs
32 47
}
Спасибо!