Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-config/
Date: Wed, 24 Jun 2020 20:53:18
Message-Id: 1593031987.59b79416c6fd1cf7becd9b1863937ff15573b0bf.slyfox@gentoo
1 commit: 59b79416c6fd1cf7becd9b1863937ff15573b0bf
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 24 20:52:57 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 24 20:53:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b79416
7
8 sys-devel/gcc-config: add USE=cc-wrappers to live ebuild
9
10 Expose a knob to manage cc/f77.
11
12 Package-Manager: Portage-2.3.102, Repoman-2.3.23
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 sys-devel/gcc-config/gcc-config-9999.ebuild | 3 ++-
16 sys-devel/gcc-config/metadata.xml | 1 +
17 2 files changed, 3 insertions(+), 1 deletion(-)
18
19 diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild
20 index f18c030a06c..e7e08f381b4 100644
21 --- a/sys-devel/gcc-config/gcc-config-9999.ebuild
22 +++ b/sys-devel/gcc-config/gcc-config-9999.ebuild
23 @@ -17,7 +17,7 @@ DESCRIPTION="Utility to manage compilers"
24 HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
25 LICENSE="GPL-2"
26 SLOT="0"
27 -IUSE="+native-symlinks"
28 +IUSE="+cc-wrappers +native-symlinks"
29
30 RDEPEND=">=sys-apps/gentoo-functions-0.10"
31
32 @@ -25,6 +25,7 @@ _emake() {
33 emake \
34 PV="${PV}" \
35 SUBLIBDIR="$(get_libdir)" \
36 + USE_CC_WRAPPERS="$(usex cc-wrappers)" \
37 USE_NATIVE_LINKS="$(usex native-symlinks)" \
38 TOOLCHAIN_PREFIX="${CHOST}-" \
39 "$@"
40
41 diff --git a/sys-devel/gcc-config/metadata.xml b/sys-devel/gcc-config/metadata.xml
42 index 33e9604b041..ecfb291141e 100644
43 --- a/sys-devel/gcc-config/metadata.xml
44 +++ b/sys-devel/gcc-config/metadata.xml
45 @@ -6,6 +6,7 @@
46 <name>Gentoo Toolchain Project</name>
47 </maintainer>
48 <use>
49 + <flag name="cc-wrappers">Install and manage 'cc' and 'f77' wrappers in /usr/bin. Otherwise ignore them.</flag>
50 <flag name="native-symlinks">Install native symlinks like 'gcc' or 'g++' to /usr/bin. Otherwise keep only ${CTARGET}-gcc and friends.</flag>
51 </use>
52 </pkgmetadata>