1 |
commit: 3ba8fba9d97871f90087048fc5bd2f85a6583f8a |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 21 18:25:03 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 21 18:25:23 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ba8fba9 |
7 |
|
8 |
sys-devel/binutils-config: bump up to 5.2.1 |
9 |
|
10 |
First release from packages tarball. Should be |
11 |
identical to 5.2 release otherwise. |
12 |
|
13 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
sys-devel/binutils-config/Manifest | 1 + |
17 |
.../binutils-config/binutils-config-5.2.1.ebuild | 37 ++++++++++++++++++++++ |
18 |
2 files changed, 38 insertions(+) |
19 |
|
20 |
diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..5def3cddef8 |
23 |
--- /dev/null |
24 |
+++ b/sys-devel/binutils-config/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST binutils-config-5.2.1.tar.xz 6200 BLAKE2B e9b5c61e17aeae8b537c485dd555424136d1638182bb92f22f66eac27e18997d45b1a34b1362622bdc21d060ffac8627e9072107561b81c12ee579a55ef40313 SHA512 9ae130da747eaca8ca9717a69be053eba33946fc4101b77fd795d18202e9d6c27f169c29568b5c97b8f581a37f317b72d13b6d61267a61b117e970f3cfbe048b |
27 |
|
28 |
diff --git a/sys-devel/binutils-config/binutils-config-5.2.1.ebuild b/sys-devel/binutils-config/binutils-config-5.2.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..f4763a21b40 |
31 |
--- /dev/null |
32 |
+++ b/sys-devel/binutils-config/binutils-config-5.2.1.ebuild |
33 |
@@ -0,0 +1,37 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit prefix |
40 |
+ |
41 |
+DESCRIPTION="Utility to change the binutils version being used" |
42 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain" |
43 |
+SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
48 |
+IUSE="" |
49 |
+ |
50 |
+# We also RDEPEND on sys-apps/findutils which is in base @system |
51 |
+RDEPEND="sys-apps/gentoo-functions" |
52 |
+ |
53 |
+src_install() { |
54 |
+ emake DESTDIR="${D}" PV="${PV}" install |
55 |
+ |
56 |
+ use prefix && eprefixify "${ED}"/usr/bin/${PN} |
57 |
+ sed -i "s:@PV@:${PVR}:g" "${ED}"/usr/bin/${PN} || die |
58 |
+} |
59 |
+ |
60 |
+pkg_preinst() { |
61 |
+ # Force a refresh when upgrading from an older version that symlinked |
62 |
+ # in all the libs & includes that binutils-libs handles. #528088 |
63 |
+ if has_version "<${CATEGORY}/${PN}-5" ; then |
64 |
+ local bc current |
65 |
+ bc="${ED}/usr/bin/binutils-config" |
66 |
+ if current=$("${bc}" -c) ; then |
67 |
+ "${bc}" "${current}" |
68 |
+ fi |
69 |
+ fi |
70 |
+} |