Bug 40617 - emerge gocr failes because fig2dev is called wich doesn't exist.
Bug#: 40617 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: text-markup@gentoo.org Reported By: mlspamcb@noci.xs4all.nl
Component: Ebuilds
URL: 
Summary: emerge gocr failes because fig2dev is called wich doesn't exist.
Keywords:  
Status Whiteboard: 
Opened: 2004-02-06 10:02 0000
Description:   Opened: 2004-02-06 10:02 0000
During the make of the examples in gocr it is assumed that the transfig
package is installed. At least fig2dev is called.

Appearantly the DEPEND for transfig is missing.

Reproducible: Always
Steps to Reproduce:
1.emerge gocr on a system without transfig, that does have tetex.
2.
3.
Actual Results:  
The build failes. 

Expected Results:  
qmerge gocr.

------- Comment #1 From Markus Nigbur (RETIRED) 2004-02-06 15:41:41 0000 -------
Hm. With -doc it doesn't build the examples and therefor doesn't need transfig,
but even with doc in USE it doesn't seem ot build the examples.

install: cannot stat
`/var/tmp/portage/gocr-0.37/work/gocr-0.37/examples/*.pcx': No such file or
directory
/usr/lib/portage/bin/dodoc: doc/{examples,unicode}.txt does not exist.

Mike?

------- Comment #2 From Mike Gardiner (RETIRED) 2004-02-10 06:32:06 0000 -------
Nico,

There's no way you should get to the situation where you don't have transfig installed, but you're emerging gocr with USE="doc", as transfig is a dependency of gocr if USE="doc" is specified. Besides this, in the previous (erroneus) ebuild, 'make examples' was never called! Were you compiling by hand perhaps? Either way this is invalid, sorry.

Marcus is right, and I've fixed the ebuild so that
o  if USE="doc" then append 'examples' to mymakes along with 'doc'
o  {foo,bar} is invalid for dodoc (it doesnt do the shell expansion)

Thanks for that, should be fixed.