ebuild for snort 1.8.7 doesn't build against ucd-snmp at all, even though SNMP support is available in snort. Imho ucd-snmp should be compiled against iff already installed.
snmp support is supported in the 1.9.0 ebuild.