The check in gaim-2.0.0_beta3-r1 ebuild for "net-dns/avahi howl-compat" is done when USE=avahi, however the DEPEND and actual ./configure arguments passed are dependent of the bonjour USE flag. I don't want bonjour (and wouldn't get it, nor need avahi), yet the check is done and it bombs. The check should be done "if use bonjour && use avahi" (with proper bash syntax), not "if use avahi" to not check for howl-compat in avahi if avahi won't be even used (no bonjour plugin).
pkg_setup section adjusted in -r3