python-single-r1.eclass: Introduce PYTHON_{SINGLE,MULTI}_USEDEP API
authorMichał Górny <mgorny@gentoo.org>
Fri, 29 Nov 2019 12:13:25 +0000 (13:13 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 7 Dec 2019 14:36:30 +0000 (15:36 +0100)
commit4685a5f4ed0eb025a4fdb5d5b913357ef077b728
tree2cba063c2dea6233d1d7999e13f410866ad40d7e
parentc6dbe442785be83968c942aa7608bb17fccba555
python-single-r1.eclass: Introduce PYTHON_{SINGLE,MULTI}_USEDEP API

Introduce a new API that replaces PYTHON_USEDEP with
PYTHON_SINGLE_USEDEP variable and PYTHON_MULTI_USEDEP placeholder.
The former can be used directly (or via python_gen_cond_dep) when
depending on other python-single-r1 packages, the latter can be used
via python_gen_cond_dep when depending on python-r1 packages.

Long term, the new API will enable us to remove redundant PYTHON_TARGETS
flags from python-single-r1 packages.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/python-single-r1.eclass