dev-lang/hare: Fix snapshot

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2022-08-08 22:22:40 +02:00
parent 17da0caaa0
commit 2fecd79959
4 changed files with 61 additions and 46 deletions

View File

@@ -1,32 +1,40 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit git-r3
if [[ "${PV}" = 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare"
SLOT="0"
else
EGIT_COMMIT="296925c91d79362d6b8ac94e0336a38e9af0f1c9"
SRC_URI="https://git.sr.ht/~sircmpwn/hare/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~riscv"
fi
DESCRIPTION="The Hare systems programming language"
HOMEPAGE="https://harelang.org/"
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare"
LICENSE="MPL-2.0 GPL-3"
SLOT="0"
DEPEND="
sys-devel/qbe
dev-lang/harec
>=dev-lang/harec-0_pre20220702
"
BDEPEND="
app-text/scdoc
"
RDEPEND="${DEPEND}"
src_unpack() {
default
git-r3_src_unpack
mkdir "${WORKDIR}/${P}/build" || die
}
src_configure() {
cp config.example.mk config.mk || die
sed -i -e 's;^PREFIX=.*;PREFIX=/usr;' config.mk || die
sed -i \
-e 's;^PREFIX=.*;PREFIX=/usr;' \
-e 's;^AS =;AS ?=;' \
-e 's;^LD =;LD ?=;' \
-e 's;^AR =;AR ?=;' \
config.mk || die
}