Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/
Date: Sun, 28 Feb 2021 09:50:20
Message-Id: 1614505811.23d59d9cd434205f4ba2ba08981392bcb80a2acc.slyfox@gentoo
1 commit: 23d59d9cd434205f4ba2ba08981392bcb80a2acc
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 09:48:51 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 09:50:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d59d9c
7
8 sys-devel/binutils-config: bump up to 5.4
9
10 One user visible change:
11 - binutils-config: add support for special 'latest' version for profile switch
12
13 Closes: https://bugs.gentoo.org/765664
14 Package-Manager: Portage-3.0.16, Repoman-3.0.2
15 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
16
17 sys-devel/binutils-config/Manifest | 1 +
18 .../binutils-config/binutils-config-5.4.ebuild | 43 ++++++++++++++++++++++
19 2 files changed, 44 insertions(+)
20
21 diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest
22 index 11c1fba10ee..51ef8c16892 100644
23 --- a/sys-devel/binutils-config/Manifest
24 +++ b/sys-devel/binutils-config/Manifest
25 @@ -1 +1,2 @@
26 DIST binutils-config-5.3.2.tar.xz 6840 BLAKE2B 4f02b8d1f3f8d4adca811772edba6167fc0e739f8ff1e895f30745eca45b559da6622bb76a0cac6016d6e864fe7ad6c921c64c7ec1c18c130b3a64a1dd7b9cbc SHA512 03dfecf46fee941b7b9fc35b63ffd22c795ab54f0444f16fc00ed44d27c81f6baaca33170fb700cfc4d767be469f305890882839536363bc466ad200d28d2228
27 +DIST binutils-config-5.4.tar.xz 7332 BLAKE2B 1dd0fdebf028e9d95caa395948037d51ac1e627f370921b56fc99a6fe2e2100ddb202c8027ad1e67330306de8b4cbc6a03753105d401198e515b22fca94f760f SHA512 79411afcbec3a6cce960be1b06e4a6efdf55081992f6a92157737f7ef41fc61eaec0005078a4ce0cd78ad6af14583ab85f4f2b7b43808238088d521e1aa31af1
28
29 diff --git a/sys-devel/binutils-config/binutils-config-5.4.ebuild b/sys-devel/binutils-config/binutils-config-5.4.ebuild
30 new file mode 100644
31 index 00000000000..4795b56cc7c
32 --- /dev/null
33 +++ b/sys-devel/binutils-config/binutils-config-5.4.ebuild
34 @@ -0,0 +1,43 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit prefix
41 +
42 +if [[ ${PV} == 9999 ]]; then
43 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/binutils-config.git"
44 + inherit git-r3
45 +else
46 + SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
47 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
48 +fi
49 +
50 +DESCRIPTION="Utility to change the binutils version being used"
51 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="+native-symlinks"
56 +
57 +# We also RDEPEND on sys-apps/findutils which is in base @system
58 +RDEPEND="sys-apps/gentoo-functions"
59 +
60 +src_compile() {
61 + emake DESTDIR="${D}" PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)"
62 +}
63 +
64 +src_install() {
65 + emake DESTDIR="${D}" PV="${PV}" install
66 +
67 + use prefix && eprefixify "${ED}"/usr/bin/${PN}
68 +}
69 +
70 +pkg_postinst() {
71 + # Re-register all targets. USE flags or new versions can change
72 + # installed symlinks.
73 + local x
74 + for x in $(binutils-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
75 + binutils-config ${x}
76 + done
77 +}