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

Diff of /eclass/multilib.eclass

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

Revision 1.10 Revision 1.13
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.10 2005/01/16 17:45:19 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.13 2005/01/17 04:20:55 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.
223# ... 223# ...
224# prep_ml_includes /usr/qt/3/include 224# prep_ml_includes /usr/qt/3/include
225# } 225# }
226 226
227prep_ml_includes() { 227prep_ml_includes() {
228 local dirs
229 if [ ${#} -eq 0 ]; then
230 dirs="/usr/include"
231 else
232 dirs="${@}"
233 fi
234
235 if [ $(number_abis) -gt 1 ]; then 228 if [ $(number_abis) -gt 1 ]; then
236 local dir 229 local dir
230 local dirs
231 local base
232
233 if [ ${#} -eq 0 ]; then
234 dirs="/usr/include"
235 else
236 dirs="${@}"
237 fi
238
237 for dir in ${dirs}; do 239 for dir in ${dirs}; do
240 base=${T}/gentoo-multilib/${dir}/gentoo-multilib
241 mkdir -p ${base}
242 [ -d ${base}/${ABI} ] && rm -rf ${base}/${ABI}
238 mv ${D}/${dir} ${D}/${dir}.${ABI} 243 mv ${D}/${dir} ${base}/${ABI}
239 done 244 done
240 245
241 if is_final_abi; then 246 if is_final_abi; then
247 base=${T}/gentoo-multilib
248 pushd ${base}
249 find . | cpio -pmd --no-preserve-owner ${D}
250 popd
251
242 for dir in ${dirs}; do 252 for dir in ${dirs}; do
243 local args="${dir}" 253 local args=${dir}
244 local abi 254 local abi
245 dodir ${dir}/gentoo-multilib
246 for abi in $(get_abi_order); do 255 for abi in $(get_abi_order); do
247 mv ${D}/${dir}.${abi} ${D}/${dir}/gentoo-multilib/${abi}
248 args="${args} $(get_abi_CDEFINE ${abi}):${dir}/gentoo-multilib/${abi}" 256 args="${args} $(get_abi_CDEFINE ${abi}):${dir}/gentoo-multilib/${abi}"
249 done 257 done
250 create_ml_includes ${args} 258 create_ml_includes ${args}
251 done 259 done
252 fi 260 fi

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20