According to PMS, DISTDIR is not legal in pkg_* phases: https://projects.gentoo.org/pms/6/pms.html#x1-11800011.1
Looks like this is fixed, since portage-2.3.5.ebuild.