diff options
author | Christian Parpart <trapni@gentoo.org> | 2005-09-16 20:25:21 +0000 |
---|---|---|
committer | Christian Parpart <trapni@gentoo.org> | 2005-09-16 20:25:21 +0000 |
commit | 393744c92553072e246c63f47d4d7ff65344cc2b (patch) | |
tree | 2b6bc3dd939ffc59933068db88e11cf90be41a0e /eclass/depend.php.eclass | |
parent | Converted to UTF-8, fixed encoding screwups (diff) | |
download | gentoo-2-393744c92553072e246c63f47d4d7ff65344cc2b.tar.gz gentoo-2-393744c92553072e246c63f47d4d7ff65344cc2b.tar.bz2 gentoo-2-393744c92553072e246c63f47d4d7ff65344cc2b.zip |
merging to upstream (from overlay) - containing two new functions: need_php_httpd() and need_php_cli()
Diffstat (limited to 'eclass/depend.php.eclass')
-rw-r--r-- | eclass/depend.php.eclass | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/eclass/depend.php.eclass b/eclass/depend.php.eclass index 519d8f818464..cba670ca5c76 100644 --- a/eclass/depend.php.eclass +++ b/eclass/depend.php.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.3 2005/09/11 16:39:10 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.4 2005/09/16 20:25:21 trapni Exp $ # # ======================================================================== # @@ -14,6 +14,7 @@ inherit eutils +# PHP4-only depend functions need_php4_cli() { DEPEND="${DEPEND} =virtual/php-4*" @@ -54,6 +55,7 @@ uses_php4() einfo } +# PHP5-only depend functions need_php5_cli() { DEPEND="${DEPEND} =virtual/php-5*" @@ -94,6 +96,19 @@ uses_php5() einfo } +# general PHP depend functions +need_php_cli() +{ + DEPEND="${DEPEND} virtual/php" + RDEPEND="${RDEPEND} virtual/php" +} + +need_php_httpd() +{ + DEPEND="${DEPEND} virtual/httpd-php" + RDEPEND="${RDEPEND} virtual/httpd-php" +} + need_php() { DEPEND="${DEPEND} dev-lang/php" |