diff options
author | 2016-12-08 21:03:07 +0100 | |
---|---|---|
committer | 2016-12-08 21:03:07 +0100 | |
commit | 2a7c950e6aed407ef3b46b5dcedfaf87b03a35f2 (patch) | |
tree | dda63000ba00dd4f4f5c5ff8473db42c4a081c56 /eclass | |
parent | depend.apache.eclass: For EAPI=6, move initialization of APACHE_BASEDIR and A... (diff) | |
download | dilfridge-2a7c950e6aed407ef3b46b5dcedfaf87b03a35f2.tar.gz dilfridge-2a7c950e6aed407ef3b46b5dcedfaf87b03a35f2.tar.bz2 dilfridge-2a7c950e6aed407ef3b46b5dcedfaf87b03a35f2.zip |
depend.apache.eclass: Restructure pkg_setup so in_iuse is used from EAPI=6 on
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/depend.apache.eclass | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass index 8582396..2d7b062 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 |