Сравнение promu-0.15.0 с promu-9999
| /usr/portage/dev-util/promu/promu-9999.ebuild 2024-07-02 13:51:45.729851502 +0300 | ||
|---|---|---|
| 6 | 6 | |
| 7 | 7 |
DESCRIPTION="Prometheus Utility Tool" |
| 8 | 8 |
HOMEPAGE="https://github.com/prometheus/promu" |
| 9 |
if [[ ${PV} == *9999* ]]; then
|
|
| 9 |
if [[ ${PV} == 9999* ]]; then
|
|
| 10 | 10 |
inherit git-r3 |
| 11 | 11 |
EGIT_REPO_URI="https://github.com/prometheus/promu.git" |
| 12 | 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" |
|
| 13 |
SRC_URI=" |
|
| 14 |
https://github.com/prometheus/promu/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
| 15 |
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
|
|
| 16 |
" |
|
| 17 |
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86" |
|
| 16 | 18 |
fi |
| 17 | 19 |
LICENSE="Apache-2.0" |
| 18 | 20 |
LICENSE+=" BSD BSD-2 MIT" |
| ... | ... | |
| 25 | 27 |
) |
| 26 | 28 | |
| 27 | 29 |
src_unpack() {
|
| 28 |
if [[ ${PV} == *9999* ]]; then
|
|
| 30 |
if [[ ${PV} == 9999* ]]; then
|
|
| 29 | 31 |
git-r3_src_unpack |
| 30 | 32 |
go-module_live_vendor |
| 31 | 33 |
else |
| 32 |
go-module_src_unpack |
|
| 34 |
default |
|
| 33 | 35 |
fi |
| 34 | 36 |
} |
| 35 | 37 | |
| 36 | 38 |
src_compile() {
|
| 37 |
if use x86 || use arm; then |
|
| 39 |
[[ ${PV} != 9999* ]] && { ln -sv ../vendor ./ || die ; }
|
|
| 40 |
if use x86; then |
|
| 38 | 41 |
#917577 pie breaks build on x86 |
| 39 |
#941285 pie breaks build on arm |
|
| 40 | 42 |
GOFLAGS=${GOFLAGS//-buildmode=pie}
|
| 41 | 43 |
fi |
| 42 | 44 |
emake build |
| 43 | 45 |
} |
| 44 | 46 | |
| 45 | 47 |
src_install() {
|
| 46 |
if [[ ${PV} == *9999 ]]; then
|
|
| 48 |
if [[ ${PV} == 9999* ]]; then
|
|
| 47 | 49 |
dobin "${PN}"
|
| 48 | 50 |
else |
| 49 | 51 |
newbin "${P}" "${PN}"
|