Instead of a huge number of use flags on the package, perhaps we should be using a USE_EXPAND variable like NETBEANS_MODULES instead similarly to APACHE2_MODULES.
This does not seem to be possible to implement in overlay as I did not find a way how to specify USE_EXPAND="NETBEANS_MODULES" just for overlay. So this can be solved once the ebuild is in the tree unless there is some solution I missed.
(In reply to comment #1) > This does not seem to be possible to implement in overlay as I did not find a > way how to specify USE_EXPAND="NETBEANS_MODULES" just for overlay. So this can > be solved once the ebuild is in the tree unless there is some solution I > missed. > USE_EXPAND variables can still be used like normal use flags so the support can be added in the overlay although Portage doesn't show it as expanded yet.
Well, I do not like the idea of having 'netbeans_modules_java' etc. displayed in the list of USE flags so I dropped the idea for now util it is either supported in overlays too or the ebuild is moved to the tree.
Implemented.