mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-lang/harec: Fix missing .* in ARCH regex
revbump needed as harec can build fine and then retain a wrong value internally. Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
49
dev-lang/harec/harec-0.26.0-r2.ebuild
Normal file
49
dev-lang/harec/harec-0.26.0-r2.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# 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
|
||||
|
||||
local target_triple="${CTARGET:-${CHOST}}"
|
||||
|
||||
cp configs/linux.mk config.mk || die
|
||||
sed -i \
|
||||
-e 's/-Werror//' \
|
||||
-e 's/CC =/CC ?=/' \
|
||||
-e 's/AS =/AS ?=/' \
|
||||
-e 's/LD =/LD ?=/' \
|
||||
-e 's/CFLAGS =/CFLAGS +=/' \
|
||||
-e 's/LDFLAGS =/LDFLAGS ?=/' \
|
||||
-e 's/LDLINKFLAGS =/LDLINKFLAGS ?=/' \
|
||||
-e "s/ARCH =.*/ARCH = ${target_triple/-*}/" \
|
||||
config.mk || die
|
||||
|
||||
tc-export CC AS LD
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
}
|
||||
Reference in New Issue
Block a user