Created attachment 451979 [details, diff]
Add USE_EXPAND support for USB_DRIVERS
When bug 480664 was fixed, USE_EXPAND support was not added for the ups_drivers_* USE flags. This makes it annoying to build with a single driver, as most drivers are built by default, and currently the only way to turn them off is to add -ups_drivers_* for each one to package.use.
I know that touching USE_EXPAND requires permission from the -dev list, but I've gone ahead and attached a patch which implements adding UPS_DRIVERS to USE_EXPAND were that to be approved.
Pretty please, with sugar on top, add UPS_DRIVERS to USE_EXPAND.
Meanwhile, something like this in /etc/portage/package.use is ok:
sys-power/nut -ups_drivers_* ups_drivers_usbhid-ups
Having a proper USE_EXPAND for this would be great. It would also be great if none of the drivers were enabled by default (or at least would only enable the specified drivers if UPS_DRIVERS was set).