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

Diff of /eclass/multilib.eclass

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

Revision 1.16 Revision 1.17
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.16 2005/01/31 06:37:31 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.17 2005/02/03 05:29:07 eradicator Exp $
4# 4#
5# Author: Jeremy Huddleston <eradicator@gentoo.org> 5# Author: Jeremy Huddleston <eradicator@gentoo.org>
6# 6#
7# This eclass is for all functions pertaining to handling multilib. 7# This eclass is for all functions pertaining to handling multilib.
8# configurations. 8# configurations.
23# on our last run through a src_* function. 23# on our last run through a src_* function.
24 24
25# number_abis: 25# number_abis:
26# echo the number of ABIs we will be installing for 26# echo the number of ABIs we will be installing for
27 27
28# get_abi_order: 28# get_install_abis:
29# Return a list of the ABIs we want to install for with 29# Return a list of the ABIs we want to install for with
30# the last one in the list being the default.
31
32# get_all_abis:
33# Return a list of the ABIs supported by this profile.
30# the last one in the list being the default. 34# the last one in the list being the default.
31 35
32# get_all_libdirs: 36# get_all_libdirs:
33# Returns a list of all the libdirs used by this profile. This includes 37# Returns a list of all the libdirs used by this profile. This includes
34# those that might not be touched by the current ebuild and always includes 38# those that might not be touched by the current ebuild and always includes
182get_abi_LIBDIR() { get_abi_var LIBDIR ${@}; } 186get_abi_LIBDIR() { get_abi_var LIBDIR ${@}; }
183 187
184# Return a list of the ABIs we want to install for with 188# Return a list of the ABIs we want to install for with
185# the last one in the list being the default. 189# the last one in the list being the default.
186get_abi_order() { 190get_abi_order() {
191 ewarn "Please update your ebuild to use get_install_abis instead of get_abi_order"
192 get_install_abis ${@}
193}
194
195get_install_abis() {
187 local order="" 196 local order=""
188 197
189 if [ -z "${MULTILIB_ABIS}" ]; then 198 if [ -z "${MULTILIB_ABIS}" ]; then
190 echo "NOMULTILIB" 199 echo "NOMULTILIB"
191 return 1 200 return 1
219 228
220 echo ${order} 229 echo ${order}
221 return 0 230 return 0
222} 231}
223 232
233# Return a list of the ABIs supported by this profile.
234# the last one in the list being the default.
235get_all_abis() {
236 local order=""
237
238 if [ -z "${MULTILIB_ABIS}" ]; then
239 echo "NOMULTILIB"
240 return 1
241 fi
242
243 for x in ${MULTILIB_ABIS}; do
244 if [ "${x}" != "${DEFAULT_ABI}" ]; then
245 order="${order:+${order }}${x}"
246 fi
247 done
248 order="${order:+${order} }${DEFAULT_ABI}"
249
250 echo ${order}
251 return 0
252}
253
224# get_all_libdirs() 254# get_all_libdirs()
225# Returns a list of all the libdirs used by this profile. This includes 255# Returns a list of all the libdirs used by this profile. This includes
226# those that might not be touched by the current ebuild. 256# those that might not be touched by the current ebuild.
227get_all_libdirs() { 257get_all_libdirs() {
228 local libdirs="lib" 258 local libdirs="lib"

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20