| 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.4 2005/09/16 20:25:21 trapni Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.5 2005/09/25 12:30:26 swegener 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 |
| … | |
… | |
| 131 | # |
131 | # |
| 132 | # this function will disappear when USE-based deps are supported by |
132 | # this function will disappear when USE-based deps are supported by |
| 133 | # Portage |
133 | # Portage |
| 134 | # |
134 | # |
| 135 | # $1 ... a list of SAPI USE flags (eg cli, cgi, apache2) |
135 | # $1 ... a list of SAPI USE flags (eg cli, cgi, apache2) |
| 136 | # |
136 | # |
| 137 | # returns if any one of the listed SAPIs has been installed |
137 | # returns if any one of the listed SAPIs has been installed |
| 138 | # dies if none of the listed SAPIs has been installed |
138 | # dies if none of the listed SAPIs has been installed |
| 139 | |
139 | |
| 140 | require_php_sapi_from() |
140 | require_php_sapi_from() |
| 141 | { |
141 | { |
| … | |
… | |
| 171 | # |
171 | # |
| 172 | # this function will disappear when USE-based deps are supported by |
172 | # this function will disappear when USE-based deps are supported by |
| 173 | # Portage |
173 | # Portage |
| 174 | # |
174 | # |
| 175 | # $1 ... a list of USE flags |
175 | # $1 ... a list of USE flags |
| 176 | # |
176 | # |
| 177 | # returns if all of the listed USE flags are set |
177 | # returns if all of the listed USE flags are set |
| 178 | # dies if any of the listed USE flags are not set |
178 | # dies if any of the listed USE flags are not set |
| 179 | |
179 | |
| 180 | require_php_with_use() |
180 | require_php_with_use() |
| 181 | { |
181 | { |