sys-devel/cproc: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2022-04-23 19:19:59 +02:00
parent c899e79918
commit bd12672caa
2 changed files with 42 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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>