summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-06-24 21:52:57 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-06-24 21:53:07 +0100
commit59b79416c6fd1cf7becd9b1863937ff15573b0bf (patch)
tree804aef64ca3591f2692b8f8723abc12f94b5b757 /sys-devel
parentx11-apps/xinput_calibrator: Port to EAPI 7 (diff)
downloadgentoo-59b79416c6fd1cf7becd9b1863937ff15573b0bf.tar.gz
gentoo-59b79416c6fd1cf7becd9b1863937ff15573b0bf.tar.bz2
gentoo-59b79416c6fd1cf7becd9b1863937ff15573b0bf.zip
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@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-config/gcc-config-9999.ebuild3
-rw-r--r--sys-devel/gcc-config/metadata.xml1
2 files changed, 3 insertions, 1 deletions
diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild
index f18c030a06c7..e7e08f381b4d 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 33e9604b0414..ecfb291141ed 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>