toolchain.eclass: avoid in_iuse in global scope
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 27 Feb 2019 23:16:52 +0000 (23:16 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 27 Feb 2019 23:21:13 +0000 (23:21 +0000)
commitba23572ded4dbb8955f7638f0314b2522c9d2f4c
treec8b648e03a35f2069583daded66544a99ce653e9
parent48dfbcc541e36b38d9a8c72ab052c178dd5c4f56
toolchain.eclass: avoid in_iuse in global scope

Another tiny step towards EAPI=6+ support.

'in_iuse' helper is not allowed to query IUSE (even though we set
all values locally in the eclass).

Use 'TC_FEATURES' array and 'tc_has_feature' helper for equivalent
purpose.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass