/[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.47 Revision 1.48
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.47 2014/05/07 17:33:49 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.48 2014/05/12 21:56:17 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gx86-multilib team <multilib@gentoo.org> 7# gx86-multilib team <multilib@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
412 # and then usr/include 412 # and then usr/include
413 f=${f#usr/include} 413 f=${f#usr/include}
414 414
415 local dir=${f%/*} 415 local dir=${f%/*}
416 416
417 # Some ABIs may have install less files than others.
418 if [[ -f ${root}/usr/include${f} ]]; then
417 if [[ ! -f ${ED}/tmp/multilib-include${f} ]]; then 419 if [[ ! -f ${ED}/tmp/multilib-include${f} ]]; then
418 dodir "/tmp/multilib-include${dir}" 420 dodir "/tmp/multilib-include${dir}"
419 # a generic template 421 # a generic template
420 cat > "${ED}/tmp/multilib-include${f}" <<_EOF_ 422 cat > "${ED}/tmp/multilib-include${f}" <<_EOF_
421/* This file is auto-generated by multilib-build.eclass 423/* This file is auto-generated by multilib-build.eclass
422 * as a multilib-friendly wrapper. For the original content, 424 * as a multilib-friendly wrapper. For the original content,
423 * please see the files that are #included below. 425 * please see the files that are #included below.
424 */ 426 */
425 427
441# endif 443# endif
442#else 444#else
443# error "No ABI matched, please report a bug to bugs.gentoo.org" 445# error "No ABI matched, please report a bug to bugs.gentoo.org"
444#endif 446#endif
445_EOF_ 447_EOF_
446 fi 448 fi
447 449
448 # Some ABIs may have install less files than others.
449 if [[ -f ${root}/usr/include${f} ]]; then
450 # $CHOST shall be set by multilib_toolchain_setup 450 # $CHOST shall be set by multilib_toolchain_setup
451 dodir "/tmp/multilib-include/${CHOST}${dir}" 451 dodir "/tmp/multilib-include/${CHOST}${dir}"
452 mv "${root}/usr/include${f}" "${ED}/tmp/multilib-include/${CHOST}${dir}/" || die 452 mv "${root}/usr/include${f}" "${ED}/tmp/multilib-include/${CHOST}${dir}/" || die
453 453
454 # Note: match a space afterwards to avoid collision potential. 454 # Note: match a space afterwards to avoid collision potential.

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

  ViewVC Help
Powered by ViewVC 1.1.20