/[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.28 Revision 1.29
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.apache.eclass,v 1.28 2006/11/26 21:25:28 vericgar Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.29 2007/01/01 22:27:01 swegener Exp $
4 4
5inherit multilib 5inherit multilib
6 6
7# This eclass handles depending on apache in a sane way and providing 7# This eclass handles depending on apache in a sane way and providing
8# information about where certain interfaces are located. 8# information about where certain interfaces are located.
99 99
100#### 100####
101## NEED_APACHE_DEPEND 101## NEED_APACHE_DEPEND
102## 102##
103## Dependency magic based on useflags to use the right DEPEND 103## Dependency magic based on useflags to use the right DEPEND
104## If you change this, please check the DEPENDS in need_apache() 104## If you change this, please check the DEPENDS in need_apache()
105#### 105####
106 106
107NEED_APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )" 107NEED_APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
108WANT_APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( apache? ( ${APACHE1_DEPEND} ) )" 108WANT_APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( apache? ( ${APACHE1_DEPEND} ) )"
109 109
255 fi 255 fi
256 256
257 if [[ "${supports20}" == "yes" && "${supports22}" == "yes" ]]; then 257 if [[ "${supports20}" == "yes" && "${supports22}" == "yes" ]]; then
258 supports2x=yes; 258 supports2x=yes;
259 fi 259 fi
260 260
261 debug-print "supports13: ${supports13}" 261 debug-print "supports13: ${supports13}"
262 debug-print "supports20: ${supports20}" 262 debug-print "supports20: ${supports20}"
263 debug-print "supports22: ${supports22}" 263 debug-print "supports22: ${supports22}"
264 debug-print "supports2x: ${supports2x}" 264 debug-print "supports2x: ${supports2x}"
265 265
266 if [ "${supports13}" != "yes" ]; then 266 if [ "${supports13}" != "yes" ]; then
267 if [ "${supports2x}" == "yes" ]; then 267 if [ "${supports2x}" == "yes" ]; then
268 need_apache2 268 need_apache2
269 elif [ "${supports20}" == "yes" ]; then 269 elif [ "${supports20}" == "yes" ]; then
270 need_apache2_0 270 need_apache2_0
271 elif [ "${supports22}" == "yes" ]; then 271 elif [ "${supports22}" == "yes" ]; then
272 need_apache2_2 272 need_apache2_2
273 fi 273 fi
274 elif [ "${supports13}" == "yes" ]; then 274 elif [ "${supports13}" == "yes" ]; then
275 if [[ "${supports2x}" == "yes" || 275 if [[ "${supports2x}" == "yes" ||
276 "${supports20}" == "yes" || 276 "${supports20}" == "yes" ||
277 "${supports22}" == "yes" ]]; then 277 "${supports22}" == "yes" ]]; then
278 278
279 # we support both apache-1.3 and apache-2.*, set up USE-flag based 279 # we support both apache-1.3 and apache-2.*, set up USE-flag based
280 # DEPEND and RDEPEND, determined by which apache-2.x we support 280 # DEPEND and RDEPEND, determined by which apache-2.x we support
286 NEED_APACHE_DEPEND="apache2? ( ${APACHE2_0_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )" 286 NEED_APACHE_DEPEND="apache2? ( ${APACHE2_0_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
287 elif [ "${supports22}" == "yes" ]; then 287 elif [ "${supports22}" == "yes" ]; then
288 NEED_APACHE_DEPEND="apache2? ( ${APACHE2_2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )" 288 NEED_APACHE_DEPEND="apache2? ( ${APACHE2_2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )"
289 fi 289 fi
290 fi 290 fi
291 291
292 DEPEND="${DEPEND} ${NEED_APACHE_DEPEND}" 292 DEPEND="${DEPEND} ${NEED_APACHE_DEPEND}"
293 RDEPEND="${RDEPEND} ${NEED_APACHE_DEPEND}" 293 RDEPEND="${RDEPEND} ${NEED_APACHE_DEPEND}"
294 294
295 if useq apache2; then 295 if useq apache2; then
296 uses_apache2 296 uses_apache2
297 else 297 else
298 uses_apache1 298 uses_apache1
299 fi 299 fi

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20