/[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.4 Revision 1.5
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.4 2004/07/24 08:47:01 stuart Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.5 2004/07/24 08:50:23 robbat2 Exp $
4 4
5ECLASS="depend.apache" 5ECLASS="depend.apache"
6INHERITED="$INHERITED $ECLASS" 6INHERITED="$INHERITED $ECLASS"
7IUSE="apache apache2" 7IUSE="apache apache2"
8 8
9# remember to set MY_SLOT if you want to include something like ${PVR} in 9# remember to set MY_SLOT if you want to include something like ${PVR} in
10# the slot information 10# the slot information
11# SLOT="apache? ( 1{$MY_SLOT} ) apache2? ( 2{$MY_SLOT} ) !apache1? ( !apache2? ( 2${MY_SLOT} ) )" 11# SLOT="apache? ( 1{$MY_SLOT} ) apache2? ( 2{$MY_SLOT} ) !apache1? ( !apache2? ( 2${MY_SLOT} ) )"
12 12
13DEPEND="$DEPEND apache? ( =net-www/apache-1* ) apache2? ( =net-www/apache-2* ) 13DEPEND="$DEPEND apache? ( =net-www/apache-1* ) apache2? ( =net-www/apache-2* )
14 !apache? ( !apache2? ( net-www/apache-2* ) )" 14 !apache? ( !apache2? ( =net-www/apache-2* ) )"
15 15
16# call this function to work out which version of the apache web server 16# call this function to work out which version of the apache web server
17# your ebuild should be installing itself to use 17# your ebuild should be installing itself to use
18 18
19detect_apache_useflags() { 19detect_apache_useflags() {
34 HAS_APACHE_ANY= 34 HAS_APACHE_ANY=
35 35
36 has_version '=net-www/apache-1*' && HAS_APACHE1=1 && HAS_APACHE_ANY=1 36 has_version '=net-www/apache-1*' && HAS_APACHE1=1 && HAS_APACHE_ANY=1
37 has_version '=net-www/apache-2*' && HAS_APACHE2=1 && HAS_APACHE_ANY=1 37 has_version '=net-www/apache-2*' && HAS_APACHE2=1 && HAS_APACHE_ANY=1
38 38
39 [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" && HAVE_APACHE_MULTIPLE=1 39 [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" ] && HAVE_APACHE_MULTIPLE=1
40} 40}
41 41
42# call this function from your pkg_setup 42# call this function from your pkg_setup
43 43
44depend_apache() { 44depend_apache() {

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

  ViewVC Help
Powered by ViewVC 1.1.20