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="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
16 DESCRIPTION="Utility to manage compilers"
17 HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
20 IUSE="+native-symlinks"
22 RDEPEND=">=sys-apps/gentoo-functions-0.10"
25 emake CC="$(tc-getCC)" \
27 SUBLIBDIR="$(get_libdir)" \
28 USE_NATIVE_LINKS="$(usex native-symlinks)"
35 SUBLIBDIR="$(get_libdir)" \
40 # Scrub eselect-compiler remains.
41 # To be removed in 2021.
42 rm -f "${ROOT}"/etc/env.d/05compiler
44 # We not longer use the /usr/include/g++-v3 hacks, as
45 # it is not needed ...
46 # To be removed in 2021.
47 rm -f "${ROOT}"/usr/include/g++{,-v3}
49 # Do we have a valid multi ver setup ?
51 for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
55 # USE flag change can add or delete files in /usr/bin worth recaching
56 if [[ ! ${ROOT%/} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
57 eselect compiler-shadow update all