diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2016-12-08 19:45:13 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2016-12-08 19:45:13 +0100 |
commit | c214ac51e54fa547fb27d39803e79a8f212032a9 (patch) | |
tree | 59e2e618fc9a55467cd0faca9dafa36002f962ea /eclass | |
parent | depend.apache.eclass: Disallow EAPI=1 (diff) | |
download | dilfridge-c214ac51e54fa547fb27d39803e79a8f212032a9.tar.gz dilfridge-c214ac51e54fa547fb27d39803e79a8f212032a9.tar.bz2 dilfridge-c214ac51e54fa547fb27d39803e79a8f212032a9.zip |
depend.apache.eclass: Add missing function want_apache2_4
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/depend.apache.eclass | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index e858a85..a51ec55 100644 --- a/eclass/depend.apache.eclass +++ b/eclass/depend.apache.eclass @@ -225,6 +225,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. |