toolchain.eclass: update to EAPI=5 standards
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 30 Dec 2017 11:56:29 +0000 (06:56 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Mon, 1 Jan 2018 10:13:36 +0000 (05:13 -0500)
commit63b0d66c654dce7e4a75776357cac44379eba802
treeada005f79a1dc2c78bb1808152618448c1e946e9
parentbe9c46be54dc722a886d44f2076877f6f35c833f
toolchain.eclass: update to EAPI=5 standards

This eclass is inherited by ebuilds in sys-devel/{gcc,kgcc64,gcc-apple},
each which make use of different IUSE flags.   This causes problems with
`use X` constructions when X is not in the IUSE flags.  At EAPI=4 this
simply emitted a warning, while at EAPI=5 this is an error.  We update
the eclass to make use of use_if_iuse and similar constructions where
necessary to bring the eclass into compliance with EAPI=5.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
eclass/toolchain.eclass