You'll first need to download and install CUPS, the common unix printing system. It is by far the easiest way to go about printing on Linux. Then you'll want ghostscript as well.
Then make sure that CUPS starts up in your daemon array at boot (usually in /etc/rc.d/ you'd type "/etc/init.d/cups start"). I don't know Gentoo, so I am assuming you know how to get those installed.
After that is done, I think this guide will help you just fine (I typed the above to eliminate archlinux specific information in the following howto):
http://wiki2.archlinux.org/index.php/CUPS%20setup
Hope that helps.