mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-lang/harec: add 0_pre20221023, drop 0_pre20220922
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
43
dev-lang/harec/harec-0_pre20221023.ebuild
Normal file
43
dev-lang/harec/harec-0_pre20221023.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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/harec"
|
||||
S="${WORKDIR}/${P}/build"
|
||||
else
|
||||
EGIT_COMMIT="ef3e7d022fcfaeeda8a7bb9a133a1e33a55e4305"
|
||||
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"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user