/[gentoo-x86]/eclass/autotools.eclass
Gentoo

Diff of /eclass/autotools.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.117 Revision 1.118
1# Copyright 1999-2011 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.eclass,v 1.117 2012/01/04 22:00:27 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.118 2012/01/06 21:06:17 vapier Exp $
4 4
5# @ECLASS: autotools.eclass 5# @ECLASS: autotools.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: Regenerates auto* build scripts 8# @BLURB: Regenerates auto* build scripts
295# Runs autopoint (from the gettext package). 295# Runs autopoint (from the gettext package).
296eautopoint() { 296eautopoint() {
297 autotools_run_tool autopoint "$@" 297 autotools_run_tool autopoint "$@"
298} 298}
299 299
300# @FUNCTION: config_rpath_update
301# @USAGE: [destination]
302# @DESCRIPTION:
303# Some packages utilize the config.rpath helper script, but don't
304# use gettext directly. So we have to copy it in manually since
305# we can't let `autopoint` do it for us.
306config_rpath_update() {
307 local dst src=$(type -P gettext | sed 's:bin/gettext:share/gettext/config.rpath:')
308
309 [[ $# -eq 0 ]] && set -- $(find -name config.rpath)
310 [[ $# -eq 0 ]] && return 0
311
312 einfo "Updating all config.rpath files"
313 for dst in "$@" ; do
314 einfo " ${dst}"
315 cp "${src}" "${dst}" || die
316 done
317}
318
300# Internal function to run an autotools' tool 319# Internal function to run an autotools' tool
301autotools_env_setup() { 320autotools_env_setup() {
302 # We do the “latest” → version switch here because it solves 321 # We do the “latest” → version switch here because it solves
303 # possible order problems, see bug #270010 as an example. 322 # possible order problems, see bug #270010 as an example.
304 if [[ ${WANT_AUTOMAKE} == "latest" ]]; then 323 if [[ ${WANT_AUTOMAKE} == "latest" ]]; then

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

  ViewVC Help
Powered by ViewVC 1.1.20