You can just run emerge on these packages. Note that as of today, the mail-filter/spamassassin in Portage is still version 3.2.1, which is a bit old. If you want the latest, you can find the latest dev version from Gentoo mail-filter category packages page. To install the masked mail-filter/spamassassin-3.2.5, put the following line in /etc/portage/package.keywords:
Check openspf.org for the latest development. For Postfix, http://www.openspf.org/Software currently lists two packages: python-postfix-policyd-spf and postfix-policyd-spf-perl. It says that python-postfix-policyd-spf is more feature.
Install python-postfix-policyd-spf:
Download the package, extract the tar ball, and follow the README in the source tree.