When matplotlib is emerged with doc USE flag, it cannot build the pdf documentation (through latex). The HTML documentation seems to be built just fine. Build procedure errs out asking for user input with: LaTeX Warning: File `var/tmp/portage/portage/dev-python/matplotlib-0.98.5.2-r3/ work/matplotlib-0.98.5.2/doc/build/plot_directive/pyplots/pyplot_simple.pdf' no t found on input line 397. ! Package graphics Error: File `var/tmp/portage/portage/dev-python/matplotlib-0 .98.5.2-r3/work/matplotlib-0.98.5.2/doc/build/plot_directive/pyplots/pyplot_sim ple.pdf' not found. See the graphics package documentation for explanation. Type H <return> for immediate help. ... l.397 ...plot_directive/pyplots/pyplot_simple.pdf} ? Reproducible: Always Steps to Reproduce: 1. emerge matplotlib-0.98.5.2-r3 with doc USE flag.
Downgrading to dev-python/sphinx-0.5.2 allows pdf documentation to be built successfully.
Should be fixed in matplotlib-0.98.5.3.