The ebuild is calling only distutils-r1_src_compile. I have no clue what it's trying to achieve but the eclass isn't designed to be used like that.