diff options
author | Ryan Hill <dirtyepic@gentoo.org> | 2014-01-13 06:02:35 +0000 |
---|---|---|
committer | Ryan Hill <dirtyepic@gentoo.org> | 2014-01-13 06:02:35 +0000 |
commit | 1ae6a26a20a0eb64def5c22b2810256d60f5c484 (patch) | |
tree | dc9a17df5d814772b203985f72ede562523a12f4 /eclass | |
parent | Add ruby20 target. (diff) | |
download | gentoo-2-1ae6a26a20a0eb64def5c22b2810256d60f5c484.tar.gz gentoo-2-1ae6a26a20a0eb64def5c22b2810256d60f5c484.tar.bz2 gentoo-2-1ae6a26a20a0eb64def5c22b2810256d60f5c484.zip |
Add EAPI 0 compatible USE defaults (bug #372663).
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/toolchain.eclass | 15 |
2 files changed, 14 insertions, 6 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index fe463d3da08a..63ee590256b4 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1111 2014/01/10 13:59:44 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1112 2014/01/13 06:02:35 dirtyepic Exp $ + + 13 Jan 2014; Ryan Hill <dirtyepic@gentoo.org> toolchain.eclass: + Add EAPI 0 compatible USE defaults (bug #372663). 10 Jan 2014; Magnus Granberg <zorry@gentoo.org> toolchain.eclass: Add support for default ssp on >=gcc-4.8.2 #484714 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index d359b92ce023..cd214e73a6f9 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.619 2014/01/10 13:59:44 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.620 2014/01/13 06:02:35 dirtyepic Exp $ # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -115,10 +115,12 @@ STDCXX_INCDIR=${TOOLCHAIN_STDCXX_INCDIR:-${LIBPATH}/include/g++-v${GCC_BRANCH_VE #---->> SLOT+IUSE logic <<---- -IUSE="multislot nls nptl regression-test vanilla" +IUSE="multislot regression-test vanilla" +IUSE_DEF="nls nptl" if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then - IUSE+=" altivec cxx fortran" + IUSE+=" altivec" + IUSE_DEF+=" cxx fortran" [[ -n ${PIE_VER} ]] && IUSE+=" nopie" [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking" [[ -n ${D_VER} ]] && IUSE+=" d" @@ -127,12 +129,15 @@ if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then tc_version_is_at_least 4.0 && IUSE+=" objc-gc" tc_version_is_between 4.0 4.9 && IUSE+=" mudflap" tc_version_is_at_least 4.1 && IUSE+=" libssp objc++" - tc_version_is_at_least 4.2 && IUSE+=" openmp" + tc_version_is_at_least 4.2 && IUSE_DEF+=" openmp" tc_version_is_at_least 4.3 && IUSE+=" fixed-point" tc_version_is_at_least 4.6 && IUSE+=" graphite" tc_version_is_at_least 4.7 && IUSE+=" go" fi +[[ ${EAPI:-0} != 0 ]] && IUSE_DEF="+${IUSE_DEF// / +}" +IUSE+=" ${IUSE_DEF}" + # Support upgrade paths here or people get pissed if use multislot ; then SLOT="${GCC_CONFIG_VER}" |