diff options
Diffstat (limited to 'sys-devel/qbe')
-rw-r--r-- | sys-devel/qbe/Manifest | 4 | ||||
-rw-r--r-- | sys-devel/qbe/metadata.xml | 12 | ||||
-rw-r--r-- | sys-devel/qbe/qbe-1.0.ebuild | 35 | ||||
-rw-r--r-- | sys-devel/qbe/qbe-9999.ebuild | 31 |
4 files changed, 82 insertions, 0 deletions
diff --git a/sys-devel/qbe/Manifest b/sys-devel/qbe/Manifest new file mode 100644 index 000000000000..9a4b4ad1f75b --- /dev/null +++ b/sys-devel/qbe/Manifest @@ -0,0 +1,4 @@ +DIST qbe-1.0.tar.xz 237756 BLAKE2B ca6e1ee81f7329a8aee1f4597de391dcc44595fb8371468360fbcf1a5fc9fa404c614d49e4668fba568fa8d11e753d10b4c46380884fa635a56331b059b69abd SHA512 7f53d4440fda36b21dbf390aa8b9c17ae7c137a6e034dd73ca1c2068d84dbe236a452d86cab8d8bce0b3d66c3f08e70f2bf54bc7cc2e93208cc1900014c18ad1 +EBUILD qbe-1.0.ebuild 626 BLAKE2B dfde2632cd7e020c676e451dc92d3733b1747c6af97d6108a2fb779674d8a5f988039e84a7bcf3563a04a3111b7d105d7a412c28fb1fbbd11edb19f6fcfbbeb6 SHA512 909d5e5249a4556ca2c8fbedfe345b9618d2b2405fa4250fb0d6999446fddc1f2ef58d03e50e1bfcaabfe216d52f3f9c844f1c1a40d4d3a023fdd82c1705c931 +EBUILD qbe-9999.ebuild 586 BLAKE2B 587a90046f6cf812f69c6b23dc5cf85f5067c3e40785e3025de7dab9354a7a08696b37dcfa0cb168826401207ba288f8acc479ac4ea5e6ff6c2399579fc730bc SHA512 14dec7a60b7c398c12f9e92e32dbfcda15543961e208c6f51bc44a5a5f46f60196d892f281c5f5ddfc5b0565db2de0aa2c63ac93287519cc332ba3fa6eb26557 +MISC metadata.xml 409 BLAKE2B 61d1ac0ebe8ac2bbd208fe98e5f7f32e208315ddf71e19faf0d1b5c39f5b93fe9896ff0b9738d607d7baef54c8b026d55bc83a0d27813be65a5404f507ef2754 SHA512 3e1d53e71543488d3e9308a6b8a4ee454a69ffb26e542e0218029fe19c2eeba07aaef2167d4c9280ede9ef7d0901514d7ff82656b798a947e469b730a9e4cf85 diff --git a/sys-devel/qbe/metadata.xml b/sys-devel/qbe/metadata.xml new file mode 100644 index 000000000000..fc3c6c671309 --- /dev/null +++ b/sys-devel/qbe/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> diff --git a/sys-devel/qbe/qbe-1.0.ebuild b/sys-devel/qbe/qbe-1.0.ebuild new file mode 100644 index 000000000000..d041b7d0b849 --- /dev/null +++ b/sys-devel/qbe/qbe-1.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 2021-2022 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 +} diff --git a/sys-devel/qbe/qbe-9999.ebuild b/sys-devel/qbe/qbe-9999.ebuild new file mode 100644 index 000000000000..2b2487f3dbbd --- /dev/null +++ b/sys-devel/qbe/qbe-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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() { + emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}" +} + +src_install() { + einstalldocs + emake install DESTDIR="${ED}" PREFIX=/usr +} |