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

Diff of /eclass/autotools-utils.eclass

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

Revision 1.71 Revision 1.72
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-utils.eclass,v 1.71 2013/10/08 10:34:45 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.72 2013/11/24 10:53:13 mgorny Exp $
4 4
5# @ECLASS: autotools-utils.eclass 5# @ECLASS: autotools-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Maciej Mrozowski <reavertm@gentoo.org> 7# Maciej Mrozowski <reavertm@gentoo.org>
8# Michał Górny <mgorny@gentoo.org> 8# Michał Górny <mgorny@gentoo.org>
189# cases only. 189# cases only.
190 190
191# Determine using IN or OUT source build 191# Determine using IN or OUT source build
192_check_build_dir() { 192_check_build_dir() {
193 : ${ECONF_SOURCE:=${S}} 193 : ${ECONF_SOURCE:=${S}}
194 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then 194 # Respect both the old variable and the new one, depending
195 BUILD_DIR="${ECONF_SOURCE}" 195 # on which one was set by the ebuild.
196 if [[ ! ${BUILD_DIR} && ${AUTOTOOLS_BUILD_DIR} ]]; then
197 eqawarn "The AUTOTOOLS_BUILD_DIR variable has been renamed to BUILD_DIR."
198 eqawarn "Please migrate the ebuild to use the new one."
199
200 # In the next call, both variables will be set already
201 # and we'd have to know which one takes precedence.
202 _RESPECT_AUTOTOOLS_BUILD_DIR=1
203 fi
204
205 if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then
206 BUILD_DIR=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build}
196 else 207 else
197 # Respect both the old variable and the new one, depending 208 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
198 # on which one was set by the ebuild. 209 : ${BUILD_DIR:=${ECONF_SOURCE}}
199 if [[ ! ${BUILD_DIR} && ${AUTOTOOLS_BUILD_DIR} ]]; then
200 eqawarn "The AUTOTOOLS_BUILD_DIR variable has been renamed to BUILD_DIR."
201 eqawarn "Please migrate the ebuild to use the new one."
202
203 # In the next call, both variables will be set already
204 # and we'd have to know which one takes precedence.
205 _RESPECT_AUTOTOOLS_BUILD_DIR=1
206 fi
207
208 if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then
209 BUILD_DIR=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build}
210 else 210 else
211 : ${BUILD_DIR:=${WORKDIR}/${P}_build} 211 : ${BUILD_DIR:=${WORKDIR}/${P}_build}
212 fi 212 fi
213 fi 213 fi
214 214

Legend:
Removed from v.1.71  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20