/[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.61 Revision 1.64
1# Copyright 1999-2012 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.61 2012/12/14 08:40:18 mgorny 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>
35# IUSE="debug doc examples qt4 static-libs tiff" 35# IUSE="debug doc examples qt4 static-libs tiff"
36# 36#
37# CDEPEND=" 37# CDEPEND="
38# media-libs/libpng:0 38# media-libs/libpng:0
39# qt4? ( 39# qt4? (
40# x11-libs/qt-core:4 40# dev-qt/qtcore:4
41# x11-libs/qt-gui:4 41# dev-qt/qtgui:4
42# ) 42# )
43# tiff? ( media-libs/tiff:0 ) 43# tiff? ( media-libs/tiff:0 )
44# " 44# "
45# RDEPEND="${CDEPEND} 45# RDEPEND="${CDEPEND}
46# !media-gfx/bar 46# !media-gfx/bar
181# 181#
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
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.
186 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
484 rm -r "${T}"/temp-docdir || die 501 rm -r "${T}"/temp-docdir || die
485 fi 502 fi
486 fi 503 fi
487 504
488 # XXX: support installing them from builddir as well? 505 # XXX: support installing them from builddir as well?
506 if declare -p DOCS &>/dev/null; then
507 # an empty list == don't install anything
489 if [[ ${DOCS} ]]; then 508 if [[ ${DOCS[@]} ]]; then
490 if [[ ${EAPI} == [23] ]]; then 509 if [[ ${EAPI} == [23] ]]; then
491 dodoc "${DOCS[@]}" || die 510 dodoc "${DOCS[@]}" || die
492 else 511 else
493 # dies by itself 512 # dies by itself
494 dodoc -r "${DOCS[@]}" 513 dodoc -r "${DOCS[@]}"
514 fi
495 fi 515 fi
496 else 516 else
497 local f 517 local f
498 # same list as in PMS 518 # same list as in PMS
499 for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \ 519 for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
506 if [[ ${HTML_DOCS} ]]; then 526 if [[ ${HTML_DOCS} ]]; then
507 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed" 527 dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
508 fi 528 fi
509 529
510 # Remove libtool files and unnecessary static libs 530 # Remove libtool files and unnecessary static libs
511 prune_libtool_files 531 local prune_ltfiles=${AUTOTOOLS_PRUNE_LIBTOOL_FILES}
532 prune_libtool_files ${prune_ltfiles:+--${prune_ltfiles}}
512} 533}
513 534
514# @FUNCTION: autotools-utils_src_test 535# @FUNCTION: autotools-utils_src_test
515# @DESCRIPTION: 536# @DESCRIPTION:
516# 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.61  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20