mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 23:51:07 +02:00
sys-devel/binutils-config: Sync with Gentoo
It's from Gentoo commit 994a7ab88b9b440c7db756531ffe62ad50e78602.
This commit is contained in:
parent
e951b416eb
commit
2bdf6f15c9
@ -1 +1,2 @@
|
||||
DIST binutils-config-5.5.2.tar.xz 7548 BLAKE2B a4fe6f2039c4963ba09fb63b52bf3707b91eed36b514132c0c23da2474b9af6d2fd5b8eaef2dd8f44827f5d38095c936685765d3c4cc7404d06c4ac069cf1102 SHA512 c53118c1ce4b87c0446b1b9993fadabe2bd7447dafc9a2bf795a5e3b802348b4fa8aede06284a0c86f80f23b221b037a0404d5424f2f5aa796e8a3ea6945328c
|
||||
DIST binutils-config-5.5.tar.xz 7344 BLAKE2B decef43013ca2f7c6d36c12d08d55f499d866b6b1b55ed58f8b2df3761077b5e2c4d09d1f2c40762d42c2d3b9827575833a502b79180ef13b845f1a39a5f2feb SHA512 6f6e21799b47e38cd61621e4ec018dc0db4811f363c0817025c3e3be651d3790b30a0cab233f35fe40b1d57c88daa246037f24a7488187f4e47cca589d87d45b
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2024 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/~dilfridge/distfiles/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user