1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
8 if [[ ${PV} == 9999 ]]; then
9 EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gcc-config.git"
12 SRC_URI="mirror://gentoo/${P}.tar.xz
13 https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
17 DESCRIPTION="Utility to manage compilers"
18 HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
23 RDEPEND=">=sys-apps/gentoo-functions-0.10"
26 emake CC="$(tc-getCC)" \
28 SUBLIBDIR="$(get_libdir)"
35 SUBLIBDIR="$(get_libdir)" \
40 # Scrub eselect-compiler remains
41 rm -f "${ROOT}"/etc/env.d/05compiler &
43 # We not longer use the /usr/include/g++-v3 hacks, as
44 # it is not needed ...
45 rm -f "${ROOT}"/usr/include/g++{,-v3} &
47 # Do we have a valid multi ver setup ?
49 for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do