mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-lang/hare: drop 0_pre20220827
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST hare-0_pre20220827.tar.gz 683066 BLAKE2B 779fe0f2383274be26bb00ac9092d254e88be531cfd796b1cab07e648dc38a23f5a30c90abaa836d0a62f4f0bffd3117ab1c893ebf98075567f0891b4eef9e53 SHA512 49e7ae709e5272c635246ef0ca187e08697d58864c58fe8e619a7ff0a3ab38952375e504c152af406a41e6b4982ac70e1c2f13a5822c3bfb0c3153a3cf2efbb6
|
||||
DIST hare-82213191adc25137c704df4786a71bce40b6079f.tar.gz 696655 BLAKE2B aed07621b6f582ab717c2c12d5868962ae6186ac840ecf786726d6cf4cc8a38336da49dffb625fbd5d8e431b548257e2285213ae3a692d1a238b12fc34b13d7b SHA512 9a4e2efebaedd9ae7f516b6cbf9d1c5ea9f74caa2f04d5d624cc1e9aa7f62d2478e23e85d351bb2adf470f69dd6943d65a906c86bf9e734f6c68f381e1508c28
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
# Copyright 2021-2022 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/hare"
|
||||
SLOT="0"
|
||||
else
|
||||
EGIT_COMMIT="21a3e430c87ebfdb5e12aad01306e85a25fdfb4c"
|
||||
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/"
|
||||
LICENSE="MPL-2.0 GPL-3"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/qbe
|
||||
>=dev-lang/harec-0_pre20220702
|
||||
"
|
||||
BDEPEND="
|
||||
app-text/scdoc
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# hare and harec are built by hare
|
||||
QA_FLAGS_IGNORED="usr/bin/harec?"
|
||||
|
||||
src_configure() {
|
||||
local target_arch
|
||||
case ${ARCH} in
|
||||
amd64 ) target_arch=x86_64 ;;
|
||||
arm64 ) target_arch=aarch64 ;;
|
||||
riscv ) target_arch=riscv64 ;;
|
||||
* ) die "unsupported architecture: ${ARCH}" ;;
|
||||
esac
|
||||
|
||||
cp config.example.mk config.mk || die
|
||||
sed -i \
|
||||
-e 's;=aarch64-;=;' \
|
||||
-e 's;=riscv64-;=;' \
|
||||
-e "s;^ARCH =.*;ARCH=${target_arch};" \
|
||||
-e 's;^PREFIX=.*;PREFIX=/usr;' \
|
||||
-e 's;^AS =;AS ?=;' \
|
||||
-e 's;^LD =;LD ?=;' \
|
||||
-e 's;^AR =;AR ?=;' \
|
||||
config.mk || die
|
||||
|
||||
sed -i 's; $(DESTDIR)$(LOCALSRCDIR);;' Makefile || die
|
||||
}
|
||||
Reference in New Issue
Block a user