diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2018-01-18 13:59:56 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2018-01-18 14:00:28 -0800 |
commit | a4af96cc8318a53adc3bcd2dc1e3e0618032545f (patch) | |
tree | 3628264a2a2c2748c4a9b1bc6dc012b0cee9aa5c /eclass | |
parent | app-portage/repoman: stable 2.3.6 for hppa/sparc (diff) | |
download | gentoo-a4af96cc8318a53adc3bcd2dc1e3e0618032545f.tar.gz gentoo-a4af96cc8318a53adc3bcd2dc1e3e0618032545f.tar.bz2 gentoo-a4af96cc8318a53adc3bcd2dc1e3e0618032545f.zip |
eclass/linux-mod.eclass: only need EAPI>0 if using IUSE default.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index e310835bf77a..bf580cf4cfa9 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -135,15 +135,15 @@ inherit eutils linux-info multilib EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst src_install src_compile pkg_postrm -case ${EAPI:-0} in - 0) die "EAPI=${EAPI} is not supported due to lack of IUSE defaults" ;; -esac - case ${MODULES_OPTIONAL_USE_IUSE_DEFAULT:-n} in [nNfF]*|[oO][fF]*|0|-) _modules_optional_use_iuse_default='' ;; *) _modules_optional_use_iuse_default='+' ;; esac +[[ -n "${_modules_optional_use_iuse_default}" ]] && case ${EAPI:-0} in + 0) die "EAPI=${EAPI} is not supported with MODULES_OPTIONAL_USE_IUSE_DEFAULT due to lack of IUSE defaults" ;; +esac + IUSE="kernel_linux ${MODULES_OPTIONAL_USE:+${_modules_optional_use_iuse_default}}${MODULES_OPTIONAL_USE}" SLOT="0" RDEPEND="${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (} kernel_linux? ( virtual/modutils ) ${MODULES_OPTIONAL_USE:+)}" |