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

Diff of /eclass/eutils.eclass

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

Revision 1.346 Revision 1.349
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/eutils.eclass,v 1.346 2010/07/10 06:02:59 cardoe Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.349 2010/08/19 21:32:26 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
59 59
60epause() { 60epause() {
61 ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please file a bug at http://bugs.gentoo.org" 61 ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please file a bug at http://bugs.gentoo.org"
62} 62}
63 63
64fi
65
66# @FUNCTION: eqawarn
67# @USAGE: [message]
68# @DESCRIPTION:
69# Proxy to einfo for package managers that don't provide eqawarn and use the PM
70# implementation if available.
71if ! declare -F eqawarn >/dev/null ; then
72 eqawarn() {
73 einfo "$@"
74 }
64fi 75fi
65 76
66# @FUNCTION: ecvs_clean 77# @FUNCTION: ecvs_clean
67# @USAGE: [list of dirs] 78# @USAGE: [list of dirs]
68# @DESCRIPTION: 79# @DESCRIPTION:
422 EPATCH_SOURCE=${EPATCH_SOURCE} \ 433 EPATCH_SOURCE=${EPATCH_SOURCE} \
423 EPATCH_SUFFIX="patch" \ 434 EPATCH_SUFFIX="patch" \
424 EPATCH_FORCE="yes" \ 435 EPATCH_FORCE="yes" \
425 EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \ 436 EPATCH_MULTI_MSG="Applying user patches from ${EPATCH_SOURCE} ..." \
426 epatch 437 epatch
427 break 438 return 0
428 fi 439 fi
429 done 440 done
441 return 1
430} 442}
431 443
432# @FUNCTION: emktemp 444# @FUNCTION: emktemp
433# @USAGE: [temp dir] 445# @USAGE: [temp dir]
434# @DESCRIPTION: 446# @DESCRIPTION:
1550 done 1562 done
1551 echo 1563 echo
1552 einfo "If you do not have the CDs, but have the data files" 1564 einfo "If you do not have the CDs, but have the data files"
1553 einfo "mounted somewhere on your filesystem, just export" 1565 einfo "mounted somewhere on your filesystem, just export"
1554 einfo "the following variables so they point to the right place:" 1566 einfo "the following variables so they point to the right place:"
1555 einfo "" 1567 einfon ""
1556 cdcnt=0 1568 cdcnt=0
1557 while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do 1569 while [[ ${cdcnt} -lt ${CDROM_TOTAL_CDS} ]] ; do
1558 ((++cdcnt)) 1570 ((++cdcnt))
1559 echo -n " CD_ROOT_${cdcnt}" 1571 echo -n " CD_ROOT_${cdcnt}"
1560 done 1572 done

Legend:
Removed from v.1.346  
changed lines
  Added in v.1.349

  ViewVC Help
Powered by ViewVC 1.1.20