commit:     d362b1c7e6ed7a7b238d62fe69c90230350b269c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 25 02:08:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 25 02:09:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d362b1c7

sys-devel/cproc: style tweaks, EAPI 8, respect CC

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/cproc/cproc-0_pre20220805.ebuild | 15 ++++++++++-----
 sys-devel/cproc/cproc-9999.ebuild          | 15 ++++++++++-----
 2 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/sys-devel/cproc/cproc-0_pre20220805.ebuild 
b/sys-devel/cproc/cproc-0_pre20220805.ebuild
index 74f03bd8630d..163ffe80afba 100644
--- a/sys-devel/cproc/cproc-0_pre20220805.ebuild
+++ b/sys-devel/cproc/cproc-0_pre20220805.ebuild
@@ -1,11 +1,13 @@
 # Copyright 2021-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-if [[ "${PV}" = 9999 ]]; then
-       inherit git-r3
+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}"
@@ -17,10 +19,11 @@ fi
 
 DESCRIPTION="C11 compiler using QBE as backend"
 HOMEPAGE="https://sr.ht/~mcf/cproc/";
+
 LICENSE="ISC"
 SLOT="0"
 
-DEPEND="sys-devel/qbe:="
+DEPEND="sys-devel/qbe"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
@@ -30,5 +33,7 @@ src_prepare() {
 }
 
 src_configure() {
-       ./configure --prefix=/usr || die
+       tc-export CC
+
+       edo ./configure --prefix=/usr
 }

diff --git a/sys-devel/cproc/cproc-9999.ebuild 
b/sys-devel/cproc/cproc-9999.ebuild
index 74f03bd8630d..163ffe80afba 100644
--- a/sys-devel/cproc/cproc-9999.ebuild
+++ b/sys-devel/cproc/cproc-9999.ebuild
@@ -1,11 +1,13 @@
 # Copyright 2021-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-if [[ "${PV}" = 9999 ]]; then
-       inherit git-r3
+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}"
@@ -17,10 +19,11 @@ fi
 
 DESCRIPTION="C11 compiler using QBE as backend"
 HOMEPAGE="https://sr.ht/~mcf/cproc/";
+
 LICENSE="ISC"
 SLOT="0"
 
-DEPEND="sys-devel/qbe:="
+DEPEND="sys-devel/qbe"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
@@ -30,5 +33,7 @@ src_prepare() {
 }
 
 src_configure() {
-       ./configure --prefix=/usr || die
+       tc-export CC
+
+       edo ./configure --prefix=/usr
 }

Reply via email to