/[gentoo-x86]/sys-devel/gcc/gcc-4.5.1-r1.ebuild
Gentoo

Contents of /sys-devel/gcc/gcc-4.5.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Nov 29 20:40:15 2010 UTC (7 years, 7 months ago) by dirtyepic
Branch: MAIN
Changes since 1.1: +2 -2 lines
Bump patchset to fix graphite ICEs (bug #346445).

(Portage version: 2.2.0_alpha6/cvs/Linux x86_64)

1 dirtyepic 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dirtyepic 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.5.1-r1.ebuild,v 1.1 2010/11/21 19:03:55 dirtyepic Exp $
4 dirtyepic 1.1
5 dirtyepic 1.2 PATCH_VER="1.4"
6 dirtyepic 1.1 UCLIBC_VER="1.0"
7    
8     ETYPE="gcc-compiler"
9    
10     # Hardened gcc 4 stuff
11     PIE_VER="0.4.5"
12     SPECS_VER="0.2.0"
13     SPECS_GCC_VER="4.4.3"
14     # arch/libc configurations known to be stable with {PIE,SSP}-by-default
15     PIE_GLIBC_STABLE="x86 amd64 ppc ppc64 arm ia64"
16     PIE_UCLIBC_STABLE="x86 arm amd64 ppc ppc64"
17     SSP_STABLE="amd64 x86 ppc ppc64 arm"
18     # uclibc need tls and nptl support for SSP support
19     SSP_UCLIBC_STABLE=""
20     #end Hardened stuff
21    
22     inherit toolchain
23    
24     DESCRIPTION="The GNU Compiler Collection"
25    
26     LICENSE="GPL-3 LGPL-3 || ( GPL-3 libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.2"
27     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
28     IUSE=""
29    
30     RDEPEND=">=sys-libs/zlib-1.1.4
31     >=sys-devel/gcc-config-1.4
32     virtual/libiconv
33     >=dev-libs/gmp-4.3.2
34     >=dev-libs/mpfr-2.4.2
35     >=dev-libs/mpc-0.8.1
36     graphite? (
37     >=dev-libs/ppl-0.10
38     >=dev-libs/cloog-ppl-0.15.8
39     )
40     lto? ( >=dev-libs/elfutils-0.143 )
41     !build? (
42     gcj? (
43     gtk? (
44     x11-libs/libXt
45     x11-libs/libX11
46     x11-libs/libXtst
47     x11-proto/xproto
48     x11-proto/xextproto
49     >=x11-libs/gtk+-2.2
50     x11-libs/pango
51     )
52     >=media-libs/libart_lgpl-2.1
53     app-arch/zip
54     app-arch/unzip
55     )
56     >=sys-libs/ncurses-5.2-r2
57     nls? ( sys-devel/gettext )
58     )"
59     DEPEND="${RDEPEND}
60     test? ( >=dev-util/dejagnu-1.4.4 >=sys-devel/autogen-5.5.4 )
61     >=sys-apps/texinfo-4.8
62     >=sys-devel/bison-1.875
63     elibc_glibc? ( >=sys-libs/glibc-2.8 )
64     amd64? ( multilib? ( gcj? ( app-emulation/emul-linux-x86-xlibs ) ) )
65     ppc? ( >=${CATEGORY}/binutils-2.17 )
66     ppc64? ( >=${CATEGORY}/binutils-2.17 )
67     >=${CATEGORY}/binutils-2.15.94"
68     PDEPEND=">=sys-devel/gcc-config-1.4"
69     if [[ ${CATEGORY} != cross-* ]] ; then
70     PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
71     fi
72    
73     src_unpack() {
74     gcc_src_unpack
75    
76     use vanilla && return 0
77    
78     sed -i 's/use_fixproto=yes/:/' gcc/config.gcc #PR33200
79    
80     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
81    
82     [[ ${CTARGET} == *-softfloat-* ]] && epatch "${FILESDIR}"/4.4.0/gcc-4.4.0-softfloat.patch
83     }
84    
85     pkg_setup() {
86     gcc_pkg_setup
87    
88     if use lto ; then
89     ewarn
90     ewarn "LTO support is still experimental and unstable."
91     ewarn "Any bugs resulting from the use of LTO will not be fixed."
92     ewarn
93     fi
94     }

  ViewVC Help
Powered by ViewVC 1.1.20