check EAPI of custom ebuilds

We want people to use EAPI=4 or newer, so start enforcing it in the
upload hook rather than trying to catch it at review time.

TEST=`./` passes
TEST=uploaded a few CLs with bad EAPIs & good EAPIs and checked behavior

Change-Id: I9132f21b8ee4cab1a7acdf7855a9505b7307649e
Reviewed-by: David James <>
Tested-by: Mike Frysinger <>
2 files changed