1 |
hollow 08/02/03 14:12:44 |
2 |
|
3 |
Modified: depend.apache.eclass |
4 |
Log: |
5 |
do not hardcode USE flag for optional apache support |
6 |
|
7 |
Revision Changes Path |
8 |
1.39 eclass/depend.apache.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?rev=1.39&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?rev=1.39&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/depend.apache.eclass?r1=1.38&r2=1.39 |
13 |
|
14 |
Index: depend.apache.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v |
17 |
retrieving revision 1.38 |
18 |
retrieving revision 1.39 |
19 |
diff -u -r1.38 -r1.39 |
20 |
--- depend.apache.eclass 3 Feb 2008 11:51:36 -0000 1.38 |
21 |
+++ depend.apache.eclass 3 Feb 2008 14:12:44 -0000 1.39 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2007 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.38 2008/02/03 11:51:36 hollow Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/depend.apache.eclass,v 1.39 2008/02/03 14:12:44 hollow Exp $ |
27 |
|
28 |
# @ECLASS: depend.apache.eclass |
29 |
# @MAINTAINER: apache-devs@g.o |
30 |
@@ -69,21 +69,6 @@ |
31 |
# Dependencies for Apache 2.2.x |
32 |
APACHE2_2_DEPEND="=www-servers/apache-2.2*" |
33 |
|
34 |
-# @ECLASS-VARIABLE: WANT_APACHE_DEPEND |
35 |
-# @DESCRIPTION: |
36 |
-# Dependency magic based on useflag to use the right DEPEND |
37 |
-WANT_APACHE_DEPEND="apache2? ( ${APACHE_DEPEND} )" |
38 |
- |
39 |
-# @ECLASS-VARIABLE: WANT_APACHE2_DEPEND |
40 |
-# @DESCRIPTION: |
41 |
-# Dependency magic based on useflag to use the right DEPEND |
42 |
-WANT_APACHE2_DEPEND="apache2? ( ${APACHE2_DEPEND} )" |
43 |
- |
44 |
-# @ECLASS-VARIABLE: WANT_APACHE2_2_DEPEND |
45 |
-# @DESCRIPTION: |
46 |
-# Dependency magic based on useflag to use the right DEPEND |
47 |
-WANT_APACHE2_2_DEPEND="apache2? ( ${APACHE2_2_DEPEND} )" |
48 |
- |
49 |
# ============================================================================== |
50 |
# INTERNAL FUNCTIONS |
51 |
# ============================================================================== |
52 |
@@ -122,11 +107,12 @@ |
53 |
want_apache2() { |
54 |
debug-print-function $FUNCNAME $* |
55 |
|
56 |
- IUSE="${IUSE} apache2" |
57 |
- DEPEND="${DEPEND} ${WANT_APACHE2_DEPEND}" |
58 |
- RDEPEND="${RDEPEND} ${WANT_APACHE2_DEPEND}" |
59 |
+ local myiuse=${1:-apache2} |
60 |
+ IUSE="${IUSE} ${myiuse}" |
61 |
+ DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_DEPEND} )" |
62 |
+ RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_DEPEND} )" |
63 |
|
64 |
- if use apache2 ; then |
65 |
+ if use ${myiuse} ; then |
66 |
_init_apache2 |
67 |
else |
68 |
_init_no_apache |
69 |
@@ -140,11 +126,12 @@ |
70 |
want_apache2_2() { |
71 |
debug-print-function $FUNCNAME $* |
72 |
|
73 |
- IUSE="${IUSE} apache2" |
74 |
- DEPEND="${DEPEND} ${WANT_APACHE2_2_DEPEND}" |
75 |
- RDEPEND="${RDEPEND} ${WANT_APACHE2_2_DEPEND}" |
76 |
+ local myiuse=${1:-apache2} |
77 |
+ IUSE="${IUSE} ${myiuse}" |
78 |
+ DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )" |
79 |
+ RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )" |
80 |
|
81 |
- if use apache2 ; then |
82 |
+ if use ${myiuse} ; then |
83 |
_init_apache2 |
84 |
else |
85 |
_init_no_apache |
86 |
@@ -156,7 +143,8 @@ |
87 |
# An ebuild calls this to get the dependency information for optional apache |
88 |
# support. |
89 |
want_apache() { |
90 |
- want_apache2 |
91 |
+ debug-print-function $FUNCNAME $* |
92 |
+ want_apache2 "$@" |
93 |
} |
94 |
|
95 |
# @FUNCTION: need_apache2 |
96 |
@@ -190,5 +178,6 @@ |
97 |
# to happen seamlessly. All an ebuild needs to do is include the line |
98 |
# need_apache somewhere. |
99 |
need_apache() { |
100 |
+ debug-print-function $FUNCNAME $* |
101 |
need_apache2 |
102 |
} |
103 |
|
104 |
|
105 |
|
106 |
-- |
107 |
gentoo-commits@l.g.o mailing list |