diff options
author | 2024-07-14 17:19:41 +0200 | |
---|---|---|
committer | 2024-07-14 17:19:41 +0200 | |
commit | cc90318eca5c0d00b2fe4117781fca5245f017d5 (patch) | |
tree | 240b4f8e850a82dd87243f835ab213372381420d | |
parent | dev-lang/harec: drop 0_pre20230807, 0_pre20231128 (diff) | |
download | guru-cc90318eca5c0d00b2fe4117781fca5245f017d5.tar.gz guru-cc90318eca5c0d00b2fe4117781fca5245f017d5.tar.bz2 guru-cc90318eca5c0d00b2fe4117781fca5245f017d5.zip |
dev-lang/harec: add 0.24.2
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
-rw-r--r-- | dev-lang/harec/harec-0.24.2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-lang/harec/harec-0.24.2.ebuild b/dev-lang/harec/harec-0.24.2.ebuild new file mode 100644 index 0000000000..b215ee6dd5 --- /dev/null +++ b/dev-lang/harec/harec-0.24.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +if [[ "${PV}" = "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/harec" +else + MY_PV="$(ver_rs 3 -)" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://git.sr.ht/~sircmpwn/harec/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +DESCRIPTION="The Hare compiler" +HOMEPAGE="https://harelang.org/" +LICENSE="GPL-3" +SLOT="0" + +DEPEND=">=sys-devel/qbe-1.2" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + cp configs/linux.mk config.mk || die + sed -i \ + -e 's/-Werror//' \ + -e 's/CC =/CC ?=/' \ + -e 's/AS =/AS ?=/' \ + -e 's/LD =/LD ?=/' \ + config.mk || die + + tc-export CC AS LD +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} |