dev-util/hare-update: add 0.25.2.0, 9999

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2025-06-21 17:17:21 +02:00
parent 11212bf2e3
commit e6392279a7
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare-update"
DEPEND="dev-lang/hare:="
else
SRC_URI="https://git.sr.ht/~sircmpwn/hare-update/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~riscv"
DEPEND="~dev-lang/hare-$(ver_cut 1-3):="
fi
DESCRIPTION="assist in upgrading a codebase to a newer Hare release"
HOMEPAGE="https://sr.ht/~sircmpwn/hare-update"
LICENSE="EUPL-1.2"
SLOT="0"
# binaries are hare-built
QA_FLAGS_IGNORED="usr/bin/.*"
src_prepare() {
default
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile
}