/[gentoo-x86]/eclass/multilib.eclass
Gentoo

Diff of /eclass/multilib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.97 Revision 1.98
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.97 2011/12/14 18:15:09 slyfox Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.98 2012/06/03 08:27:53 vapier Exp $
4 4
5# @ECLASS: multilib.eclass 5# @ECLASS: multilib.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# amd64@gentoo.org 7# amd64@gentoo.org
8# toolchain@gentoo.org 8# toolchain@gentoo.org
160# @FUNCTION: get_all_abis 160# @FUNCTION: get_all_abis
161# @DESCRIPTION: 161# @DESCRIPTION:
162# Return a list of the ABIs supported by this profile. 162# Return a list of the ABIs supported by this profile.
163# the last one in the list being the default. 163# the last one in the list being the default.
164get_all_abis() { 164get_all_abis() {
165 local order="" 165 local order="" mvar dvar
166 166
167 if [[ -z ${MULTILIB_ABIS} ]] ; then 167 mvar="MULTILIB_ABIS"
168 dvar="DEFAULT_ABI"
169 if [[ -n $1 ]] ; then
170 mvar="$1_${mvar}"
171 dvar="$1_${dvar}"
172 fi
173
174 if [[ -z ${!mvar} ]] ; then
168 echo "default" 175 echo "default"
169 return 0 176 return 0
170 fi 177 fi
171 178
172 for x in ${MULTILIB_ABIS}; do 179 for x in ${!mvar}; do
173 if [[ ${x} != ${DEFAULT_ABI} ]] ; then 180 if [[ ${x} != ${!dvar} ]] ; then
174 order="${order:+${order} }${x}" 181 order="${order:+${order} }${x}"
175 fi 182 fi
176 done 183 done
177 order="${order:+${order} }${DEFAULT_ABI}" 184 order="${order:+${order} }${!dvar}"
178 185
179 echo ${order} 186 echo ${order}
180 return 0 187 return 0
181} 188}
182 189

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98

  ViewVC Help
Powered by ViewVC 1.1.20