/[gentoo-x86]/eclass/depend.php.eclass
Gentoo

Diff of /eclass/depend.php.eclass

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

Revision 1.13 Revision 1.14
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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/depend.php.eclass,v 1.13 2006/04/20 12:15:35 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.14 2006/05/05 21:42:16 chtekk Exp $
4# 4#
5# ======================================================================== 5# ========================================================================
6# 6#
7# depend.php.eclass 7# depend.php.eclass
8# functions to allow ebuilds to depend on php4 and/or php5 8# functions to allow ebuilds to depend on php4 and/or php5
193 has_php 193 has_php
194 194
195 local missing_use="" 195 local missing_use=""
196 local x 196 local x
197 197
198 einfo "Checking for required PHP feature(s):" 198 einfo "Checking for required PHP feature(s) ..."
199 199
200 for x in $@ ; do 200 for x in $@ ; do
201 if ! built_with_use =${PHP_PKG} ${x} && ! phpconfutils_built_with_use =${PHP_PKG} ${x} ; then 201 if ! built_with_use =${PHP_PKG} ${x} && ! phpconfutils_built_with_use =${PHP_PKG} ${x} ; then
202 einfo " Discovered missing USE flag ${x}" 202 einfo " Discovered missing USE flag: ${x}"
203 missing_use="${missing_use} ${x}" 203 missing_use="${missing_use} ${x}"
204 fi 204 fi
205 done 205 done
206 206
207 if [[ -z ${missing_use} ]] ; then 207 if [[ -z ${missing_use} ]] ; then
229 has_php 229 has_php
230 230
231 local missing_use="" 231 local missing_use=""
232 local x 232 local x
233 233
234 einfo "Checking for required PHP feature(s):" 234 einfo "Checking for required PHP feature(s) ..."
235 235
236 for x in $@ ; do 236 for x in $@ ; do
237 if built_with_use =${PHP_PKG} ${x} || phpconfutils_built_with_use =${PHP_PKG} ${x} ; then 237 if built_with_use =${PHP_PKG} ${x} || phpconfutils_built_with_use =${PHP_PKG} ${x} ; then
238 einfo " USE flag ${x} is enabled, ok ..." 238 einfo " USE flag ${x} is enabled, ok ..."
239 return 239 return

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20