From 3037a56658887cb18b634a3df10b0986bf65bbac Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Thu, 8 Dec 2016 19:45:13 +0100 Subject: depend.apache.eclass: Add missing function want_apache2_4 --- eclass/depend.apache.eclass | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'eclass/depend.apache.eclass') diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index 881dfd5e7036..26dd98fd117d 100644 --- a/eclass/depend.apache.eclass +++ b/eclass/depend.apache.eclass @@ -238,6 +238,23 @@ want_apache2_2() { RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_2_DEPEND} )" } +# @FUNCTION: want_apache2_4 +# @USAGE: [myiuse] +# @DESCRIPTION: +# An ebuild calls this to get the dependency information for optional +# apache-2.4.x support. If the myiuse parameter is not given it defaults to +# apache2. +# An ebuild should additionally call depend.apache_pkg_setup() in pkg_setup() +# with the same myiuse parameter. +want_apache2_4() { + debug-print-function $FUNCNAME $* + + local myiuse=${1:-apache2} + IUSE="${IUSE} ${myiuse}" + DEPEND="${DEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )" + RDEPEND="${RDEPEND} ${myiuse}? ( ${APACHE2_4_DEPEND} )" +} + # @FUNCTION: need_apache # @DESCRIPTION: # An ebuild calls this to get the dependency information for apache. -- cgit v1.2.3-65-gdbad