From eebd0149cd5390b23c0079c446adfab2a74f5a06 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Thu, 8 Dec 2016 21:03:07 +0100 Subject: depend.apache.eclass: Restructure pkg_setup so in_iuse is used from EAPI=6 on --- eclass/depend.apache.eclass | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'eclass') diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index 26dd98fd117d..ba08318c9db1 100644 --- a/eclass/depend.apache.eclass +++ b/eclass/depend.apache.eclass @@ -176,21 +176,28 @@ depend.apache_pkg_setup() { fi local myiuse=${1:-apache2} - if has ${myiuse} ${IUSE}; then - if use ${myiuse}; then - case ${EAPI:-0} in - 0|2|3|4|5) + + case ${EAPI:-0} in + 0|2|3|4|5) + if has ${myiuse} ${IUSE}; then + if use ${myiuse}; then _init_apache2 - ;; - *) + else + _init_no_apache + fi + fi + ;; + *) + if in_iuse ${myiuse}; then + if use ${myiuse}; then _init_apache2 _init_apache2_late - ;; - esac - else - _init_no_apache - fi - fi + else + _init_no_apache + fi + fi + ;; + esac } # @FUNCTION: want_apache -- cgit v1.2.3-65-gdbad