It seems x11-misc/shared-mime-info-0.21-r1 depends on XML::Parser, according to this error during compilation:
>>> Emerging (8 of 76) x11-misc/shared-mime-info-0.21-r1 to /
checking for perl... /usr/bin/perl
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
The ebuild doesn't specify this dependancy though. Perhaps it's a good idea to add this dependancy in the ebuild.
By the way, I actually did have XML-Parser-2.34 installed. Upgrading the package to XML-Parser-2.34-r1 fixed the problem. So maybe the dependancy should be on ">=dev-perl/XML-Parser-2.34-r1" ? (maybe something else caused configure not to find the module though; since it's solved now, it's difficult to reproduce te issue)
*** This bug has been marked as a duplicate of bug 128069 ***
Not this dup. Sorry for mess.
*** This bug has been marked as a duplicate of bug 41124 ***