Bug 26226 - media-libs/t1lib-5.0.0-r1 installs some doc files in wrong directory
Bug#: 26226 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: usata@gentoo.org Reported By: T.Henderson@cs.ucl.ac.uk
Component: Ebuilds
URL: 
Summary: media-libs/t1lib-5.0.0-r1 installs some doc files in wrong directory
Keywords:  
Status Whiteboard: 
Opened: 2003-08-08 12:45 0000
Description:   Opened: 2003-08-08 12:45 0000
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.

------- Comment #1 From Tristan Henderson 2003-08-08 12:46:02 0000 -------
Created an attachment (id=15775) [details]
updated ebuild which correctly installs documentation files

------- Comment #2 From Mamoru KOMACHI (RETIRED) 2003-08-08 22:56:26 0000 -------
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 ;-) ).

------- Comment #3 From Mamoru KOMACHI (RETIRED) 2003-08-09 00:13:20 0000 -------
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.