summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2022-08-23 16:26:15 +0200
committerSam James <sam@gentoo.org>2022-08-25 03:09:26 +0100
commit6e4496c46cfe67d060225164cf50b923c2cd5858 (patch)
treed084e9082f37bcb12f1700ad62c62ae06e7c66c0 /sys-devel
parentapp-emacs/dashboard: bump to 1.8.0_pre20220809 (diff)
downloadgentoo-6e4496c46cfe67d060225164cf50b923c2cd5858.tar.gz
gentoo-6e4496c46cfe67d060225164cf50b923c2cd5858.tar.bz2
gentoo-6e4496c46cfe67d060225164cf50b923c2cd5858.zip
sys-devel/qbe: new package from ::guru, add 1.0-r1, 9999
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/qbe/Manifest1
-rw-r--r--sys-devel/qbe/metadata.xml12
-rw-r--r--sys-devel/qbe/qbe-1.0-r1.ebuild29
-rw-r--r--sys-devel/qbe/qbe-9999.ebuild29
4 files changed, 71 insertions, 0 deletions
diff --git a/sys-devel/qbe/Manifest b/sys-devel/qbe/Manifest
new file mode 100644
index 000000000000..fd1f19c3fece
--- /dev/null
+++ b/sys-devel/qbe/Manifest
@@ -0,0 +1 @@
+DIST qbe-1.0.tar.xz 237756 BLAKE2B ca6e1ee81f7329a8aee1f4597de391dcc44595fb8371468360fbcf1a5fc9fa404c614d49e4668fba568fa8d11e753d10b4c46380884fa635a56331b059b69abd SHA512 7f53d4440fda36b21dbf390aa8b9c17ae7c137a6e034dd73ca1c2068d84dbe236a452d86cab8d8bce0b3d66c3f08e70f2bf54bc7cc2e93208cc1900014c18ad1
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-r1.ebuild b/sys-devel/qbe/qbe-1.0-r1.ebuild
new file mode 100644
index 000000000000..28dcf876539b
--- /dev/null
+++ b/sys-devel/qbe/qbe-1.0-r1.ebuild
@@ -0,0 +1,29 @@
+# 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
+}
diff --git a/sys-devel/qbe/qbe-9999.ebuild b/sys-devel/qbe/qbe-9999.ebuild
new file mode 100644
index 000000000000..28dcf876539b
--- /dev/null
+++ b/sys-devel/qbe/qbe-9999.ebuild
@@ -0,0 +1,29 @@
+# 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
+}