/[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.19 Revision 1.20
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.19 2013/09/17 12:25:50 tommy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.20 2013/09/17 13:29:19 tommy 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
374 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" 374 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
375 375
376 [[ ${ABI} == ${DEFAULT_ABI} ]] 376 [[ ${ABI} == ${DEFAULT_ABI} ]]
377} 377}
378 378
379# @FUNCTION: multilib_build_binaries
380# @DESCRIPTION:
381# Determine wheter to build binaries for the current build ABI.
382# Returns true status (0) if the current built ABI is the profile
383# native or COMPLETE_MULTILIB variable is set to yes, otherwise
384# false (1).
385#
386# The COMPLETE_MULTILIB variable can be set by users or profiles
387# when they want to build binaries for none-default ABI so e.g.
388# 32bit binaries on amd64.
379multilib_build_binaries() { 389multilib_build_binaries() {
380 debug-print-function ${FUNCNAME} "${@}" 390 debug-print-function ${FUNCNAME} "${@}"
381 391
382 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" 392 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
383 393
384 [[ ${COMPLETE_MULTILIB} == yes ]] || multilib_is_native_abi 394 [[ ${COMPLETE_MULTILIB} == yes ]] || multilib_is_native_abi
385} 395}
386 396
387_MULTILIB_BUILD=1 397_MULTILIB_BUILD=1
388fi 398fi

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20