/[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.25 Revision 1.26
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 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.25 2011/10/14 20:28:29 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.26 2011/11/26 20:42:02 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>
254 # Append user args 254 # Append user args
255 econfargs+=("${myeconfargs[@]}") 255 econfargs+=("${myeconfargs[@]}")
256 256
257 _check_build_dir 257 _check_build_dir
258 mkdir -p "${AUTOTOOLS_BUILD_DIR}" || die "mkdir '${AUTOTOOLS_BUILD_DIR}' failed" 258 mkdir -p "${AUTOTOOLS_BUILD_DIR}" || die "mkdir '${AUTOTOOLS_BUILD_DIR}' failed"
259 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null 259 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
260 base_src_configure "${econfargs[@]}" "$@" 260 base_src_configure "${econfargs[@]}" "$@"
261 popd > /dev/null 261 popd > /dev/null || die
262} 262}
263 263
264# @FUNCTION: autotools-utils_src_compile 264# @FUNCTION: autotools-utils_src_compile
265# @DESCRIPTION: 265# @DESCRIPTION:
266# The autotools src_compile function, invokes emake in specified AUTOTOOLS_BUILD_DIR. 266# The autotools src_compile function, invokes emake in specified AUTOTOOLS_BUILD_DIR.
267autotools-utils_src_compile() { 267autotools-utils_src_compile() {
268 debug-print-function ${FUNCNAME} "$@" 268 debug-print-function ${FUNCNAME} "$@"
269 269
270 _check_build_dir 270 _check_build_dir
271 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null 271 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
272 base_src_compile "$@" 272 base_src_compile "$@"
273 popd > /dev/null 273 popd > /dev/null || die
274} 274}
275 275
276# @FUNCTION: autotools-utils_src_install 276# @FUNCTION: autotools-utils_src_install
277# @DESCRIPTION: 277# @DESCRIPTION:
278# The autotools src_install function. Runs emake install, unconditionally 278# The autotools src_install function. Runs emake install, unconditionally
283# DOCS and HTML_DOCS arrays are supported. See base.eclass(5) for reference. 283# DOCS and HTML_DOCS arrays are supported. See base.eclass(5) for reference.
284autotools-utils_src_install() { 284autotools-utils_src_install() {
285 debug-print-function ${FUNCNAME} "$@" 285 debug-print-function ${FUNCNAME} "$@"
286 286
287 _check_build_dir 287 _check_build_dir
288 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null 288 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
289 base_src_install "$@" 289 base_src_install "$@"
290 popd > /dev/null 290 popd > /dev/null || die
291 291
292 # Remove libtool files and unnecessary static libs 292 # Remove libtool files and unnecessary static libs
293 remove_libtool_files 293 remove_libtool_files
294} 294}
295 295
298# The autotools src_test function. Runs emake check in build directory. 298# The autotools src_test function. Runs emake check in build directory.
299autotools-utils_src_test() { 299autotools-utils_src_test() {
300 debug-print-function ${FUNCNAME} "$@" 300 debug-print-function ${FUNCNAME} "$@"
301 301
302 _check_build_dir 302 _check_build_dir
303 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null 303 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null || die
304 # Run default src_test as defined in ebuild.sh 304 # Run default src_test as defined in ebuild.sh
305 default_src_test 305 default_src_test
306 popd > /dev/null 306 popd > /dev/null || die
307} 307}

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20