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

Diff of /eclass/eutils.eclass

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

Revision 1.272 Revision 1.273
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.272 2007/01/31 04:40:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.273 2007/02/14 16:49:46 cardoe Exp $
4# 4#
5# This eclass is for general purpose functions that most ebuilds 5# This eclass is for general purpose functions that most ebuilds
6# have to implement themselves. 6# have to implement themselves.
7# 7#
8# NB: If you add anything, please comment it! 8# NB: If you add anything, please comment it!
1652 1652
1653 # if the USE file doesnt exist, assume the $PKG is either 1653 # if the USE file doesnt exist, assume the $PKG is either
1654 # injected or package.provided 1654 # injected or package.provided
1655 [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with" 1655 [[ ! -e ${USEFILE} ]] && die "Unable to determine what USE flags $PKG was built with"
1656 1656
1657 # if the IUSE file doesn't exist, the read will error out, we need to handle
1658 # this gracefully
1659 if [[ ! -e ${IUSEFILE} ]] ; then
1660 case ${missing_action} in
1661 true) return 0;;
1662 false) return 1;;
1663 die) die "Unable to determine what USE flags $PKG was built with";;
1664 esac
1665 fi
1666
1657 local IUSE_BUILT=$(<${IUSEFILE}) 1667 local IUSE_BUILT=$(<${IUSEFILE})
1658 # Don't check USE_EXPAND #147237 1668 # Don't check USE_EXPAND #147237
1659 local expand 1669 local expand
1660 for expand in $(echo ${USE_EXPAND} | tr '[:upper:]' '[:lower:]') ; do 1670 for expand in $(echo ${USE_EXPAND} | tr '[:upper:]' '[:lower:]') ; do
1661 if [[ $1 == ${expand}_* ]] ; then 1671 if [[ $1 == ${expand}_* ]] ; then

Legend:
Removed from v.1.272  
changed lines
  Added in v.1.273

  ViewVC Help
Powered by ViewVC 1.1.20