mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
dev-lang/harec: add 0.26.0
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST harec-0.25.2.tar.gz 205091 BLAKE2B 9d6c1e208ef9ab35f56fa0974741f3eadae59b1f8ea1fbe42b012cde827adfd5c7a84336e3f0e94d4ad69cf975f02d930f3bc88c5f6584ad9334f6cfdb3fdd07 SHA512 227fe4879a4c367e6cdbf85efc43797db012cce74fcaf30e08cc1ec49014ac426eadace650d2d566a9eb629a6bc87bf739613c1c1360dbf5d47b1aa51195cb9a
|
||||
DIST harec-0.26.0.tar.gz 210685 BLAKE2B b6e1a0e5ff0ad1600deebe19c88373aa6d448aeac77f29ebc5eb5b560cd63ec3f928bf9844fb00a38bd7bf856a47efddcea1a9dcb54f06f36f958b2f492bdba8 SHA512 c7c6103d53e936f13021a50f49a7f44b8ead03a9a6d66e25b0326518458483065c3ad415d8368f76ab2ad652b3febcb7366d3e7460121a3089d689af38ab1ee6
|
||||
|
||||
43
dev-lang/harec/harec-0.26.0.ebuild
Normal file
43
dev-lang/harec/harec-0.26.0.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# Copyright 2021-2026 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
|
||||
}
|
||||
Reference in New Issue
Block a user