Gentoo Archives: gentoo-commits

From: "Mark Loeser (halcy0n)" <halcy0n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/gcc-config: gcc-config-1.4.1-r1.ebuild ChangeLog gcc-config-1.4.1.ebuild
Date: Thu, 28 Apr 2011 23:27:13
Message-Id: 20110428232702.2BC4720054@flycatcher.gentoo.org
1 halcy0n 11/04/28 23:27:02
2
3 Modified: ChangeLog
4 Added: gcc-config-1.4.1-r1.ebuild
5 Removed: gcc-config-1.4.1.ebuild
6 Log:
7 Version bump to get a change made to the gcc-config bash script
8
9 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64, RepoMan options: --force)
10
11 Revision Changes Path
12 1.193 sys-devel/gcc-config/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.193&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.193&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/ChangeLog?r1=1.192&r2=1.193
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v
21 retrieving revision 1.192
22 retrieving revision 1.193
23 diff -u -r1.192 -r1.193
24 --- ChangeLog 21 Mar 2011 13:49:02 -0000 1.192
25 +++ ChangeLog 28 Apr 2011 23:27:02 -0000 1.193
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-devel/gcc-config
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.192 2011/03/21 13:49:02 vapier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.193 2011/04/28 23:27:02 halcy0n Exp $
31 +
32 +*gcc-config-1.4.1-r1 (28 Apr 2011)
33 +
34 + 28 Apr 2011; Mark Loeser <halcy0n@g.o> -gcc-config-1.4.1.ebuild,
35 + +gcc-config-1.4.1-r1.ebuild:
36 + Version bump to get a change made to the gcc-config bash script
37
38 21 Mar 2011; Mike Frysinger <vapier@g.o> files/gcc-config-1.5:
39 Default to /etc/portage/make.conf #338032 by Dennis Schridde.
40
41
42
43 1.1 sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gcc-config-1.4.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.1-r1.ebuild,v 1.1 2011/04/28 23:27:02 halcy0n Exp $
53
54 inherit flag-o-matic toolchain-funcs multilib
55
56 # Version of .c wrapper to use
57 W_VER="1.5.1"
58
59 DESCRIPTION="Utility to change the gcc compiler being used"
60 HOMEPAGE="http://www.gentoo.org/"
61 SRC_URI=""
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
66 IUSE=""
67
68 RDEPEND="!app-admin/eselect-compiler"
69
70 S=${WORKDIR}
71
72 src_unpack() {
73 cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die
74 }
75
76 src_compile() {
77 strip-flags
78 emake CC="$(tc-getCC)" wrapper || die "compile wrapper"
79 }
80
81 src_install() {
82 newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config"
83 sed -i \
84 -e "s:@GENTOO_LIBDIR@:$(get_libdir):g" \
85 "${D}"/usr/bin/${PN}
86
87 exeinto /usr/$(get_libdir)/misc
88 newexe wrapper gcc-config || die "install wrapper"
89 }
90
91 pkg_postinst() {
92 # Scrub eselect-compiler remains
93 if [[ -e ${ROOT}/etc/env.d/05compiler ]] ; then
94 rm -f "${ROOT}"/etc/env.d/05compiler
95 fi
96
97 # Make sure old versions dont exist #79062
98 rm -f "${ROOT}"/usr/sbin/gcc-config
99
100 # Do we have a valid multi ver setup ?
101 if gcc-config --get-current-profile &>/dev/null ; then
102 # We not longer use the /usr/include/g++-v3 hacks, as
103 # it is not needed ...
104 [[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++
105 [[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3
106 gcc-config $(/usr/bin/gcc-config --get-current-profile)
107 fi
108 }