dev-lang/harec: add 0_pre20230611

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2023-06-15 21:11:36 +02:00
parent 41abd3344f
commit 7f008baf48
2 changed files with 44 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST harec-068e8da091f9053726251bc221abf40fdea630ff.tar.gz 180554 BLAKE2B c25fef198bcf0a6232bf3674d4e2e158d202520acb34c8875820a94b86020d3a67dea6af3bc5e20def682aafa2dd715ca36f6ecb8a20dcab8a2723a59ec132d8 SHA512 6bfa6c6bc2e3c61e2a7ad9c19051eab4e9754d963b93a5f9dbcba61f3908b337230fda1191b0fa375369dee2de00e5edbc12114332906aca0867ded493b265aa
DIST harec-174aef484c0b0067f0a131dc52ee05af1a0e5027.tar.gz 182392 BLAKE2B f8fb16d25fcd550976c9c6922662cb9dfeebf1d296a4f7915064a92d6e7932436d5bc56438492a580968ebfcfc303be7812b627511f9cb6ffd6b2748a1d5117f SHA512 9d6f2107954dd11a3c201409b42e35299339ac57c39daceb2e7f3c98c34161d86b8c943094f7cc412d06d9225149e1938e36ce0c1ad624c54c12d9d7fb5a2d83

View File

@@ -0,0 +1,43 @@
# Copyright 2021-2023 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/harec"
S="${WORKDIR}/${P}/build"
else
EGIT_COMMIT="174aef484c0b0067f0a131dc52ee05af1a0e5027"
MY_P="${PN}-${EGIT_COMMIT}"
SRC_URI="https://git.sr.ht/~sircmpwn/harec/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}/build"
KEYWORDS="~amd64 ~arm64 ~riscv"
fi
DESCRIPTION="The Hare compiler"
HOMEPAGE="https://harelang.org/"
LICENSE="GPL-3"
SLOT="0"
DEPEND=">=sys-devel/qbe-1.1"
RDEPEND="${DEPEND}"
src_unpack() {
default
[[ "${PV}" = "9999" ]] && git-r3_src_unpack
mkdir "${S}" || die
}
src_prepare() {
default
sed -i 's; -Werror ; ;' ../config.sh || die
}
src_configure() {
../configure --prefix="/usr" --libdir="/usr/$(get_libdir)" || die
}