diff options
author | Repository QA checks <repo-qa-checks@gentoo.org> | 2018-01-18 22:12:58 +0000 |
---|---|---|
committer | Repository QA checks <repo-qa-checks@gentoo.org> | 2018-01-18 22:12:58 +0000 |
commit | 1d549a8622f55d9c925ed426297a3498f059cbc4 (patch) | |
tree | 384c215484797c318999a4e9c367d3522821f94f /eclass | |
parent | 2018-01-18 21:44:19 UTC (diff) | |
parent | media-video/ffmpeg: Revert chromium.patch change and add -r1 for 9999 (diff) | |
download | gentoo-1d549a8622f55d9c925ed426297a3498f059cbc4.tar.gz gentoo-1d549a8622f55d9c925ed426297a3498f059cbc4.tar.bz2 gentoo-1d549a8622f55d9c925ed426297a3498f059cbc4.zip |
Merge updates from master
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index b3ea3e40f30f..bf580cf4cfa9 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -22,6 +22,12 @@ # A string containing the USE flag to use for making this eclass optional # The recommended non-empty value is 'modules' +# @ECLASS-VARIABLE: MODULES_OPTIONAL_USE_IUSE_DEFAULT +# @DESCRIPTION: +# A boolean to control the IUSE default state for the MODULES_OPTIONAL_USE USE +# flag. Default value is unset (false). True represented by 1 or 'on', other +# values including unset treated as false. + # @ECLASS-VARIABLE: KERNEL_DIR # @DESCRIPTION: # A string containing the directory of the target kernel sources. The default value is @@ -129,7 +135,16 @@ inherit eutils linux-info multilib EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst src_install src_compile pkg_postrm -IUSE="kernel_linux ${MODULES_OPTIONAL_USE}" +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:+)}" DEPEND="${RDEPEND} |