/[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.42 Revision 1.43
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.42 2008/02/06 21:20:41 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.43 2008/02/06 23:45:13 hollow Exp $
4 4
5# @ECLASS: depend.apache.eclass 5# @ECLASS: depend.apache.eclass
6# @MAINTAINER: apache-devs@gentoo.org 6# @MAINTAINER: apache-devs@gentoo.org
7# @BLURB: Functions to allow ebuilds to depend on apache 7# @BLURB: Functions to allow ebuilds to depend on apache
8# @DESCRIPTION: 8# @DESCRIPTION:
210 DEPEND="${DEPEND} ${APACHE2_2_DEPEND}" 210 DEPEND="${DEPEND} ${APACHE2_2_DEPEND}"
211 RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}" 211 RDEPEND="${RDEPEND} ${APACHE2_2_DEPEND}"
212 _init_apache2 212 _init_apache2
213} 213}
214 214
215# @FUNCTION: check_apache_threads 215# @FUNCTION: has_apache_threads
216# @USAGE: [myflag] 216# @USAGE: [myflag]
217# @DESCRIPTION: 217# @DESCRIPTION:
218# An ebuild calls this to make sure thread-safety is enabled if apache has been 218# An ebuild calls this to make sure thread-safety is enabled if apache has been
219# built with a threaded MPM. If the myflag parameter is not given it defaults to 219# built with a threaded MPM. If the myflag parameter is not given it defaults to
220# threads. 220# threads.
221check_apache_threads() { 221has_apache_threads() {
222 debug-print-function $FUNCNAME $* 222 debug-print-function $FUNCNAME $*
223 223
224 if ! built_with_use www-servers/apache threads ; then 224 if ! built_with_use www-servers/apache threads ; then
225 return 225 return
226 fi 226 fi
233 eerror "of ${CATEGORY}/${PN} for use with www-servers/apache" 233 eerror "of ${CATEGORY}/${PN} for use with www-servers/apache"
234 die "Need missing USE flag '${myflag}'" 234 die "Need missing USE flag '${myflag}'"
235 fi 235 fi
236} 236}
237 237
238# @FUNCTION: check_apache_threads_in 238# @FUNCTION: has_apache_threads_in
239# @USAGE: <myforeign> [myflag] 239# @USAGE: <myforeign> [myflag]
240# @DESCRIPTION: 240# @DESCRIPTION:
241# An ebuild calls this to make sure thread-safety is enabled in a foreign 241# An ebuild calls this to make sure thread-safety is enabled in a foreign
242# package if apache has been built with a threaded MPM. If the myflag parameter 242# package if apache has been built with a threaded MPM. If the myflag parameter
243# is not given it defaults to threads. 243# is not given it defaults to threads.
244check_apache_threads_in() { 244has_apache_threads_in() {
245 debug-print-function $FUNCNAME $* 245 debug-print-function $FUNCNAME $*
246 246
247 if ! built_with_use www-servers/apache threads ; then 247 if ! built_with_use www-servers/apache threads ; then
248 return 248 return
249 fi 249 fi

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20