media-libs/t1lib-5.0.0-r1 installs some documentation in /usr/share/doc/t1lib-5.0.0-r1 (correct) and some in /usr/share/doc/t1lib-5.0.0 (incorrect). This is because the ebuild installs to /usr/share/doc/${P} instead of /usr/share/doc/${PF}. Please find an ebuild attached which fixes this. It also only installs the PDF and dvi files if the USE flag "doc" is set, since I believe that this is the purpose of the "doc" flag. It might be preferable to use "dodoc" to install the PDF files, since this automatically determines the appropriate directory for installation. But this will gzip the files, which might be why the ebuild author uses "dodoc" for some documentation files, but "doins" for others. In any case, I have kept the use of "doins" in the attached ebuild. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 15775 [details] updated ebuild which correctly installs documentation files
Yes, it should be /usr/share/doc/${PF} instead of /usr/share/doc/${P}. I'll fix it soon. Also, I have the opinion about dodoc, and it would be a nice idea to create another bug for it (I'll use doins for the meantime ;-) ).
I added doc to IUSE flag since your patch doesn't have it. Please make sure you list all the USE flag in your ebuild next time (cf. emerge -pv t1lib tells you what USE flags are being set). Thanks for the contribution.