/[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.58 Revision 1.59
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.58 2012/12/01 16:26:03 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.59 2012/12/03 09:29:09 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>
186_check_build_dir() { 186_check_build_dir() {
187 : ${ECONF_SOURCE:=${S}} 187 : ${ECONF_SOURCE:=${S}}
188 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then 188 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
189 BUILD_DIR="${ECONF_SOURCE}" 189 BUILD_DIR="${ECONF_SOURCE}"
190 else 190 else
191 : ${BUILD_DIR:=${AUTOTOOLS_BUILD_DIR:-${WORKDIR}/${P}_build}} 191 # Respect both the old variable and the new one, depending
192 # on which one was set by the ebuild.
193 if [[ ! ${BUILD_DIR} && ${AUTOTOOLS_BUILD_DIR} ]]; then
194 eqawarn "The AUTOTOOLS_BUILD_DIR variable has been renamed to BUILD_DIR."
195 eqawarn "Please migrate the ebuild to use the new one."
196
197 # In the next call, both variables will be set already
198 # and we'd have to know which one takes precedence.
199 _RESPECT_AUTOTOOLS_BUILD_DIR=1
192 fi 200 fi
201 if [[ ${_RESPECT_AUTOTOOLS_BUILD_DIR} ]]; then
202 BUILD_DIR=${AUTOTOOLS_BUILD_DIR}
203 fi
193 204
194 # Backwards compatibility. 205 : ${BUILD_DIR:=${WORKDIR}/${P}_build}
206 fi
207
208 # Backwards compatibility for getting the value.
195 AUTOTOOLS_BUILD_DIR=${BUILD_DIR} 209 AUTOTOOLS_BUILD_DIR=${BUILD_DIR}
196 echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\"" 210 echo ">>> Working in BUILD_DIR: \"${BUILD_DIR}\""
197} 211}
198 212
199# @FUNCTION: remove_libtool_files 213# @FUNCTION: remove_libtool_files

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20