diff options
author | 2005-09-16 20:25:21 +0000 | |
---|---|---|
committer | 2005-09-16 20:25:21 +0000 | |
commit | 1bda6735cbe67c62ec8eb0fef6105613432dcfdd (patch) | |
tree | 81159d681a3671706180bdf0bd7439d85613912f /eclass/depend.php.eclass | |
parent | Converted to UTF-8, fixed encoding screwups (diff) | |
download | historical-1bda6735cbe67c62ec8eb0fef6105613432dcfdd.tar.gz historical-1bda6735cbe67c62ec8eb0fef6105613432dcfdd.tar.bz2 historical-1bda6735cbe67c62ec8eb0fef6105613432dcfdd.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" |