commit: eebd0149cd5390b23c0079c446adfab2a74f5a06
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 8 20:03:07 2016 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Dec 10 17:19:57 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eebd0149
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(-)
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass
index 26dd98f..ba08318 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