/[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.7 Revision 1.8
1# Copyright 2004 Gentoo Foundation 1# Copyright 2004 Gentoo Technologies, Inc.
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 <mtindal@gmail.com>
4# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.7 2005/01/13 04:36:58 vericgar Exp $ 4# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.8 2005/01/21 00:00:53 trapni 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='1' 22APACHE_VERSION='2'
23 23
24#### 24####
25## APXS1, APXS2 25## APXS1, APXS2
26## 26##
27## Paths to the apxs tools 27## Paths to the apxs tools
80 80
81#### 81####
82## APACHE1_DEPEND, APACHE2_DEPEND 82## APACHE1_DEPEND, APACHE2_DEPEND
83## 83##
84## Dependencies for apache 1.x and apache 2.x 84## Dependencies for apache 1.x and apache 2.x
85##
86## apache2 must be at least version 2.0.52-r3, this is lowest version
87## containing our new overall changes -- trapni (Jan 21 2005)
88## apache1 must be at least version 1.3.33-r1, but how to
89## define the DEPEND here? (FIXME) -- trapni (Jan 21 2005)
85#### 90####
86APACHE1_DEPEND="=net-www/apache-1*" 91APACHE1_DEPEND="=net-www/apache-1*"
87APACHE2_DEPEND="=net-www/apache-2*" 92APACHE2_DEPEND=">=net-www/apache-2.0.52-r3"
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 93
98#### 94####
99## need_apache1 95## need_apache1
100## 96##
101## An ebuild calls this to get the dependency information 97## An ebuild calls this to get the dependency information
129 125
130need_apache() { 126need_apache() {
131 debug-print-function need_apache 127 debug-print-function need_apache
132 128
133 IUSE="${IUSE} apache2" 129 IUSE="${IUSE} apache2"
134 DEPEND="${DEPEND} ${APACHE_DEPEND}"
135 if useq apache2; then 130 if useq apache2; then
136 APACHE_VERSION='2' 131 need_apache2
137 else 132 else
138 APACHE_VERSION='1' 133 need_apache1
139 fi 134 fi
140} 135}
136

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

  ViewVC Help
Powered by ViewVC 1.1.20