/[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.52 Revision 1.54
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.52 2012/05/28 07:45:19 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.54 2012/06/06 15:43:45 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>
202# In most cases it's not necessary to manually invoke this function. 202# In most cases it's not necessary to manually invoke this function.
203# See autotools-utils_src_install for reference. 203# See autotools-utils_src_install for reference.
204remove_libtool_files() { 204remove_libtool_files() {
205 debug-print-function ${FUNCNAME} "$@" 205 debug-print-function ${FUNCNAME} "$@"
206 local removing_all 206 local removing_all
207
208 eqawarn "The remove_libtool_files() function was deprecated."
209 eqawarn "Please use prune_libtool_files() from eutils eclass instead."
210
207 [[ ${#} -le 1 ]] || die "Invalid number of args to ${FUNCNAME}()" 211 [[ ${#} -le 1 ]] || die "Invalid number of args to ${FUNCNAME}()"
208 if [[ ${#} -eq 1 ]]; then 212 if [[ ${#} -eq 1 ]]; then
209 case "${1}" in 213 case "${1}" in
210 all) 214 all)
211 removing_all=1 215 removing_all=1
257 if [[ ${removing} ]]; then 261 if [[ ${removing} ]]; then
258 einfo "Removing unnecessary ${f#${D%/}} (${removing})" 262 einfo "Removing unnecessary ${f#${D%/}} (${removing})"
259 rm -f "${f}" || die 263 rm -f "${f}" || die
260 fi 264 fi
261 done 265 done
262
263 # check for invalid eclass use
264 # this is the most commonly used function, so do it here
265 _check_build_dir
266 if [[ ! -d "${AUTOTOOLS_BUILD_DIR}" ]]; then
267 eqawarn "autotools-utils used but autotools-utils_src_configure was never called."
268 eqawarn "This is not supported and never was. Please report a bug against"
269 eqawarn "the offending ebuild. This will become a fatal error in a near future."
270 fi
271} 266}
272 267
273# @FUNCTION: autotools-utils_autoreconf 268# @FUNCTION: autotools-utils_autoreconf
274# @DESCRIPTION: 269# @DESCRIPTION:
275# Reconfigure the sources (like gnome-autogen.sh or eautoreconf). 270# Reconfigure the sources (like gnome-autogen.sh or eautoreconf).
479 if [[ ${HTML_DOCS} ]]; then 474 if [[ ${HTML_DOCS} ]]; then
480 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" 475 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
481 fi 476 fi
482 477
483 # Remove libtool files and unnecessary static libs 478 # Remove libtool files and unnecessary static libs
484 remove_libtool_files 479 prune_libtool_files
485} 480}
486 481
487# @FUNCTION: autotools-utils_src_test 482# @FUNCTION: autotools-utils_src_test
488# @DESCRIPTION: 483# @DESCRIPTION:
489# The autotools src_test function. Runs emake check in build directory. 484# The autotools src_test function. Runs emake check in build directory.

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.54

  ViewVC Help
Powered by ViewVC 1.1.20