/[gentoo-x86]/eclass/depend.php.eclass
Gentoo

Diff of /eclass/depend.php.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
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.3 2005/09/11 16:39:10 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.php.eclass,v 1.4 2005/09/16 20:25:21 trapni 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
12# 12#
13# ======================================================================== 13# ========================================================================
14 14
15inherit eutils 15inherit eutils
16 16
17# PHP4-only depend functions
17need_php4_cli() 18need_php4_cli()
18{ 19{
19 DEPEND="${DEPEND} =virtual/php-4*" 20 DEPEND="${DEPEND} =virtual/php-4*"
20 RDEPEND="${RDEPEND} =virtual/php-4*" 21 RDEPEND="${RDEPEND} =virtual/php-4*"
21 PHP_VERSION=4 22 PHP_VERSION=4
52 einfo 53 einfo
53 einfo "Using ${PHP_PKG}" 54 einfo "Using ${PHP_PKG}"
54 einfo 55 einfo
55} 56}
56 57
58# PHP5-only depend functions
57need_php5_cli() 59need_php5_cli()
58{ 60{
59 DEPEND="${DEPEND} =virtual/php-5*" 61 DEPEND="${DEPEND} =virtual/php-5*"
60 RDEPEND="${RDEPEND} =virtual/php-5*" 62 RDEPEND="${RDEPEND} =virtual/php-5*"
61 PHP_VERSION=5 63 PHP_VERSION=5
90 PHPPREFIX="/usr/${libdir}/php5" 92 PHPPREFIX="/usr/${libdir}/php5"
91 93
92 einfo 94 einfo
93 einfo "Using ${PHP_PKG}" 95 einfo "Using ${PHP_PKG}"
94 einfo 96 einfo
97}
98
99# general PHP depend functions
100need_php_cli()
101{
102 DEPEND="${DEPEND} virtual/php"
103 RDEPEND="${RDEPEND} virtual/php"
104}
105
106need_php_httpd()
107{
108 DEPEND="${DEPEND} virtual/httpd-php"
109 RDEPEND="${RDEPEND} virtual/httpd-php"
95} 110}
96 111
97need_php() 112need_php()
98{ 113{
99 DEPEND="${DEPEND} dev-lang/php" 114 DEPEND="${DEPEND} dev-lang/php"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20