Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gcc-config: gcc-config-1.7.2.ebuild ChangeLog
Date: Thu, 31 May 2012 04:32:48
Message-Id: 20120531043238.B1B2A2004B@flycatcher.gentoo.org
1 vapier 12/05/31 04:32:38
2
3 Modified: ChangeLog
4 Added: gcc-config-1.7.2.ebuild
5 Log:
6 Fix clean up in unlikely error handler.
7
8 (Portage version: HEAD/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.212 sys-devel/gcc-config/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.212&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.212&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?r1=1.211&r2=1.212
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v
20 retrieving revision 1.211
21 retrieving revision 1.212
22 diff -u -r1.211 -r1.212
23 --- ChangeLog 13 May 2012 20:14:06 -0000 1.211
24 +++ ChangeLog 31 May 2012 04:32:38 -0000 1.212
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-devel/gcc-config
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.211 2012/05/13 20:14:06 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.212 2012/05/31 04:32:38 vapier Exp $
30 +
31 +*gcc-config-1.7.2 (31 May 2012)
32 +
33 + 31 May 2012; Mike Frysinger <vapier@g.o> +gcc-config-1.7.2.ebuild:
34 + Fix clean up in unlikely error handler.
35
36 *gcc-config-1.7.1 (13 May 2012)
37
38
39
40
41 1.1 sys-devel/gcc-config/gcc-config-1.7.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gcc-config-1.7.2.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.7.2.ebuild,v 1.1 2012/05/31 04:32:38 vapier Exp $
51
52 inherit unpacker toolchain-funcs multilib
53
54 DESCRIPTION="utility to manage compilers"
55 HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git"
56 SRC_URI="mirror://gentoo/${P}.tar.xz
57 http://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
62 IUSE=""
63
64 src_compile() {
65 emake CC="$(tc-getCC)" || die
66 }
67
68 src_install() {
69 emake \
70 DESTDIR="${D}" \
71 PV="${PV}" \
72 SUBLIBDIR="$(get_libdir)" \
73 install || die
74 }
75
76 pkg_postinst() {
77 # Scrub eselect-compiler remains
78 rm -f "${ROOT}"/etc/env.d/05compiler &
79
80 # Make sure old versions dont exist #79062
81 rm -f "${ROOT}"/usr/sbin/gcc-config &
82
83 # We not longer use the /usr/include/g++-v3 hacks, as
84 # it is not needed ...
85 rm -f "${ROOT}"/usr/include/g++{,-v3} &
86
87 # Do we have a valid multi ver setup ?
88 local x
89 for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
90 gcc-config ${x}
91 done
92
93 wait
94 }