guru/sys-devel/qbe/qbe-1.0-r1.ebuild
Haelwenn (lanodan) Monnier 6daca6b24c
sys-devel/qbe: Fix prefix, docs, cflags
Closes: https://bugs.gentoo.org/854072
Closes: https://bugs.gentoo.org/854069
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2022-06-25 02:17:17 +02:00

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
}