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

Contents of /sys-devel/gcc/gcc-4.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (hide annotations) (download)
Sun Jan 19 01:51:34 2014 UTC (7 months, 2 weeks ago) by dirtyepic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +7 -5 lines
Bump all to EAPI 2.

Signed-off-by: Ryan Hill <dirtyepic@gentoo.org>
(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 957A8463)

1 dirtyepic 1.16 # Copyright 1999-2014 Gentoo Foundation
2 dirtyepic 1.1 # Distributed under the terms of the GNU General Public License v2
3 dirtyepic 1.16 # $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/gcc-4.6.0.ebuild,v 1.15 2013/12/23 21:36:09 dirtyepic Exp $
4    
5     EAPI="2"
6 dirtyepic 1.1
7 vapier 1.11 PATCH_VER="1.3"
8 dirtyepic 1.1 UCLIBC_VER="1.0"
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 dirtyepic 1.16 inherit eutils toolchain
23 dirtyepic 1.1
24     DESCRIPTION="The GNU Compiler Collection"
25    
26 ulm 1.13 LICENSE="GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+"
27 dirtyepic 1.10 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
28 vapier 1.6 RDEPEND=""
29 dirtyepic 1.1 DEPEND="${RDEPEND}
30 vapier 1.6 elibc_glibc? ( >=sys-libs/glibc-2.8 )
31 dirtyepic 1.1 >=${CATEGORY}/binutils-2.18"
32    
33     if [[ ${CATEGORY} != cross-* ]] ; then
34     PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.8 )"
35     fi
36    
37 dirtyepic 1.16 src_prepare() {
38 vapier 1.7 if has_version '<sys-libs/glibc-2.12' ; then
39     ewarn "Your host glibc is too old; disabling automatic fortify."
40     ewarn "Please rebuild gcc after upgrading to >=glibc-2.12 #362315"
41     EPATCH_EXCLUDE+=" 10_all_default-fortify-source.patch"
42     fi
43    
44 dirtyepic 1.16 toolchain_src_prepare
45 dirtyepic 1.1
46     use vanilla && return 0
47    
48     [[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch
49     }

  ViewVC Help
Powered by ViewVC 1.1.20