commit:     59b79416c6fd1cf7becd9b1863937ff15573b0bf
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 24 20:52:57 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Jun 24 20:53:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b79416

sys-devel/gcc-config: add USE=cc-wrappers to live ebuild

Expose a knob to manage cc/f77.

Package-Manager: Portage-2.3.102, Repoman-2.3.23
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/gcc-config/gcc-config-9999.ebuild | 3 ++-
 sys-devel/gcc-config/metadata.xml           | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild 
b/sys-devel/gcc-config/gcc-config-9999.ebuild
index f18c030a06c..e7e08f381b4 100644
--- a/sys-devel/gcc-config/gcc-config-9999.ebuild
+++ b/sys-devel/gcc-config/gcc-config-9999.ebuild
@@ -17,7 +17,7 @@ DESCRIPTION="Utility to manage compilers"
 HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/";
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="+native-symlinks"
+IUSE="+cc-wrappers +native-symlinks"
 
 RDEPEND=">=sys-apps/gentoo-functions-0.10"
 
@@ -25,6 +25,7 @@ _emake() {
        emake \
                PV="${PV}" \
                SUBLIBDIR="$(get_libdir)" \
+               USE_CC_WRAPPERS="$(usex cc-wrappers)" \
                USE_NATIVE_LINKS="$(usex native-symlinks)" \
                TOOLCHAIN_PREFIX="${CHOST}-" \
                "$@"

diff --git a/sys-devel/gcc-config/metadata.xml 
b/sys-devel/gcc-config/metadata.xml
index 33e9604b041..ecfb291141e 100644
--- a/sys-devel/gcc-config/metadata.xml
+++ b/sys-devel/gcc-config/metadata.xml
@@ -6,6 +6,7 @@
                <name>Gentoo Toolchain Project</name>
        </maintainer>
        <use>
+               <flag name="cc-wrappers">Install and manage 'cc' and 'f77' 
wrappers in /usr/bin. Otherwise ignore them.</flag>
                <flag name="native-symlinks">Install native symlinks like 'gcc' 
or 'g++' to /usr/bin. Otherwise keep only ${CTARGET}-gcc and friends.</flag>
        </use>
 </pkgmetadata>

Reply via email to