/[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.22 Revision 1.23
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.22 2013/10/01 17:42:38 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.23 2013/10/01 18:06:06 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
78 local m_abis=${i#*:} m_abi 78 local m_abis=${i#*:} m_abi
79 local m_flag=${i%:*} 79 local m_flag=${i%:*}
80 80
81 # split on ,; we can't switch IFS for function scope because 81 # split on ,; we can't switch IFS for function scope because
82 # paludis is broken (bug #486592), and switching it locally 82 # paludis is broken (bug #486592), and switching it locally
83 # for the split is more complex than tricking like this 83 # for the split is more complex than cheating like this
84 m_abis=( ${m_abis/,/ } )
85
86 for m_abi in ${m_abis[@]}; do 84 for m_abi in ${m_abis//,/ }; do
87 if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then 85 if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then
88 echo "${abi}" 86 echo "${abi}"
89 found=1 87 found=1
90 break 2 88 break 2
91 fi 89 fi

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

  ViewVC Help
Powered by ViewVC 1.1.20