diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-22 21:52:03 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-05-22 21:53:03 +0100 |
commit | 50a8395a13105e32b3d1487485def981ee9ccfd9 (patch) | |
tree | 7c4d4dcd0bfd93ec188688c7b650379ee0c07897 /sys-devel | |
parent | sys-devel/gcc-config: bump up to 2.3, bug #724454 (diff) | |
download | gentoo-50a8395a13105e32b3d1487485def981ee9ccfd9.tar.gz gentoo-50a8395a13105e32b3d1487485def981ee9ccfd9.tar.bz2 gentoo-50a8395a13105e32b3d1487485def981ee9ccfd9.zip |
sys-devel/binutils-config: bump up to 5.3, bug #724454
Main change is USE=native-symlinks to avoid symlinks
without ${CTARGET} qualifier.
Bug: https://bugs.gentoo.org/724454
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/binutils-config/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/binutils-config/binutils-config-5.3.ebuild | 43 | ||||
-rw-r--r-- | sys-devel/binutils-config/binutils-config-9999.ebuild | 2 |
3 files changed, 45 insertions, 1 deletions
diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest index 5def3cddef8d..f40e04ac4038 100644 --- a/sys-devel/binutils-config/Manifest +++ b/sys-devel/binutils-config/Manifest @@ -1 +1,2 @@ DIST binutils-config-5.2.1.tar.xz 6200 BLAKE2B e9b5c61e17aeae8b537c485dd555424136d1638182bb92f22f66eac27e18997d45b1a34b1362622bdc21d060ffac8627e9072107561b81c12ee579a55ef40313 SHA512 9ae130da747eaca8ca9717a69be053eba33946fc4101b77fd795d18202e9d6c27f169c29568b5c97b8f581a37f317b72d13b6d61267a61b117e970f3cfbe048b +DIST binutils-config-5.3.tar.xz 6572 BLAKE2B ae3593e8576419f00ea8f471c6c93dccb90e4e87e682a028d2f9c42608f4269533f7322be5153ee178f3af89ae2270ffc4334903613e803735c748f88699c66f SHA512 31253f6ba4b1fdbf71c251066fed3ab9bd351b67bd4b12c134a8ba1c258ef0b4a8c571c981e23ab4b5f5aa9175ce151024a19729b6edb7ec61ad08ec7c262b24 diff --git a/sys-devel/binutils-config/binutils-config-5.3.ebuild b/sys-devel/binutils-config/binutils-config-5.3.ebuild new file mode 100644 index 000000000000..5f9cd23da4a1 --- /dev/null +++ b/sys-devel/binutils-config/binutils-config-5.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit prefix + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/binutils-config.git" + inherit git-r3 +else + SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Utility to change the binutils version being used" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+native-symlinks" + +# We also RDEPEND on sys-apps/findutils which is in base @system +RDEPEND="sys-apps/gentoo-functions" + +src_compile() { + emake DESTDIR="${D}" PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)" +} + +src_install() { + emake DESTDIR="${D}" PV="${PV}" install + + use prefix && eprefixify "${ED}"/usr/bin/${PN} +} + +pkg_postinst() { + # Re-register all targets. USE flags or new versions can change + # installed symlinks. + local x + for x in $(binutils-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do + binutils-config ${x} + done +} diff --git a/sys-devel/binutils-config/binutils-config-9999.ebuild b/sys-devel/binutils-config/binutils-config-9999.ebuild index d284d9330ece..5f9cd23da4a1 100644 --- a/sys-devel/binutils-config/binutils-config-9999.ebuild +++ b/sys-devel/binutils-config/binutils-config-9999.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == 9999 ]]; then inherit git-r3 else SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" fi DESCRIPTION="Utility to change the binutils version being used" |