mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-19 15:59:00 -04:00
Closes: https://bugs.gentoo.org/854072 Closes: https://bugs.gentoo.org/854069 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
30 lines
588 B
Bash
30 lines
588 B
Bash
# Copyright 2021-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="git://c9x.me/qbe.git"
|
|
else
|
|
SRC_URI="https://c9x.me/compile/release/${P}.tar.xz"
|
|
# 64-bit RISC-V only
|
|
KEYWORDS="~amd64 ~arm64 ~riscv"
|
|
fi
|
|
|
|
DESCRIPTION="Pure-C embeddable compiler backend"
|
|
HOMEPAGE="https://c9x.me/compile/"
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
|
|
DOCS=( README doc )
|
|
|
|
src_compile() {
|
|
emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}"
|
|
}
|
|
|
|
src_install() {
|
|
einstalldocs
|
|
emake install DESTDIR="${ED}" PREFIX=/usr
|
|
}
|