Please see https://wiki.gentoo.org/wiki/Project:Portage/Fixing_broken_portage for a recovery guide for a broken portage installation.