Please port to newer EAPI or cleanup if possible.
Cleaned in commits: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1da4f85ff1485690352dda9df49cb7e09bbcb3f7 https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d66913884e3fbd80cab82fa565621e90dfb3dea3