1 |
commit: 97b4b858700e725e97303fba3ad139ed66ee2199 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 31 22:12:53 2017 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 31 22:15:04 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97b4b858 |
7 |
|
8 |
sys-devel/gcc-config: Version bump to current git master, untested, no keywords |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
sys-devel/gcc-config/Manifest | 1 + |
13 |
sys-devel/gcc-config/gcc-config-1.9.0.ebuild | 50 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest |
17 |
index 9c4fa59b8bc..b45f07578b1 100644 |
18 |
--- a/sys-devel/gcc-config/Manifest |
19 |
+++ b/sys-devel/gcc-config/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST gcc-config-1.7.3.tar.xz 15088 SHA256 2c6cca69a028f157dc54e19ea10efc240e0d26824cd223b22c294c003ce9325e SHA512 88b585787b5ad79017b27e68dbca6b5de96784582ee657d18562b1994bc1c27a6609b3dfcbf30f39a02b0b2886a289a1ddc955281fc60fe974436d13aa685908 WHIRLPOOL a9a45b489e34756da66e4597ba9f4fa061b5431a82310317237293a0c519c72906d14d3c72b76483c1c674bf779ac606cf85f22a5e4a4065dd92b1b91215461a |
22 |
DIST gcc-config-1.8.tar.xz 15020 SHA256 2453e2a07521b12267ca62b9b860eb2d2bc606cad0f29bf42a1c9543673f5a1b SHA512 3b84af2d961a0527834759e047330dbab7bac0ff3d6aae103f14fca2d44bd612bd4a1005649e8b4198036231ed8a8319fb13326b4d2c40474826cf53f7bc0826 WHIRLPOOL 4899bc1da43a158cc486022f68661e5318db7e4e83afdb5d892fc7ce5098a4bdb059dbab3c50e632901e577cd8760b2386da3ee24f5e944db12d3e246d9c26b6 |
23 |
+DIST gcc-config-1.9.0.tar.xz 17468 SHA256 3e0acf3fe683dc6193b0135fe4b26ce7f959210296fff040a10bccc33a247d1a SHA512 658c8ce26fdddd6f3e519310001cdf0f8fb01226df2d575fec81b39c083613ef0675024b79b285fab89a930c4ada7a1aef04433eb21947b4e9c0a9cb12f8fabc WHIRLPOOL ed341f1fa72958008d4e1c1a814a2cf025be7404d21c963c6b82c36dc951ba15849f7809211fb21e5fb4a18ce5c12f4f4b36242822e568d4b4f39a8f9f26aa0a |
24 |
|
25 |
diff --git a/sys-devel/gcc-config/gcc-config-1.9.0.ebuild b/sys-devel/gcc-config/gcc-config-1.9.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0a629aac713 |
28 |
--- /dev/null |
29 |
+++ b/sys-devel/gcc-config/gcc-config-1.9.0.ebuild |
30 |
@@ -0,0 +1,50 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+inherit eutils toolchain-funcs multilib |
37 |
+ |
38 |
+DESCRIPTION="Utility to manage compilers" |
39 |
+HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" |
40 |
+SRC_URI="mirror://gentoo/${P}.tar.xz |
41 |
+ https://dev.gentoo.org/~dilfridge/distfiles/${P}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND=">=sys-apps/gentoo-functions-0.10" |
49 |
+ |
50 |
+src_compile() { |
51 |
+ emake CC="$(tc-getCC)" |
52 |
+} |
53 |
+ |
54 |
+src_install() { |
55 |
+ emake \ |
56 |
+ DESTDIR="${D}" \ |
57 |
+ PV="${PV}" \ |
58 |
+ SUBLIBDIR="$(get_libdir)" \ |
59 |
+ install |
60 |
+} |
61 |
+ |
62 |
+pkg_postinst() { |
63 |
+ # Scrub eselect-compiler remains |
64 |
+ rm -f "${ROOT}"/etc/env.d/05compiler & |
65 |
+ |
66 |
+ # Make sure old versions dont exist #79062 |
67 |
+ rm -f "${ROOT}"/usr/sbin/gcc-config & |
68 |
+ |
69 |
+ # We not longer use the /usr/include/g++-v3 hacks, as |
70 |
+ # it is not needed ... |
71 |
+ rm -f "${ROOT}"/usr/include/g++{,-v3} & |
72 |
+ |
73 |
+ # Do we have a valid multi ver setup ? |
74 |
+ local x |
75 |
+ for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do |
76 |
+ gcc-config ${x} |
77 |
+ done |
78 |
+ |
79 |
+ wait |
80 |
+} |