Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/cproc/
Date: Thu, 25 Aug 2022 02:09:48
Message-Id: 1661393367.d362b1c7e6ed7a7b238d62fe69c90230350b269c.sam@gentoo
1 commit: d362b1c7e6ed7a7b238d62fe69c90230350b269c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 25 02:08:39 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 25 02:09:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d362b1c7
7
8 sys-devel/cproc: style tweaks, EAPI 8, respect CC
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-devel/cproc/cproc-0_pre20220805.ebuild | 15 ++++++++++-----
13 sys-devel/cproc/cproc-9999.ebuild | 15 ++++++++++-----
14 2 files changed, 20 insertions(+), 10 deletions(-)
15
16 diff --git a/sys-devel/cproc/cproc-0_pre20220805.ebuild b/sys-devel/cproc/cproc-0_pre20220805.ebuild
17 index 74f03bd8630d..163ffe80afba 100644
18 --- a/sys-devel/cproc/cproc-0_pre20220805.ebuild
19 +++ b/sys-devel/cproc/cproc-0_pre20220805.ebuild
20 @@ -1,11 +1,13 @@
21 # Copyright 2021-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=7
25 +EAPI=8
26
27 -if [[ "${PV}" = 9999 ]]; then
28 - inherit git-r3
29 +inherit edo toolchain-funcs
30 +
31 +if [[ ${PV} = 9999 ]]; then
32 EGIT_REPO_URI="https://git.sr.ht/~mcf/cproc"
33 + inherit git-r3
34 else
35 CPROC_COMMIT="6fabc79d81de56b6c1cdcc2242933fd792e2ddf9"
36 CPROC_P="${PN}-${CPROC_COMMIT}"
37 @@ -17,10 +19,11 @@ fi
38
39 DESCRIPTION="C11 compiler using QBE as backend"
40 HOMEPAGE="https://sr.ht/~mcf/cproc/"
41 +
42 LICENSE="ISC"
43 SLOT="0"
44
45 -DEPEND="sys-devel/qbe:="
46 +DEPEND="sys-devel/qbe"
47 RDEPEND="${DEPEND}"
48
49 src_prepare() {
50 @@ -30,5 +33,7 @@ src_prepare() {
51 }
52
53 src_configure() {
54 - ./configure --prefix=/usr || die
55 + tc-export CC
56 +
57 + edo ./configure --prefix=/usr
58 }
59
60 diff --git a/sys-devel/cproc/cproc-9999.ebuild b/sys-devel/cproc/cproc-9999.ebuild
61 index 74f03bd8630d..163ffe80afba 100644
62 --- a/sys-devel/cproc/cproc-9999.ebuild
63 +++ b/sys-devel/cproc/cproc-9999.ebuild
64 @@ -1,11 +1,13 @@
65 # Copyright 2021-2022 Gentoo Authors
66 # Distributed under the terms of the GNU General Public License v2
67
68 -EAPI=7
69 +EAPI=8
70
71 -if [[ "${PV}" = 9999 ]]; then
72 - inherit git-r3
73 +inherit edo toolchain-funcs
74 +
75 +if [[ ${PV} = 9999 ]]; then
76 EGIT_REPO_URI="https://git.sr.ht/~mcf/cproc"
77 + inherit git-r3
78 else
79 CPROC_COMMIT="6fabc79d81de56b6c1cdcc2242933fd792e2ddf9"
80 CPROC_P="${PN}-${CPROC_COMMIT}"
81 @@ -17,10 +19,11 @@ fi
82
83 DESCRIPTION="C11 compiler using QBE as backend"
84 HOMEPAGE="https://sr.ht/~mcf/cproc/"
85 +
86 LICENSE="ISC"
87 SLOT="0"
88
89 -DEPEND="sys-devel/qbe:="
90 +DEPEND="sys-devel/qbe"
91 RDEPEND="${DEPEND}"
92
93 src_prepare() {
94 @@ -30,5 +33,7 @@ src_prepare() {
95 }
96
97 src_configure() {
98 - ./configure --prefix=/usr || die
99 + tc-export CC
100 +
101 + edo ./configure --prefix=/usr
102 }