diff options
author | Michael Stewart <vericgar@gentoo.org> | 2005-01-13 04:36:58 +0000 |
---|---|---|
committer | Michael Stewart <vericgar@gentoo.org> | 2005-01-13 04:36:58 +0000 |
commit | 1d8c217067a12df53f8f0d4716c3bf5c3151e8dc (patch) | |
tree | fff166b49271a4ba47ec906a6d27f6246dd6ae90 /eclass/depend.apache.eclass | |
parent | Version bump. (diff) | |
download | historical-1d8c217067a12df53f8f0d4716c3bf5c3151e8dc.tar.gz historical-1d8c217067a12df53f8f0d4716c3bf5c3151e8dc.tar.bz2 historical-1d8c217067a12df53f8f0d4716c3bf5c3151e8dc.zip |
Fixes to depend.apache eclass so that it doesn't break the cache
Diffstat (limited to 'eclass/depend.apache.eclass')
-rw-r--r-- | eclass/depend.apache.eclass | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index 75152969ad7d..5df0a02dd408 100644 --- a/eclass/depend.apache.eclass +++ b/eclass/depend.apache.eclass @@ -1,7 +1,7 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # Author Michael Tindal <urilith@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.6 2004/11/21 01:51:58 urilith Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.7 2005/01/13 04:36:58 vericgar Exp $ ECLASS=depend.apache INHERITED="$INHERITED $ECLASS" @@ -19,7 +19,7 @@ INHERITED="$INHERITED $ECLASS" ## Stores the version of apache we are going to be ebuilding. This variable is ## set by the need_apache{|1|2} functions. #### -APACHE_VERSION='2' +APACHE_VERSION='1' #### ## APXS1, APXS2 @@ -86,6 +86,15 @@ APACHE2_MODULESDIR="${APACHE2_BASEDIR}/modules" APACHE1_DEPEND="=net-www/apache-1*" APACHE2_DEPEND="=net-www/apache-2*" + +#### +## APACHE_DEPEND +## +## Dependency magic based on useflags to use the right DEPEND +#### + +APACHE_DEPEND="apache2? ( ${APACHE2_DEPEND} ) !apache2? ( ${APACHE1_DEPEND} )" + #### ## need_apache1 ## @@ -122,10 +131,10 @@ need_apache() { debug-print-function need_apache IUSE="${IUSE} apache2" + DEPEND="${DEPEND} ${APACHE_DEPEND}" if useq apache2; then - need_apache2 + APACHE_VERSION='2' else - need_apache1 + APACHE_VERSION='1' fi } - |