/[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.39 Revision 1.40
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.39 2012/01/14 18:14:39 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.40 2012/01/14 18:53:56 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>
444 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null 444 pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
445 emake DESTDIR="${D}" "$@" install || die "emake install failed" 445 emake DESTDIR="${D}" "$@" install || die "emake install failed"
446 popd > /dev/null 446 popd > /dev/null
447 447
448 # Move docs installed by autotools (in EAPI < 4). 448 # Move docs installed by autotools (in EAPI < 4).
449 if [[ ${EAPI} == [23] && -d ${D}${EPREFIX}/usr/share/doc/${PF} ]]; then 449 if [[ ${EAPI} == [23] ]] \
450 && path_exists "${D}${EPREFIX}"/usr/share/doc/${PF}/*; then
450 if [[ $(find "${D}${EPREFIX}"/usr/share/doc/${PF}/* -type d) ]]; then 451 if [[ $(find "${D}${EPREFIX}"/usr/share/doc/${PF}/* -type d) ]]; then
451 eqawarn "autotools-utils: directories in docdir require at least EAPI 4" 452 eqawarn "autotools-utils: directories in docdir require at least EAPI 4"
452 else 453 else
453 mkdir "${T}"/temp-docdir 454 mkdir "${T}"/temp-docdir
454 mv "${D}${EPREFIX}"/usr/share/doc/${PF}/* "${T}"/temp-docdir/ \ 455 mv "${D}${EPREFIX}"/usr/share/doc/${PF}/* "${T}"/temp-docdir/ \

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20