| 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.6 2013/01/26 11:38:43 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. |
| 22 | case ${EAPI:-0} in |
23 | case ${EAPI:-0} in |
| 23 | 2|3|4|5) ;; |
24 | 5) ;; |
| 24 | *) die "EAPI=${EAPI} is not supported" ;; |
25 | *) die "EAPI=${EAPI} is not supported" ;; |
| 25 | esac |
26 | esac |
| 26 | |
27 | |
| 27 | if [[ ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then |
28 | if [[ ${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." |