summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-29 11:20:33 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-07 15:36:25 +0100
commit26467bacc4d873a6d9ad43ef61e8adc3927c6090 (patch)
tree5e1f0bc1792df68e3670288505fab0536414df7b /eclass/common-lisp-3.eclass
parentgit-r3.eclass: Explicitly disable password prompts (diff)
downloadgentoo-26467bacc4d873a6d9ad43ef61e8adc3927c6090.tar.gz
gentoo-26467bacc4d873a6d9ad43ef61e8adc3927c6090.tar.bz2
gentoo-26467bacc4d873a6d9ad43ef61e8adc3927c6090.zip
python*-r1.eclass: Deprecate python_gen_usedep
Deprecate python_gen_usedep() in favor of python_gen_cond_dep(). The latter is a newer API that generates full USE-conditional blocks rather than pure USE-dependency strings. As such, it can replace all uses of the former, and is safer to use in general. In particular: dev-python/foo[$(python_gen_usedep -2)] dev-python/bar[$(python_gen_usedep -2)] installs the dependency (with no implementation match enforced) even if there's no python2 implementation enabled, while: $(python_gen_cond_dep ' dev-python/foo[${PYTHON_USEDEP}] dev-python/bar[${PYTHON_USEDEP}] ' -2) installs it only if there's at least one implementation requiring it. Since the functions are used in global scope only, a deprecation warning is emitted only once, during the sourcing for pkg_setup phase. This avoids having it output during metadata cache regeneration. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/common-lisp-3.eclass')
0 files changed, 0 insertions, 0 deletions