diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-01 13:30:18 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-08 06:14:36 +0100 |
commit | 73cf8a05e74ea64479e2f0a4c1c13f03712e074e (patch) | |
tree | c5ccb2e6e8e29ffcde070edbeed67c9fcaf7ead1 /eclass/scons-utils.eclass | |
parent | scons-utils.eclass: escons, respect nonfatal in EAPI 6 (diff) | |
download | gentoo-73cf8a05e74ea64479e2f0a4c1c13f03712e074e.tar.gz gentoo-73cf8a05e74ea64479e2f0a4c1c13f03712e074e.tar.bz2 gentoo-73cf8a05e74ea64479e2f0a4c1c13f03712e074e.zip |
scons-utils.eclass: Deprecate myesconsargs, and kill it in EAPI 6
Diffstat (limited to 'eclass/scons-utils.eclass')
-rw-r--r-- | eclass/scons-utils.eclass | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/eclass/scons-utils.eclass b/eclass/scons-utils.eclass index fe9160a0ed96..fdc6af3db63a 100644 --- a/eclass/scons-utils.eclass +++ b/eclass/scons-utils.eclass @@ -58,6 +58,8 @@ # @VARIABLE: myesconsargs # @DEFAULT_UNSET # @DESCRIPTION: +# DEPRECATED, EAPI 0..5 ONLY: pass options to escons instead +# # List of package-specific options to pass to all SCons calls. Supposed to be # set in src_configure(). @@ -103,20 +105,23 @@ fi # -- public functions -- # @FUNCTION: escons -# @USAGE: [scons-arg] ... +# @USAGE: [<args>...] # @DESCRIPTION: -# Call scons, passing the supplied arguments, ${myesconsargs[@]}, -# filtered ${MAKEOPTS}, ${EXTRA_ESCONS}. Similar to emake. Like emake, -# this function does die on failure in EAPI 4. Respects nonfatal -# in EAPI 6 and newer. +# Call scons, passing the supplied arguments. Like emake, this function +# does die on failure in EAPI 4. Respects nonfatal in EAPI 6 and newer. escons() { local ret debug-print-function ${FUNCNAME} "${@}" + # Use myesconsargs in EAPI 5 and older + if [[ ${EAPI} == [012345] ]]; then + set -- "${myesconsargs[@]}" "${@}" + fi + # if SCONSOPTS are _unset_, use cleaned MAKEOPTS set -- scons ${SCONSOPTS-$(scons_clean_makeopts)} ${EXTRA_ESCONS} \ - "${myesconsargs[@]}" "${@}" + "${@}" echo "${@}" >&2 "${@}" ret=${?} |