For dvi, ps, and pdf files, latex-package_src_doinstall() creates a symlink: dosym /usr/share/doc/${PF}/$(basename ${i}) ${TEXMF}/doc/latex/${PN}/${i} However, Portage will usually compress the link target in usr/share/doc/${PF}/ which breaks the link. Calling docompress -x on the link target would avoid the problem. It is only available in EAPI 4 and later, however.
if you have any fix, feel free to commit it; the eclass is old and barely maintained :/ the point of this is to have texdoc to work: 'texdoc foo' should open the documentation of 'foo', be it a .dvi, .pdf or what else
I've committed a fix for EAPI 4 and later. Ebuilds in previous EAPIs where this is an issue (portage will output a QA warning) should be upgraded to a newer EAPI.