aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-devel/cproc/cproc-9999.ebuild31
-rw-r--r--sys-devel/cproc/metadata.xml11
2 files changed, 42 insertions, 0 deletions
diff --git a/sys-devel/cproc/cproc-9999.ebuild b/sys-devel/cproc/cproc-9999.ebuild
new file mode 100644
index 000000000..b252f88f8
--- /dev/null
+++ b/sys-devel/cproc/cproc-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit git-r3
+
+DESCRIPTION="C11 compiler using QBE as backend"
+HOMEPAGE="https://sr.ht/~mcf/cproc/"
+EGIT_REPO_URI="https://git.sr.ht/~mcf/cproc"
+LICENSE="ISC"
+SLOT="0"
+IUSE="system-qbe"
+
+DEPEND="system-qbe? ( sys-devel/qbe:= )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ || die
+}
+
+src_compile() {
+ if ! use system-qbe; then
+ emake qbe
+ PATH=$PWD/qbe/obj:$PATH emake
+ else
+ emake
+ fi
+}
diff --git a/sys-devel/cproc/metadata.xml b/sys-devel/cproc/metadata.xml
new file mode 100644
index 000000000..25735d2cf
--- /dev/null
+++ b/sys-devel/cproc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+ <use>
+ <flag name="system-qbe">Use <pkg>sys-devel/qbe</pkg> instead of the vendored one</flag>
+ </use>
+</pkgmetadata>