1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Utility to change the binutils version being used"
9 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
17 # We also RDEPEND on sys-apps/findutils which is in base @system
18 RDEPEND="sys-apps/gentoo-functions"
23 newbin "${FILESDIR}"/${PN}-${PV} ${PN}
24 use prefix && eprefixify "${ED}"/usr/bin/${PN}
25 sed -i "s:@PV@:${PVR}:g" "${ED}"/usr/bin/${PN} || die
26 doman "${FILESDIR}"/${PN}.8
28 insinto /usr/share/eselect/modules
29 doins "${FILESDIR}"/binutils.eselect
33 # Force a refresh when upgrading from an older version that symlinked
34 # in all the libs & includes that binutils-libs handles. #528088
35 if has_version "<${CATEGORY}/${PN}-5" ; then
37 bc="${ED}/usr/bin/binutils-config"
38 if current=$("${bc}" -c) ; then