diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2023-02-01 05:51:45 +0100 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2023-02-24 14:14:26 +0200 |
commit | f8089f372d8d22aaed084fe960bfa572401d8fc4 (patch) | |
tree | 7b458985311db9a2f30052a902dca87109c47294 /sys-devel/qbe | |
parent | app-text/libpaper: add 2.0.10 (diff) | |
download | gentoo-f8089f372d8d22aaed084fe960bfa572401d8fc4.tar.gz gentoo-f8089f372d8d22aaed084fe960bfa572401d8fc4.tar.bz2 gentoo-f8089f372d8d22aaed084fe960bfa572401d8fc4.zip |
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>
Diffstat (limited to 'sys-devel/qbe')
-rw-r--r-- | sys-devel/qbe/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/qbe/qbe-1.1.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/sys-devel/qbe/Manifest b/sys-devel/qbe/Manifest index fd1f19c3fece..487bf9581e4a 100644 --- a/sys-devel/qbe/Manifest +++ b/sys-devel/qbe/Manifest @@ -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 diff --git a/sys-devel/qbe/qbe-1.1.ebuild b/sys-devel/qbe/qbe-1.1.ebuild new file mode 100644 index 000000000000..c32cbd4d13b6 --- /dev/null +++ b/sys-devel/qbe/qbe-1.1.ebuild @@ -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 +} |