th0th696
In gentoolkit-0.3.0_rc10-r1 I have created a new utility for fixing that very problem.
for a list to screen. Drop the -p, --pretend option and it will create a file in your home directory for you to check and edit. It will anaylse your installed pkg database and figure out any differences from the global USE flag settings that need to be added to package.use. The file may not be perfect, the only bug I know of is that it does not handle multiple slotted pkgs well. You will have to look it over and fix any with the exact version info. (there will be 1 entry for each slot) The other option is to run it with the -e, --exact option to make each pkg be for only the specific version it finds. That will take care of the slotted pkg problem, but make upgrading more difficult to keep the flags correct.
After your satisfied with the new file, copy it to /etc/poprtage. and voila!!
You can also create a report on how USE flags, keywords are used on you system. The "rebuild use" feature is also handy for changing/experimenting different profiles. As it creates a new package.use file for you, you can maintain you system with the currently installed settings even though the profile USE flag settings may differ. The only exception to that would be masked USE flag changes which it does not do automatically.
I appreciate any feedback you have on how it works. I intend to add more modules to it and see if I can program some auto logic to take care of mutliple slotted pkgs.