/[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.68 Revision 1.69
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.68 2013/05/05 20:22:25 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.69 2013/06/07 20:59:13 floppym 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>
134# @ECLASS-VARIABLE: ECONF_SOURCE 134# @ECLASS-VARIABLE: ECONF_SOURCE
135# @DEFAULT_UNSET 135# @DEFAULT_UNSET
136# @DESCRIPTION: 136# @DESCRIPTION:
137# Specify location of autotools' configure script. By default it uses ${S}. 137# Specify location of autotools' configure script. By default it uses ${S}.
138 138
139# @ECLASS-VARIABLE: myeconfargs
140# @DEFAULT_UNSET
141# @DESCRIPTION:
142# Optional econf arguments as Bash array. Should be defined before calling src_configure.
143# @CODE
144# src_configure() {
145# local myeconfargs=(
146# --disable-readline
147# --with-confdir="/etc/nasty foo confdir/"
148# $(use_enable debug cnddebug)
149# $(use_enable threads multithreading)
150# )
151# autotools-utils_src_configure
152# }
153# @CODE
154
155# @ECLASS-VARIABLE: DOCS 139# @ECLASS-VARIABLE: DOCS
156# @DEFAULT_UNSET 140# @DEFAULT_UNSET
157# @DESCRIPTION: 141# @DESCRIPTION:
158# Array containing documents passed to dodoc command. 142# Array containing documents passed to dodoc command.
159# 143#
425# in myeconfargs are passed here to econf. Additionally following USE 409# in myeconfargs are passed here to econf. Additionally following USE
426# flags are known: 410# flags are known:
427# 411#
428# IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static 412# IUSE="static-libs" passes --enable-shared and either --disable-static/--enable-static
429# to econf respectively. 413# to econf respectively.
414
415# @VARIABLE: myeconfargs
416# @DEFAULT_UNSET
417# @DESCRIPTION:
418# Optional econf arguments as Bash array. Should be defined before calling src_configure.
419# @CODE
420# src_configure() {
421# local myeconfargs=(
422# --disable-readline
423# --with-confdir="/etc/nasty foo confdir/"
424# $(use_enable debug cnddebug)
425# $(use_enable threads multithreading)
426# )
427# autotools-utils_src_configure
428# }
429# @CODE
430autotools-utils_src_configure() { 430autotools-utils_src_configure() {
431 debug-print-function ${FUNCNAME} "$@" 431 debug-print-function ${FUNCNAME} "$@"
432 432
433 [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \ 433 [[ -z ${myeconfargs+1} || $(declare -p myeconfargs) == 'declare -a'* ]] \
434 || die 'autotools-utils.eclass: myeconfargs has to be an array.' 434 || die 'autotools-utils.eclass: myeconfargs has to be an array.'

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20