Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/discount/
Date: Sun, 22 Oct 2017 18:23:54
Message-Id: 1508695900.8689fa2a0ccf320229054f49e1fdf8646704dd7c.slyfox@gentoo
1 commit: 8689fa2a0ccf320229054f49e1fdf8646704dd7c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 22 18:09:57 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 22 18:11:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8689fa2a
7
8 app-text/discount: respect gentoo's CC propagation
9
10 Before the change build log looks like:
11 cc -I. ... -g -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fPIC -I. -c main.c
12 After the change:
13 x86_64-pc-linux-gnu-gcc -I. ... -g -O2 -pipe -fdiagnostics-show-option -frecord-gcc-switches -fPIC -I. -c main.c
14
15 See https://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/
16 for more details.
17
18 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
19
20 app-text/discount/discount-2.2.2.ebuild | 3 +++
21 1 file changed, 3 insertions(+)
22
23 diff --git a/app-text/discount/discount-2.2.2.ebuild b/app-text/discount/discount-2.2.2.ebuild
24 index a16f7b4e402..bb4f809a591 100644
25 --- a/app-text/discount/discount-2.2.2.ebuild
26 +++ b/app-text/discount/discount-2.2.2.ebuild
27 @@ -3,6 +3,8 @@
28
29 EAPI=6
30
31 +inherit toolchain-funcs
32 +
33 DESCRIPTION="A Markdown-to HTML translator written in C"
34 HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/"
35 SRC_URI="http://www.pell.portland.or.us/~orc/Code/${PN}/${P}.tar.bz2"
36 @@ -46,6 +48,7 @@ src_configure() {
37 --debian-glitch
38 )
39 einfo "Running ${configure_call[@]}"
40 + CC="$(tc-getCC)" \
41 "${configure_call[@]}" || die
42 }