Purge foreign ebuilds and update overlay metadata.