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

Diff of /eclass/multilib.eclass

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

Revision 1.14 Revision 1.15
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.14 2005/01/18 04:56:03 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.15 2005/01/27 22:07:36 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.
11INHERITED="$INHERITED $ECLASS" 11INHERITED="$INHERITED $ECLASS"
12 12
13DESCRIPTION="Based on the ${ECLASS} eclass" 13DESCRIPTION="Based on the ${ECLASS} eclass"
14 14
15# has_multilib_profile: 15# has_multilib_profile:
16# Return true if the current profile is a multilib profile. You might 16# Return true if the current profile is a multilib profile and lists more than
17# want to use this like 'use multilib || has_multilib_profile' until 17# one abi in ${MULTILIB_ABIS}. You might want to use this like
18# 'use multilib || has_multilib_profile' until all profiles utilizing the
18# all profiles utilizing the 'multilib' use flag are removed from portage 19# 'multilib' use flag are removed from portage
19 20
20# is_final_abi: 21# is_final_abi:
21# Return true if ${ABI} is the final abi to be installed (and thus we are 22# Return true if ${ABI} is the final abi to be installed (and thus we are
22# on our last run through a src_* function. 23# on our last run through a src_* function.
23 24
82# create_ml_includes /usr/include/asm __i386__:/usr/include/asm-i386 __x86_64__:/usr/include/asm-x86_64 83# create_ml_includes /usr/include/asm __i386__:/usr/include/asm-i386 __x86_64__:/usr/include/asm-x86_64
83 84
84### END DOCUMENTATION ### 85### END DOCUMENTATION ###
85 86
86# has_multilib_profile() 87# has_multilib_profile()
87# Return true if
88has_multilib_profile() { 88has_multilib_profile() {
89 [ -n "${MULTILIB_ABIS}" ] 89 [ -n "${MULTILIB_ABIS}" -a "${MULTILIB_ABIS}" != "${MULTILIB_ABIS/ /}" ]
90} 90}
91 91
92# This function simply returns the desired lib directory. With portage 92# This function simply returns the desired lib directory. With portage
93# 2.0.51, we now have support for installing libraries to lib32/lib64 93# 2.0.51, we now have support for installing libraries to lib32/lib64
94# to accomidate the needs of multilib systems. It's no longer a good idea 94# to accomidate the needs of multilib systems. It's no longer a good idea
321 done 321 done
322 322
323 if is_final_abi; then 323 if is_final_abi; then
324 base=${T}/gentoo-multilib 324 base=${T}/gentoo-multilib
325 pushd ${base} 325 pushd ${base}
326 find . | cpio -pmd --no-preserve-owner ${D} 326 find . | tar -c -T - -f - | tar -x --no-same-owner -f - -C ${D}
327 popd 327 popd
328 328
329 for dir in ${dirs}; do 329 for dir in ${dirs}; do
330 local args=${dir} 330 local args=${dir}
331 local abi 331 local abi

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20