If compiling sys-power/apcupsd without cgi, there is is no need for installing webapp-config (inherting webapp in the ebuild), IMHO of course. The problem is that conditional inheritance is illegal. Maybe someone has a better idea. Reproducible: Always
As you've noted, not possible.