1 |
--- |
2 |
eclass/depend.apache.eclass | 17 +++++++++++++++++ |
3 |
1 file changed, 17 insertions(+) |
4 |
|
5 |
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass |
6 |
index e858a85..a51ec55 100644 |
7 |
--- a/eclass/depend.apache.eclass |
8 |
+++ b/eclass/depend.apache.eclass |
9 |
@@ -225,6 +225,23 @@ want_apache2_2() { |
10 |
RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )" |
11 |
} |
12 |
|
13 |
+# @FUNCTION: want_apache2_4 |
14 |
+# @USAGE: [myiuse] |
15 |
+# @DESCRIPTION: |
16 |
+# An ebuild calls this to get the dependency information for optional |
17 |
+# apache-2.4.x support. If the myiuse parameter is not given it defaults to |
18 |
+# apache2. |
19 |
+# An ebuild should additionally call depend.apache_pkg_setup() in pkg_setup() |
20 |
+# with the same myiuse parameter. |
21 |
+want_apache2_4() { |
22 |
+ debug-print-function $FUNCNAME $* |
23 |
+ |
24 |
+ local myiuse=${1:-apache2} |
25 |
+ IUSE="${IUSE} ${myiuse}" |
26 |
+ DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )" |
27 |
+ RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )" |
28 |
+} |
29 |
+ |
30 |
# @FUNCTION: need_apache |
31 |
# @DESCRIPTION: |
32 |
# An ebuild calls this to get the dependency information for apache. |
33 |
-- |
34 |
2.11.0.rc2 |