/[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.63 Revision 1.64
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.63 2013/03/03 00:22:56 pesa Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.64 2013/04/01 09:16:07 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>
182# Example: 182# Example:
183# @CODE 183# @CODE
184# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch ) 184# PATCHES=( "${FILESDIR}"/${P}-mypatch.patch )
185# @CODE 185# @CODE
186 186
187# @ECLASS-VARIABLE: AUTOTOOLS_PRUNE_LIBTOOL_FILES
188# @DEFAULT-UNSET
189# @DESCRIPTION:
190# Sets the mode of pruning libtool files. The values correspond to
191# prune_libtool_files parameters, with leading dashes stripped.
192#
193# Defaults to pruning the libtool files when static libraries are not
194# installed or can be linked properly without them. Libtool files
195# for modules (plugins) will be kept in case plugin loader needs them.
196#
197# If set to 'modules', the .la files for modules will be removed
198# as well. This is often the preferred option.
199#
200# If set to 'all', all .la files will be removed unconditionally. This
201# option is discouraged and shall be used only if 'modules' does not
202# remove the files.
203
187# Determine using IN or OUT source build 204# Determine using IN or OUT source build
188_check_build_dir() { 205_check_build_dir() {
189 : ${ECONF_SOURCE:=${S}} 206 : ${ECONF_SOURCE:=${S}}
190 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then 207 if [[ -n ${AUTOTOOLS_IN_SOURCE_BUILD} ]]; then
191 BUILD_DIR="${ECONF_SOURCE}" 208 BUILD_DIR="${ECONF_SOURCE}"
509 if [[ ${HTML_DOCS} ]]; then 526 if [[ ${HTML_DOCS} ]]; then
510 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" 527 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
511 fi 528 fi
512 529
513 # Remove libtool files and unnecessary static libs 530 # Remove libtool files and unnecessary static libs
514 prune_libtool_files 531 local prune_ltfiles=${AUTOTOOLS_PRUNE_LIBTOOL_FILES}
532 prune_libtool_files ${prune_ltfiles:+--${prune_ltfiles}}
515} 533}
516 534
517# @FUNCTION: autotools-utils_src_test 535# @FUNCTION: autotools-utils_src_test
518# @DESCRIPTION: 536# @DESCRIPTION:
519# The autotools src_test function. Runs emake check in build directory. 537# The autotools src_test function. Runs emake check in build directory.

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20