sys-devel/qbe: add 1.1

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Closes: https://github.com/gentoo/gentoo/pull/29367
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Haelwenn (lanodan) Monnier
2023-02-24 14:14:26 +02:00
committed by Viorel Munteanu
parent b5cdcee031
commit f8089f372d
2 changed files with 36 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST qbe-1.0.tar.xz 237756 BLAKE2B ca6e1ee81f7329a8aee1f4597de391dcc44595fb8371468360fbcf1a5fc9fa404c614d49e4668fba568fa8d11e753d10b4c46380884fa635a56331b059b69abd SHA512 7f53d4440fda36b21dbf390aa8b9c17ae7c137a6e034dd73ca1c2068d84dbe236a452d86cab8d8bce0b3d66c3f08e70f2bf54bc7cc2e93208cc1900014c18ad1
DIST qbe-1.1.tar.xz 244740 BLAKE2B fdadca56ff5a6b56f30e0a99724908e356b3c1b545e5b35a27080a92ca0d417ff53deb8f4c0a31b9289acab58fb79568384669004b0275cddd83afb198a7a5aa SHA512 1e5d7d1df3d73849dbf19dd1d84c9bba63a5041622823a5a239496032f9d82bd1640dd2bbd03e28c8a180b8e66a1fe10deb940b5d8fde996bf593f7e8d943e8b
+35
View File
@@ -0,0 +1,35 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="git://c9x.me/qbe.git"
inherit git-r3
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() {
tc-export CC
emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}"
}
src_install() {
einstalldocs
emake install DESTDIR="${ED}" PREFIX=/usr
}