As a summer project I wanted to build a simple editor for /etc/portage/package.use but I'm not sure whether it's worth the effort.
Are per-application use-flags stored in any other place than the individual ebuilds? (it would take ages to read all ebuilds and assemble a database, and it would have to be kept up to date, although that would be easy given the first step, with timestamps)
What I was thinking of was just a list ordered by the typical portage categories and then per-application (maybe even per-version if that is supported in package.use, haven't checked yet) The individual packages would have check marks to enable and disable the different use flags
This would write a package.use with entries for ALL applications (although this has to be thought over as I'm not sure what the performance impact would be, and whether it would be desirable, if it is too slow, only packages diverging from the default useflags would be written to file)
So.. does portage store per-application useflags somewhere central or is everything on an ebuild basis? (of course, not being centralised would not prevent my writing the app, just significantly complicate it!)
PS: I know about /usr/portage/use.local.desc, but it obviously lists only a fraction of useflags and it does (obviously) not list global flags that apply to certain packages.


