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

Diff of /eclass/autotools-multilib.eclass

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

Revision 1.5 Revision 1.7
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/autotools-multilib.eclass,v 1.5 2013/01/26 11:35:38 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-multilib.eclass,v 1.7 2013/01/26 11:39:41 mgorny Exp $
4 4
5# @ECLASS: autotools-multilib.eclass 5# @ECLASS: autotools-multilib.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: autotools-utils wrapper for multilib builds 8# @BLURB: autotools-utils wrapper for multilib builds
17# 17#
18# Note that the multilib support requires out-of-source builds to be 18# Note that the multilib support requires out-of-source builds to be
19# enabled. Thus, it is impossible to use AUTOTOOLS_IN_SOURCE_BUILD with 19# enabled. Thus, it is impossible to use AUTOTOOLS_IN_SOURCE_BUILD with
20# it. 20# it.
21 21
22# EAPI=5 is required for meaningful MULTILIB_USEDEP.
22case ${EAPI:-0} in 23case ${EAPI:-0} in
23 2|3|4|5) ;; 24 5) ;;
24 *) die "EAPI=${EAPI} is not supported" ;; 25 *) die "EAPI=${EAPI} is not supported" ;;
25esac 26esac
26 27
27if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then 28if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
28 die "${ECLASS}: multilib support requires out-of-source builds." 29 die "${ECLASS}: multilib support requires out-of-source builds."
42# Example use: 43# Example use:
43# @CODE 44# @CODE
44# RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}] 45# RDEPEND="dev-libs/libfoo[${MULTILIB_USEDEP}]
45# net-libs/libbar[ssl,${MULTILIB_USEDEP}]" 46# net-libs/libbar[ssl,${MULTILIB_USEDEP}]"
46# @CODE 47# @CODE
47MULTILIB_USEDEP=multilib? 48MULTILIB_USEDEP='multilib(-)?'
48 49
49# @FUNCTION: autotools-multilib_foreach_abi 50# @FUNCTION: autotools-multilib_foreach_abi
50# @USAGE: argv... 51# @USAGE: argv...
51# @DESCRIPTION: 52# @DESCRIPTION:
52# If multilib support is enabled, sets the toolchain up for each 53# If multilib support is enabled, sets the toolchain up for each

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20