From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-devel/gcc-config: ChangeLog gcc-config-1.4.0-r4.ebuild |
Date: | Thu, 11 Oct 2007 05:58:56 |
Message-Id: | E1IfqaT-0007ds-B8@stork.gentoo.org |
1 | vapier 07/10/11 05:27:57 |
2 | |
3 | Modified: ChangeLog |
4 | Added: gcc-config-1.4.0-r4.ebuild |
5 | Log: |
6 | Make sure we dont create CTARGET-VER entries in env.d #195054. |
7 | (Portage version: 2.1.3.12) |
8 | |
9 | Revision Changes Path |
10 | 1.168 sys-devel/gcc-config/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.168&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/ChangeLog?rev=1.168&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/ChangeLog?r1=1.167&r2=1.168 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v |
19 | retrieving revision 1.167 |
20 | retrieving revision 1.168 |
21 | diff -u -r1.167 -r1.168 |
22 | --- ChangeLog 7 Oct 2007 04:20:36 -0000 1.167 |
23 | +++ ChangeLog 11 Oct 2007 05:27:56 -0000 1.168 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for sys-devel/gcc-config |
26 | # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.167 2007/10/07 04:20:36 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.168 2007/10/11 05:27:56 vapier Exp $ |
29 | + |
30 | +*gcc-config-1.4.0-r4 (11 Oct 2007) |
31 | + |
32 | + 11 Oct 2007; Mike Frysinger <vapier@g.o> files/gcc-config-1.4.0, |
33 | + +gcc-config-1.4.0-r4.ebuild: |
34 | + Make sure we dont create CTARGET-VER entries in env.d #195054. |
35 | |
36 | *gcc-config-1.4.0-r3 (07 Oct 2007) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 sys-devel/gcc-config/gcc-config-1.4.0-r4.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.0-r4.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-config/gcc-config-1.4.0-r4.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: gcc-config-1.4.0-r4.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2007 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.4.0-r4.ebuild,v 1.1 2007/10/11 05:27:56 vapier Exp $ |
51 | |
52 | inherit flag-o-matic toolchain-funcs multilib |
53 | |
54 | # Version of .c wrapper to use |
55 | W_VER="1.5.0" |
56 | |
57 | DESCRIPTION="Utility to change the gcc compiler being used" |
58 | HOMEPAGE="http://www.gentoo.org/" |
59 | SRC_URI="" |
60 | |
61 | LICENSE="GPL-2" |
62 | SLOT="0" |
63 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
64 | IUSE="" |
65 | |
66 | RDEPEND="!app-admin/eselect-compiler" |
67 | |
68 | S=${WORKDIR} |
69 | |
70 | src_unpack() { |
71 | cp "${FILESDIR}"/wrapper-${W_VER}.c "${S}"/wrapper.c || die |
72 | } |
73 | |
74 | src_compile() { |
75 | strip-flags |
76 | emake CC="$(tc-getCC)" wrapper || die "compile wrapper" |
77 | } |
78 | |
79 | src_install() { |
80 | newbin "${FILESDIR}"/${PN}-${PV} ${PN} || die "install gcc-config" |
81 | sed -i \ |
82 | -e "s:PORTAGE-VERSION:${PVR}:g" \ |
83 | -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ |
84 | "${D}"/usr/bin/${PN} |
85 | |
86 | exeinto /usr/$(get_libdir)/misc |
87 | newexe wrapper gcc-config || die "install wrapper" |
88 | } |
89 | |
90 | pkg_postinst() { |
91 | # Do we have a valid multi ver setup ? |
92 | if gcc-config --get-current-profile &>/dev/null ; then |
93 | # We not longer use the /usr/include/g++-v3 hacks, as |
94 | # it is not needed ... |
95 | [[ -L ${ROOT}/usr/include/g++ ]] && rm -f "${ROOT}"/usr/include/g++ |
96 | [[ -L ${ROOT}/usr/include/g++-v3 ]] && rm -f "${ROOT}"/usr/include/g++-v3 |
97 | gcc-config $(/usr/bin/gcc-config --get-current-profile) |
98 | fi |
99 | |
100 | # Make sure old versions dont exist #79062 |
101 | rm -f "${ROOT}"/usr/sbin/gcc-config |
102 | } |
103 | |
104 | |
105 | |
106 | -- |
107 | gentoo-commits@g.o mailing list |