diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-10-19 05:38:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-10-19 05:38:32 +0000 |
commit | 941f99332d4e918e76bbd24eb2e75146fe6abfc0 (patch) | |
tree | 2c8d3ea93f37e9cfb7dc071f4cdbd2404626aefb /eclass | |
parent | Version bump #523448 by tokiclover. (diff) | |
download | gentoo-2-941f99332d4e918e76bbd24eb2e75146fe6abfc0.tar.gz gentoo-2-941f99332d4e918e76bbd24eb2e75146fe6abfc0.tar.bz2 gentoo-2-941f99332d4e918e76bbd24eb2e75146fe6abfc0.zip |
use arrays for IUSE_DEF to simplify code
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 48e6f1e6ac03..1387c5ac5ad2 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # 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.637 2014/10/17 04:02:50 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.638 2014/10/19 05:38:32 vapier Exp $ # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -118,11 +118,11 @@ STDCXX_INCDIR=${TOOLCHAIN_STDCXX_INCDIR:-${LIBPATH}/include/g++-v${GCC_BRANCH_VE #---->> SLOT+IUSE logic <<---- IUSE="multislot regression-test vanilla" -IUSE_DEF="nls nptl" +IUSE_DEF=( nls nptl ) if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then IUSE+=" altivec" - IUSE_DEF+=" cxx fortran" + IUSE_DEF+=( cxx fortran ) [[ -n ${PIE_VER} ]] && IUSE+=" nopie" [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking" [[ -n ${D_VER} ]] && IUSE+=" d" @@ -131,14 +131,14 @@ 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_DEF+=" 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}" +[[ ${EAPI:-0} != 0 ]] && IUSE_DEF=( "${IUSE_DEF[@]/#/+}" ) +IUSE+=" ${IUSE_DEF[*]}" # Support upgrade paths here or people get pissed if use multislot ; then |