sys-devel/binutils-config: Sync with Gentoo

It's from Gentoo commit 5117e4ac5a2a50ab05501c8b123b116ebf81ae9a.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2025-11-03 07:12:54 +00:00 committed by Krzesimir Nowak
parent e29f8358d5
commit 9ebe6c2765
3 changed files with 80 additions and 0 deletions

View File

@ -1 +1,3 @@
DIST binutils-config-5.5.2.tar.xz 7548 BLAKE2B a4fe6f2039c4963ba09fb63b52bf3707b91eed36b514132c0c23da2474b9af6d2fd5b8eaef2dd8f44827f5d38095c936685765d3c4cc7404d06c4ac069cf1102 SHA512 c53118c1ce4b87c0446b1b9993fadabe2bd7447dafc9a2bf795a5e3b802348b4fa8aede06284a0c86f80f23b221b037a0404d5424f2f5aa796e8a3ea6945328c
DIST binutils-config-5.5.3.tar.xz 7588 BLAKE2B dba41de46b379188fe11ec9cf82c71ec372d16294c14011cc19458bcea06c71f27ead2ebd0021eb1edfb3f2bf3a604ab58cea25667579f538043a7ad4e98b4ad SHA512 b12c3b708946d120c351a6e5d4f315f8cfceb7eaf59ea27b06acbb11216e92ee680089760d1df672401ac977a3bed7758e3a0463c59909b7e4df1107f416fdfb
DIST binutils-config-5.6.tar.xz 7552 BLAKE2B fdfd4ae4d964fc3cf5c9c6a0accd7c7db36a0e81483a4e39eb27533ff2e0d32f9bacfb541e6ca28fd70bcb204b23175b1fc1be4b67475fa628cf6bd37efba6e4 SHA512 11f36e83bdbb1ee98b866215ba3c480079dba7d00cbadf3d618e446b87bc3bfa2381cb30099463575a8cd2bf3352a5032610691f7e115b961240b48dec9b1cfa

View File

@ -0,0 +1,39 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~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 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 PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)"
}
src_install() {
emake DESTDIR="${D}" PV="${PV}" install
}
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
}

View File

@ -0,0 +1,39 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~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 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 PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)"
}
src_install() {
emake DESTDIR="${D}" PV="${PV}" install
}
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
}