mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
sys-devel/cproc: New Package
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
31
sys-devel/cproc/cproc-9999.ebuild
Normal file
31
sys-devel/cproc/cproc-9999.ebuild
Normal 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
|
||||
}
|
||||
11
sys-devel/cproc/metadata.xml
Normal file
11
sys-devel/cproc/metadata.xml
Normal 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>
|
||||
Reference in New Issue
Block a user