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.19 2007/05/12 14:22:12 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 |
… | |
… | |
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 | |
158 | require_php_sapi_from() { |
158 | require_php_sapi_from() { |