/[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.14 Revision 1.15
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.14 2013/06/28 02:37:52 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.15 2013/07/11 06:57:18 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
336 # it can fail if something else uses /tmp 336 # it can fail if something else uses /tmp
337 rmdir "${ED}"/tmp &>/dev/null 337 rmdir "${ED}"/tmp &>/dev/null
338 fi 338 fi
339} 339}
340 340
341# @FUNCTION: multilib_is_native_abi
342# @DESCRIPTION:
343# Determine whether the currently built ABI is the profile native.
344# Return true status (0) if that is true, otherwise false (1).
345#
346# This is often useful for configure calls when some of the options are
347# supposed to be disabled for multilib ABIs (like those used for
348# executables only).
349multilib_is_native_abi() {
350 debug-print-function ${FUNCNAME} "${@}"
351
352 [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments"
353
354 [[ ${ABI} == ${DEFAULT_ABI} ]]
355}
356
341_MULTILIB_BUILD=1 357_MULTILIB_BUILD=1
342fi 358fi

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

  ViewVC Help
Powered by ViewVC 1.1.20