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

Diff of /eclass/multilib-build.eclass

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

Revision 1.21 Revision 1.22
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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-build.eclass,v 1.21 2013/09/30 07:27:06 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.22 2013/10/01 17:42:38 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: flags and utility functions for building multilib packages 8# @BLURB: flags and utility functions for building multilib packages
70multilib_get_enabled_abis() { 70multilib_get_enabled_abis() {
71 debug-print-function ${FUNCNAME} "${@}" 71 debug-print-function ${FUNCNAME} "${@}"
72 72
73 local abis=( $(get_all_abis) ) 73 local abis=( $(get_all_abis) )
74 74
75 local IFS=,
76 local abi i found 75 local abi i found
77 for abi in "${abis[@]}"; do 76 for abi in "${abis[@]}"; do
78 for i in "${_MULTILIB_FLAGS[@]}"; do 77 for i in "${_MULTILIB_FLAGS[@]}"; do
79 local m_abis=${i#*:} m_abi 78 local m_abis=${i#*:} m_abi
80 local m_flag=${i%:*} 79 local m_flag=${i%:*}
81 80
81 # split on ,; we can't switch IFS for function scope because
82 # paludis is broken (bug #486592), and switching it locally
83 # for the split is more complex than tricking like this
84 m_abis=( ${m_abis/,/ } )
85
82 for m_abi in ${m_abis}; do 86 for m_abi in ${m_abis[@]}; do
83 if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then 87 if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then
84 echo "${abi}" 88 echo "${abi}"
85 found=1 89 found=1
86 break 2 90 break 2
87 fi 91 fi

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20