apcupsd fails to complile documentation when dev-tex/latex2html-2008 is compiled without picture support. It seems it's the same problem described in bug 195801.
Steps to Reproduce:
1. compile USE="-gif -png" dev-tex/latex2html
2. compile USE="doc" sys-power/apcupsd
merging apcupsd dies while creating docs.
Either the docs should be made without pictures (preferrably), or should depend with the proper use flags.
adding png or gif use flag to latex2html fixes the problem.
I am using the experimental 2008.0/server profile.
Please try with current 3.14.7, doc generation has changed and this should no longer be a concern.
Confirming, tested 3.14.7, "doc" useflag gone, and package provides documentation properly, even without picture support in latex2html.