From 1bda6735cbe67c62ec8eb0fef6105613432dcfdd Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Fri, 16 Sep 2005 20:25:21 +0000 Subject: merging to upstream (from overlay) - containing two new functions: need_php_httpd() and need_php_cli() --- eclass/depend.php.eclass | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'eclass/depend.php.eclass') 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" -- cgit v1.2.3-65-gdbad