/[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.24 Revision 1.25
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.24 2013/12/28 18:23:25 jlec Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.25 2013/12/31 18:31:47 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
369# @FUNCTION: multilib_is_native_abi 369# @FUNCTION: multilib_is_native_abi
370# @DESCRIPTION: 370# @DESCRIPTION:
371# Determine whether the currently built ABI is the profile native. 371# Determine whether the currently built ABI is the profile native.
372# Return true status (0) if that is true, otherwise false (1). 372# Return true status (0) if that is true, otherwise false (1).
373# 373#
374# This function is not intended to be used directly. Please use
375# multilib_build_binaries instead.
376multilib_is_native_abi() {
377 debug-print-function ${FUNCNAME} "${@}"
378
379 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
380
381 [[ ${ABI} == ${DEFAULT_ABI} ]]
382}
383
384# @FUNCTION: multilib_build_binaries
385# @DESCRIPTION:
386# Determine whether to build binaries for the currently build ABI.
387# Returns true status (0) if the currently built ABI is the profile
388# native or COMPLETE_MULTILIB variable is set to 'yes', otherwise
389# false (1).
390#
374# This is often useful for configure calls when some of the options are 391# This is often useful for configure calls when some of the options are
375# supposed to be disabled for multilib ABIs (like those used for 392# supposed to be disabled for multilib ABIs (like those used for
376# executables only). 393# executables only).
377multilib_is_native_abi() {
378 debug-print-function ${FUNCNAME} "${@}"
379
380 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
381
382 [[ ${ABI} == ${DEFAULT_ABI} ]]
383}
384
385# @FUNCTION: multilib_build_binaries
386# @DESCRIPTION:
387# Determine whether to build binaries for the current build ABI.
388# Returns true status (0) if the current built ABI is the profile
389# native or COMPLETE_MULTILIB variable is set to yes, otherwise
390# false (1).
391#
392# The COMPLETE_MULTILIB variable can be set by users or profiles
393# when they want to build binaries for none-default ABI so e.g.
394# 32bit binaries on amd64.
395multilib_build_binaries() { 394multilib_build_binaries() {
396 debug-print-function ${FUNCNAME} "${@}" 395 debug-print-function ${FUNCNAME} "${@}"
397 396
398 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" 397 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
399 398

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20