I switched to thin manifests, so a bunch of them contained unnecessary files. This should solve that problem.
Changing the src_install() function seemed less invasive than patching stuff in this case.
Hopefully I did the ebuild for this properly.