1 |
commit: bcf1494c50e606bb0ac0a7b49afeaa9c2b2c2d52 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 09:47:00 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 09:47:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcf1494c |
7 |
|
8 |
sys-devel/gcc-config: add USE=+native-symlinks flag |
9 |
|
10 |
This flag guards presence of 'cc', 'gcc' and friends. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/724454 |
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
sys-devel/gcc-config/gcc-config-9999.ebuild | 5 +++-- |
17 |
sys-devel/gcc-config/metadata.xml | 11 +++++++---- |
18 |
2 files changed, 10 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild b/sys-devel/gcc-config/gcc-config-9999.ebuild |
21 |
index c27a2a1f2a8..b599996f2b3 100644 |
22 |
--- a/sys-devel/gcc-config/gcc-config-9999.ebuild |
23 |
+++ b/sys-devel/gcc-config/gcc-config-9999.ebuild |
24 |
@@ -18,14 +18,15 @@ DESCRIPTION="Utility to manage compilers" |
25 |
HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" |
26 |
LICENSE="GPL-2" |
27 |
SLOT="0" |
28 |
-IUSE="" |
29 |
+IUSE="+native-symlinks" |
30 |
|
31 |
RDEPEND=">=sys-apps/gentoo-functions-0.10" |
32 |
|
33 |
src_compile() { |
34 |
emake CC="$(tc-getCC)" \ |
35 |
PV="${PV}" \ |
36 |
- SUBLIBDIR="$(get_libdir)" |
37 |
+ SUBLIBDIR="$(get_libdir)" \ |
38 |
+ USE_NATIVE_LINKS="$(usex native-symlinks)" |
39 |
} |
40 |
|
41 |
src_install() { |
42 |
|
43 |
diff --git a/sys-devel/gcc-config/metadata.xml b/sys-devel/gcc-config/metadata.xml |
44 |
index e396f375597..33e9604b041 100644 |
45 |
--- a/sys-devel/gcc-config/metadata.xml |
46 |
+++ b/sys-devel/gcc-config/metadata.xml |
47 |
@@ -1,8 +1,11 @@ |
48 |
<?xml version="1.0" encoding="UTF-8"?> |
49 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
50 |
<pkgmetadata> |
51 |
-<maintainer type="project"> |
52 |
- <email>toolchain@g.o</email> |
53 |
- <name>Gentoo Toolchain Project</name> |
54 |
-</maintainer> |
55 |
+ <maintainer type="project"> |
56 |
+ <email>toolchain@g.o</email> |
57 |
+ <name>Gentoo Toolchain Project</name> |
58 |
+ </maintainer> |
59 |
+ <use> |
60 |
+ <flag name="native-symlinks">Install native symlinks like 'gcc' or 'g++' to /usr/bin. Otherwise keep only ${CTARGET}-gcc and friends.</flag> |
61 |
+ </use> |
62 |
</pkgmetadata> |