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

Diff of /eclass/multilib.eclass

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

Revision 1.99 Revision 1.100
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.99 2012/08/22 16:03:08 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.100 2012/08/27 15:04:08 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
119# @FUNCTION: get_install_abis 119# @FUNCTION: get_install_abis
120# @DESCRIPTION: 120# @DESCRIPTION:
121# Return a list of the ABIs we want to install for with 121# Return a list of the ABIs we want to install for with
122# the last one in the list being the default. 122# the last one in the list being the default.
123get_install_abis() { 123get_install_abis() {
124 local order="" 124 local x order=""
125 125
126 if [[ -z ${MULTILIB_ABIS} ]] ; then 126 if [[ -z ${MULTILIB_ABIS} ]] ; then
127 echo "default" 127 echo "default"
128 return 0 128 return 0
129 fi 129 fi
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="" mvar dvar 165 local x order="" mvar dvar
166 166
167 mvar="MULTILIB_ABIS" 167 mvar="MULTILIB_ABIS"
168 dvar="DEFAULT_ABI" 168 dvar="DEFAULT_ABI"
169 if [[ -n $1 ]] ; then 169 if [[ -n $1 ]] ; then
170 mvar="$1_${mvar}" 170 mvar="$1_${mvar}"
191# @DESCRIPTION: 191# @DESCRIPTION:
192# Returns a list of all the libdirs used by this profile. This includes 192# Returns a list of all the libdirs used by this profile. This includes
193# those that might not be touched by the current ebuild and always includes 193# those that might not be touched by the current ebuild and always includes
194# "lib". 194# "lib".
195get_all_libdirs() { 195get_all_libdirs() {
196 local libdirs 196 local libdirs abi
197 local abi
198 local dir
199 197
200 for abi in ${MULTILIB_ABIS}; do 198 for abi in ${MULTILIB_ABIS}; do
201 libdirs+=" $(get_abi_LIBDIR ${abi})" 199 libdirs+=" $(get_abi_LIBDIR ${abi})"
202 done 200 done
203 [[ " ${libdirs} " != *" lib "* ]] && libdirs+=" lib" 201 [[ " ${libdirs} " != *" lib "* ]] && libdirs+=" lib"

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

  ViewVC Help
Powered by ViewVC 1.1.20