You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
758 B
40 lines
758 B
# Copyright 2021-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit edo toolchain-funcs
|
|
|
|
if [[ ${PV} = 9999 ]]; then
|
|
EGIT_REPO_URI="https://git.sr.ht/~mcf/cproc"
|
|
inherit git-r3
|
|
else
|
|
CPROC_COMMIT="6fabc79d81de56b6c1cdcc2242933fd792e2ddf9"
|
|
CPROC_P="${PN}-${CPROC_COMMIT}"
|
|
SRC_URI="https://git.sr.ht/~mcf/cproc/archive/${CPROC_COMMIT}.tar.gz -> ${CPROC_P}.tar.gz"
|
|
S="${WORKDIR}/${CPROC_P}"
|
|
|
|
KEYWORDS="~amd64 ~arm64 ~riscv"
|
|
fi
|
|
|
|
DESCRIPTION="C11 compiler using QBE as backend"
|
|
HOMEPAGE="https://sr.ht/~mcf/cproc/"
|
|
|
|
LICENSE="ISC"
|
|
SLOT="0"
|
|
|
|
DEPEND="sys-devel/qbe"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
rm -r "${S}/qbe" || die
|
|
}
|
|
|
|
src_configure() {
|
|
tc-export CC
|
|
|
|
edo ./configure --prefix=/usr
|
|
}
|