diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2024-02-17 07:11:16 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2024-02-28 09:31:37 +0100 |
commit | 5fe4724e0900caa4ea76725043605fe3e83c2e3b (patch) | |
tree | 40682b2172aa3fd4a69d9c7805d96aa048461a7a /sys-devel | |
parent | mailmap: Add my old contribution addresses (diff) | |
download | gentoo-5fe4724e0900caa4ea76725043605fe3e83c2e3b.tar.gz gentoo-5fe4724e0900caa4ea76725043605fe3e83c2e3b.tar.bz2 gentoo-5fe4724e0900caa4ea76725043605fe3e83c2e3b.zip |
sys-devel/qbe: add 1.2
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/qbe/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/qbe/qbe-1.2.ebuild | 41 | ||||
-rw-r--r-- | sys-devel/qbe/qbe-9999.ebuild | 8 |
3 files changed, 49 insertions, 1 deletions
diff --git a/sys-devel/qbe/Manifest b/sys-devel/qbe/Manifest index d1437d2fdad0..b964189f706c 100644 --- a/sys-devel/qbe/Manifest +++ b/sys-devel/qbe/Manifest @@ -1,5 +1,6 @@ DIST qbe-1.0.tar.xz 237756 BLAKE2B ca6e1ee81f7329a8aee1f4597de391dcc44595fb8371468360fbcf1a5fc9fa404c614d49e4668fba568fa8d11e753d10b4c46380884fa635a56331b059b69abd SHA512 7f53d4440fda36b21dbf390aa8b9c17ae7c137a6e034dd73ca1c2068d84dbe236a452d86cab8d8bce0b3d66c3f08e70f2bf54bc7cc2e93208cc1900014c18ad1 DIST qbe-1.1.tar.xz 244740 BLAKE2B fdadca56ff5a6b56f30e0a99724908e356b3c1b545e5b35a27080a92ca0d417ff53deb8f4c0a31b9289acab58fb79568384669004b0275cddd83afb198a7a5aa SHA512 1e5d7d1df3d73849dbf19dd1d84c9bba63a5041622823a5a239496032f9d82bd1640dd2bbd03e28c8a180b8e66a1fe10deb940b5d8fde996bf593f7e8d943e8b +DIST qbe-1.2.tar.xz 246364 BLAKE2B b4cf4562caf6db191f1b2bfd078e2dfebfbe526a454552691ff78fba7b2d6c27b09df8ea5c795b49b9509a73b6981c17684d6e887999878f6e5bc7923c5047ef SHA512 b3ffd172e95346b3bfae1d2aff4c22a32af8bd4443d073f6fbb711f41db01f072ca7a8108901508cd4a8366567dab46510e0438716d35548591fdf37cee49971 DIST qbe-dbgfile.patch 3813 BLAKE2B fbe0dd9c4fab8399054c091bb50fd8002c43108c53f2177ea000784f0707e9fb4fe432d637d03ccd87247f0ab1d232d5ba81e3a3e61347b7e1f31bb61b701c62 SHA512 41694848c95341f16618cd8f8d3222415e551b36b3428467e7ad066e257bc235dedbae4a1da4a6ae9034d102e359ecd69f51c580ad3f613e0e427df1882d1c65 DIST qbe-info-tracking.patch 6305 BLAKE2B 03cb80de722e642812558fe7fe93eb3683f0fb54a2d78a1ceacf68016c779dee47f314651f0a6f1690d8b3ddc3089d41a894caafa83ec408d46b9375d24c9e3d SHA512 00d37894fca754f23024a8d64591e22f74b8f50022de77c1b25b474a68d204f0d89f2f3dbbfb822c5293ebccdadd923516c28b1e3c358c07de7a284fa0ef722f DIST qbe-parseline-tweaks.patch 1519 BLAKE2B 88940d42dbed988a5ecff68f18a1fab9c5024d5fb4d8219a1984f676808f9b5dbc4c4a729bf419358e0be71244aa4b97e23b3575aa4458a5c4059f7f1cd2151e SHA512 8701657032f26f8f7fe0de768573c5f111f80e5cc9d62fb4bfcf895b421532f039f08234bca8b4156b097f80893483fa8323cde3a8f3c8a5c729412328097bb2 diff --git a/sys-devel/qbe/qbe-1.2.ebuild b/sys-devel/qbe/qbe-1.2.ebuild new file mode 100644 index 000000000000..baaab97b66c1 --- /dev/null +++ b/sys-devel/qbe/qbe-1.2.ebuild @@ -0,0 +1,41 @@ +# Copyright 2021-2024 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_prepare() { + default + + sed -i 's;^CC *=.*;CC ?= cc;' Makefile || die +} + +src_compile() { + tc-export CC + + emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}" +} + +src_install() { + einstalldocs + emake install DESTDIR="${ED}" PREFIX=/usr +} diff --git a/sys-devel/qbe/qbe-9999.ebuild b/sys-devel/qbe/qbe-9999.ebuild index d041b7d0b849..baaab97b66c1 100644 --- a/sys-devel/qbe/qbe-9999.ebuild +++ b/sys-devel/qbe/qbe-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021-2022 Gentoo Authors +# Copyright 2021-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -23,6 +23,12 @@ SLOT="0" DOCS=( README doc ) +src_prepare() { + default + + sed -i 's;^CC *=.*;CC ?= cc;' Makefile || die +} + src_compile() { tc-export CC |