http://forums.gentoo.org/viewtopic-t-269815-start-0.html should work
except it's
emerge net-misc/tor
emerge net-proxy/privoxy
in /etc/privoxy/config line 1384 feels better to me, but as stated in that post anywhere in the file will do.
And when you configure your browser use port 9050 instead ...