Please see http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml for a recovery guide for a broken portage installation.