1 |
commit: ed18bdc4fcc38d8015b4a17b3537444dcf61b5aa |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 25 02:06:56 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=ed18bdc4 |
7 |
|
8 |
sys-devel/qbe: style tweaks, EAPI 8, respect CC |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-devel/qbe/{qbe-1.0-r1.ebuild => qbe-1.0.ebuild} | 12 +++++++++--- |
13 |
sys-devel/qbe/qbe-9999.ebuild | 8 +++++--- |
14 |
2 files changed, 14 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/sys-devel/qbe/qbe-1.0-r1.ebuild b/sys-devel/qbe/qbe-1.0.ebuild |
17 |
similarity index 87% |
18 |
rename from sys-devel/qbe/qbe-1.0-r1.ebuild |
19 |
rename to sys-devel/qbe/qbe-1.0.ebuild |
20 |
index 28dcf876539b..d041b7d0b849 100644 |
21 |
--- a/sys-devel/qbe/qbe-1.0-r1.ebuild |
22 |
+++ b/sys-devel/qbe/qbe-1.0.ebuild |
23 |
@@ -1,25 +1,31 @@ |
24 |
# Copyright 2021-2022 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=7 |
28 |
+EAPI=8 |
29 |
|
30 |
-if [[ "${PV}" == "9999" ]]; then |
31 |
- inherit git-r3 |
32 |
+inherit toolchain-funcs |
33 |
+ |
34 |
+if [[ ${PV} == 9999 ]]; then |
35 |
EGIT_REPO_URI="git://c9x.me/qbe.git" |
36 |
+ inherit git-r3 |
37 |
else |
38 |
SRC_URI="https://c9x.me/compile/release/${P}.tar.xz" |
39 |
+ |
40 |
# 64-bit RISC-V only |
41 |
KEYWORDS="~amd64 ~arm64 ~riscv" |
42 |
fi |
43 |
|
44 |
DESCRIPTION="Pure-C embeddable compiler backend" |
45 |
HOMEPAGE="https://c9x.me/compile/" |
46 |
+ |
47 |
LICENSE="MIT" |
48 |
SLOT="0" |
49 |
|
50 |
DOCS=( README doc ) |
51 |
|
52 |
src_compile() { |
53 |
+ tc-export CC |
54 |
+ |
55 |
emake CFLAGS="-std=c99 ${CPPFLAGS} ${CFLAGS}" |
56 |
} |
57 |
|
58 |
|
59 |
diff --git a/sys-devel/qbe/qbe-9999.ebuild b/sys-devel/qbe/qbe-9999.ebuild |
60 |
index 28dcf876539b..2b2487f3dbbd 100644 |
61 |
--- a/sys-devel/qbe/qbe-9999.ebuild |
62 |
+++ b/sys-devel/qbe/qbe-9999.ebuild |
63 |
@@ -1,19 +1,21 @@ |
64 |
# Copyright 2021-2022 Gentoo Authors |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
|
67 |
-EAPI=7 |
68 |
+EAPI=8 |
69 |
|
70 |
-if [[ "${PV}" == "9999" ]]; then |
71 |
- inherit git-r3 |
72 |
+if [[ ${PV} == 9999 ]]; then |
73 |
EGIT_REPO_URI="git://c9x.me/qbe.git" |
74 |
+ inherit git-r3 |
75 |
else |
76 |
SRC_URI="https://c9x.me/compile/release/${P}.tar.xz" |
77 |
+ |
78 |
# 64-bit RISC-V only |
79 |
KEYWORDS="~amd64 ~arm64 ~riscv" |
80 |
fi |
81 |
|
82 |
DESCRIPTION="Pure-C embeddable compiler backend" |
83 |
HOMEPAGE="https://c9x.me/compile/" |
84 |
+ |
85 |
LICENSE="MIT" |
86 |
SLOT="0" |