/[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.18 Revision 1.20
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.18 2007/03/05 01:50:47 chtekk Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.20 2007/08/16 22:11:00 hoffie 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
148} 148}
149 149
150# Call this function from pkg_setup if your package only works with 150# Call this function from pkg_setup if your package only works with
151# specific SAPIs 151# specific SAPIs
152# 152#
153# $1 ... a list of PHP SAPI USE flags (cli, cgi, apache, apache2) 153# $1 ... a list of PHP SAPI USE flags (cli, cgi, apache2)
154# 154#
155# Returns if any one of the listed SAPIs have been installed 155# Returns if any one of the listed SAPIs have been installed
156# Dies if none of the listed SAPIs have been installed 156# Dies if none of the listed SAPIs have been installed
157 157
158require_php_sapi_from() { 158require_php_sapi_from() {
398 if [[ -z ${PHP_PACKAGE_FOUND} ]] ; then 398 if [[ -z ${PHP_PACKAGE_FOUND} ]] ; then
399 die "Unable to find an installed dev-lang/php package" 399 die "Unable to find an installed dev-lang/php package"
400 fi 400 fi
401 401
402 if [[ -z ${PHP_VERSION} ]] ; then 402 if [[ -z ${PHP_VERSION} ]] ; then
403 die "No PHP CLI installed" 403 die "No PHP CLI installed. Re-emerge dev-lang/php with USE=cli."
404 fi 404 fi
405 405
406 # If we get here, then PHP_VERSION tells us which version of PHP we 406 # If we get here, then PHP_VERSION tells us which version of PHP we
407 # want to use 407 # want to use
408 uses_php${PHP_VERSION} 408 uses_php${PHP_VERSION}
441 if [[ -z ${PHP_PACKAGE_FOUND} ]] ; then 441 if [[ -z ${PHP_PACKAGE_FOUND} ]] ; then
442 die "Unable to find an installed dev-lang/php package" 442 die "Unable to find an installed dev-lang/php package"
443 fi 443 fi
444 444
445 if [[ -z ${PHP_VERSION} ]] ; then 445 if [[ -z ${PHP_VERSION} ]] ; then
446 die "No PHP CGI installed" 446 die "No PHP CGI installed. Re-emerge dev-lang/php with USE=cgi."
447 fi 447 fi
448 448
449 # If we get here, then PHP_VERSION tells us which version of PHP we 449 # If we get here, then PHP_VERSION tells us which version of PHP we
450 # want to use 450 # want to use
451 uses_php${PHP_VERSION} 451 uses_php${PHP_VERSION}

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20