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

Diff of /eclass/multilib.eclass

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

Revision 1.29 Revision 1.30
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.29 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.30 2005/07/11 15:08:06 swegener 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.
190get_abi_CHOST() { get_abi_var CHOST "${@}"; } 190get_abi_CHOST() { get_abi_var CHOST "${@}"; }
191get_abi_FAKE_TARGETS() { get_abi_var FAKE_TARGETS "${@}"; } 191get_abi_FAKE_TARGETS() { get_abi_var FAKE_TARGETS "${@}"; }
192get_abi_CDEFINE() { get_abi_var CDEFINE "${@}"; } 192get_abi_CDEFINE() { get_abi_var CDEFINE "${@}"; }
193get_abi_LIBDIR() { get_abi_var LIBDIR "${@}"; } 193get_abi_LIBDIR() { get_abi_var LIBDIR "${@}"; }
194 194
195# Return a list of the ABIs we want to install for with 195# Return a list of the ABIs we want to install for with
196# the last one in the list being the default. 196# the last one in the list being the default.
197get_install_abis() { 197get_install_abis() {
198 local order="" 198 local order=""
199 199
200 if [ -z "${MULTILIB_ABIS}" ]; then 200 if [ -z "${MULTILIB_ABIS}" ]; then
201 echo "default" 201 echo "default"
202 return 0 202 return 0
203 fi 203 fi
204 204
205 if hasq multilib-pkg-force ${RESTRICT} || 205 if hasq multilib-pkg-force ${RESTRICT} ||
206 { hasq multilib-pkg ${FEATURES} && hasq multilib-pkg ${RESTRICT}; }; then 206 { hasq multilib-pkg ${FEATURES} && hasq multilib-pkg ${RESTRICT}; }; then
207 for x in ${MULTILIB_ABIS}; do 207 for x in ${MULTILIB_ABIS}; do
208 if [ "${x}" != "${DEFAULT_ABI}" ]; then 208 if [ "${x}" != "${DEFAULT_ABI}" ]; then
209 hasq ${x} ${ABI_DENY} || ordera="${ordera} ${x}" 209 hasq ${x} ${ABI_DENY} || ordera="${ordera} ${x}"
210 fi 210 fi
461 # Remove trailing .. 461 # Remove trailing ..
462 [ "${removed##*/}" = ".." ] && removed=${removed%/*/*} 462 [ "${removed##*/}" = ".." ] && removed=${removed%/*/*}
463 463
464 # Remove trailing / 464 # Remove trailing /
465 [ "${removed##*/}" = "" ] && removed=${removed%/*} 465 [ "${removed##*/}" = "" ] && removed=${removed%/*}
466 466
467 echo ${removed} 467 echo ${removed}
468 fi 468 fi
469} 469}
470 470
471# Helper function for create_ml_includes 471# Helper function for create_ml_includes

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20