A USE flag "webgui" would be nice. This would have the dependency for dev-lang/php.
USE=webinterface is in 3.0.0