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

Diff of /eclass/depend.apache.eclass

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

Revision 1.6 Revision 1.7
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License, v2 or later 2# Distributed under the terms of the GNU General Public License, v2 or later
3# Author Michael Tindal <urilith@gentoo.org> 3# Author Michael Tindal <urilith@gentoo.org>
4# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.6 2004/11/21 01:51:58 urilith Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.7 2005/01/13 04:36:58 vericgar Exp $
5ECLASS=depend.apache 5ECLASS=depend.apache
6INHERITED="$INHERITED $ECLASS" 6INHERITED="$INHERITED $ECLASS"
7 7
8###### 8######
9## Apache Common Variables 9## Apache Common Variables
17## APACHE_VERSION 17## APACHE_VERSION
18## 18##
19## Stores the version of apache we are going to be ebuilding. This variable is 19## Stores the version of apache we are going to be ebuilding. This variable is
20## set by the need_apache{|1|2} functions. 20## set by the need_apache{|1|2} functions.
21#### 21####
22APACHE_VERSION='2' 22APACHE_VERSION='1'
23 23
24#### 24####
25## APXS1, APXS2 25## APXS1, APXS2
26## 26##
27## Paths to the apxs tools 27## Paths to the apxs tools
84## Dependencies for apache 1.x and apache 2.x 84## Dependencies for apache 1.x and apache 2.x
85#### 85####
86APACHE1_DEPEND="=net-www/apache-1*" 86APACHE1_DEPEND="=net-www/apache-1*"
87APACHE2_DEPEND="=net-www/apache-2*" 87APACHE2_DEPEND="=net-www/apache-2*"
88 88
89
90####
91## APACHE_DEPEND
92##
93## Dependency magic based on useflags to use the right DEPEND
94####
95
96APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
97
89#### 98####
90## need_apache1 99## need_apache1
91## 100##
92## An ebuild calls this to get the dependency information 101## An ebuild calls this to get the dependency information
93## for apache-1.x. An ebuild should use this in order for 102## for apache-1.x. An ebuild should use this in order for
120 129
121need_apache() { 130need_apache() {
122 debug-print-function need_apache 131 debug-print-function need_apache
123 132
124 IUSE="${IUSE} apache2" 133 IUSE="${IUSE} apache2"
134 DEPEND="${DEPEND} ${APACHE_DEPEND}"
125 if useq apache2; then 135 if useq apache2; then
126 need_apache2 136 APACHE_VERSION='2'
127 else 137 else
128 need_apache1 138 APACHE_VERSION='1'
129 fi 139 fi
130} 140}
131

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20