Gentoo Archives: gentoo-commits

From: Nickolas Raymond Kaczynski <nrk@×××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-text/smu/
Date: Wed, 08 Sep 2021 10:10:03
Message-Id: 1631095770.f21d03ff3c0ce73b8be3da53cd309690fe9b2948.nrk@gentoo
1 commit: f21d03ff3c0ce73b8be3da53cd309690fe9b2948
2 Author: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
3 AuthorDate: Wed Sep 8 10:07:12 2021 +0000
4 Commit: Nickolas Raymond Kaczynski <nrk <AT> disroot <DOT> org>
5 CommitDate: Wed Sep 8 10:09:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f21d03ff
7
8 app-text/smu: fix calling CC directly
9
10 Closes: https://bugs.gentoo.org/812116
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Nickolas Raymond Kaczynski <nrk <AT> disroot.org>
13
14 app-text/smu/smu-1.5.ebuild | 7 +++++++
15 app-text/smu/smu-9999.ebuild | 7 +++++++
16 2 files changed, 14 insertions(+)
17
18 diff --git a/app-text/smu/smu-1.5.ebuild b/app-text/smu/smu-1.5.ebuild
19 index dee873a6c..d926d593e 100644
20 --- a/app-text/smu/smu-1.5.ebuild
21 +++ b/app-text/smu/smu-1.5.ebuild
22 @@ -3,6 +3,8 @@
23
24 EAPI=8
25
26 +inherit toolchain-funcs
27 +
28 if [[ ${PV} == 9999 ]]; then
29 inherit git-r3
30 EGIT_REPO_URI="https://github.com/Gottox/${PN}.git"
31 @@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
32 LICENSE="MIT"
33 SLOT="0"
34
35 +pkg_setup() {
36 + export CC="$(tc-getCC)"
37 +}
38 +
39 src_prepare() {
40 default
41 sed -i \
42 + -e '/^CC/d' \
43 -e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
44 -e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
45 config.mk || die "sed failed"
46
47 diff --git a/app-text/smu/smu-9999.ebuild b/app-text/smu/smu-9999.ebuild
48 index 72ebfc1d5..318067044 100644
49 --- a/app-text/smu/smu-9999.ebuild
50 +++ b/app-text/smu/smu-9999.ebuild
51 @@ -3,6 +3,8 @@
52
53 EAPI=8
54
55 +inherit toolchain-funcs
56 +
57 if [[ ${PV} == 9999 ]]; then
58 inherit git-r3
59 EGIT_REPO_URI="https://github.com/Gottox/smu.git"
60 @@ -17,9 +19,14 @@ HOMEPAGE="https://github.com/Gottox/smu"
61 LICENSE="MIT"
62 SLOT="0"
63
64 +pkg_setup() {
65 + export CC="$(tc-getCC)"
66 +}
67 +
68 src_prepare() {
69 default
70 sed -i \
71 + -e '/^CC/d' \
72 -e '/^CFLAGS/ s|-g -O0 ||;s|-Werror ||;s|^CFLAGS =|CFLAGS +=|;' \
73 -e '/^LDFLAGS/ s|^LDFLAGS =|LDFLAGS +=|' \
74 config.mk || die "sed failed"