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

Diff of /eclass/multilib.eclass

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

Revision 1.60 Revision 1.62
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.60 2007/03/27 01:46:50 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.62 2007/07/01 22:08:15 peper Exp $
4# 4#
5# Maintainer: amd64@gentoo.org / toolchain@gentoo.org 5# Maintainer: amd64@gentoo.org / toolchain@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.
9 9
10___ECLASS_RECUR_MULTILIB="yes" 10___ECLASS_RECUR_MULTILIB="yes"
11[[ -z ${___ECLASS_RECUR_TOOLCHAIN_FUNCS} ]] && inherit toolchain-funcs 11[[ -z ${___ECLASS_RECUR_TOOLCHAIN_FUNCS} ]] && inherit toolchain-funcs
12 12
13DESCRIPTION="Based on the ${ECLASS} eclass"
14
15# has_multilib_profile: 13# has_multilib_profile:
16# Return true if the current profile is a multilib profile and lists more than 14# Return true if the current profile is a multilib profile and lists more than
17# one abi in ${MULTILIB_ABIS}. You might want to use this like 15# one abi in ${MULTILIB_ABIS}. When has_multilib_profile returns true, that
18# 'use multilib || has_multilib_profile' until all profiles utilizing the 16# profile should enable the 'multilib' use flag. This is so you can DEPEND on
19# 'multilib' use flag are removed from portage 17# a package only for multilib or not multilib.
20 18
21# is_final_abi: 19# is_final_abi:
22# Return true if ${ABI} is the final abi to be installed (and thus we are 20# Return true if ${ABI} is the final abi to be installed (and thus we are
23# on our last run through a src_* function. 21# on our last run through a src_* function.
24 22
212 if [[ -z ${MULTILIB_ABIS} ]] ; then 210 if [[ -z ${MULTILIB_ABIS} ]] ; then
213 echo "default" 211 echo "default"
214 return 0 212 return 0
215 fi 213 fi
216 214
217 if hasq multilib-pkg-force ${RESTRICT} || 215 if hasq multilib-pkg-force ${RESTRICT} || [[ ${EMULTILIB_PKG} == "true" ]]
218 { hasq multilib-pkg ${FEATURES} && hasq multilib-pkg ${RESTRICT}; }; then 216 then
219 for x in ${MULTILIB_ABIS} ; do 217 for x in ${MULTILIB_ABIS} ; do
220 if [[ ${x} != "${DEFAULT_ABI}" ]] ; then 218 if [[ ${x} != "${DEFAULT_ABI}" ]] ; then
221 hasq ${x} ${ABI_DENY} || ordera="${ordera} ${x}" 219 hasq ${x} ${ABI_DENY} || ordera="${ordera} ${x}"
222 fi 220 fi
223 done 221 done

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.62

  ViewVC Help
Powered by ViewVC 1.1.20