/[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.5
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.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
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
92 einfo 94 einfo
93 einfo "Using ${PHP_PKG}" 95 einfo "Using ${PHP_PKG}"
94 einfo 96 einfo
95} 97}
96 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"
110}
111
97need_php() 112need_php()
98{ 113{
99 DEPEND="${DEPEND} dev-lang/php" 114 DEPEND="${DEPEND} dev-lang/php"
100 RDEPEND="${RDEPEND} dev-lang/php" 115 RDEPEND="${RDEPEND} dev-lang/php"
101 PHP_SHARED_CAT="php" 116 PHP_SHARED_CAT="php"
116# 131#
117# this function will disappear when USE-based deps are supported by 132# this function will disappear when USE-based deps are supported by
118# Portage 133# Portage
119# 134#
120# $1 ... a list of SAPI USE flags (eg cli, cgi, apache2) 135# $1 ... a list of SAPI USE flags (eg cli, cgi, apache2)
121# 136#
122# returns if any one of the listed SAPIs has been installed 137# returns if any one of the listed SAPIs has been installed
123# dies if none of the listed SAPIs has been installed 138# dies if none of the listed SAPIs has been installed
124 139
125require_php_sapi_from() 140require_php_sapi_from()
126{ 141{
156# 171#
157# this function will disappear when USE-based deps are supported by 172# this function will disappear when USE-based deps are supported by
158# Portage 173# Portage
159# 174#
160# $1 ... a list of USE flags 175# $1 ... a list of USE flags
161# 176#
162# returns if all of the listed USE flags are set 177# returns if all of the listed USE flags are set
163# dies if any of the listed USE flags are not set 178# dies if any of the listed USE flags are not set
164 179
165require_php_with_use() 180require_php_with_use()
166{ 181{

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

  ViewVC Help
Powered by ViewVC 1.1.20