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.

BUG=chromium:340036
TEST=`./pre-upload_unittest.py` passes
TEST=uploaded a few CLs with bad EAPIs & good EAPIs and checked behavior

Change-Id: I9132f21b8ee4cab1a7acdf7855a9505b7307649e
Reviewed-on: https://chromium-review.googlesource.com/184622
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2 files changed