Subversion requires that swig be compiled with the perl use flag. If you already have swig installed without the perl use flag, you get a linking error in the perl bindings. I suppose the correct thing to do is to put a check for this in pkg_setup, so I've created a simple diff to that effect.
Created attachment 86806 [details, diff] ebuild patch
Irrelevant w/ >=subversion-1.3.2-r4 which is current stable; these old versions are going away. Closing as FIXED.
I'm seeing this problem with subversion-1.4.5: make: *** [/var/tmp/portage/dev-util/subversion-1.4.5/work/subversion-1.4.5/subversion/bindings/swig/perl/native/Makefile] Error 9 make: *** Waiting for unfinished jobs.... In file included from /var/tmp/portage/dev-util/subversion-1.4.5/work/subversion-1.4.5/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:34: ./subversion/svn_private_config.h:153:1: warning: "_" redefined In file included from /usr/lib/perl5/5.8.8/i686-linux/CORE/perl.h:37, from /var/tmp/portage/dev-util/subversion-1.4.5/work/subversion-1.4.5/subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:20: /usr/lib/perl5/5.8.8/i686-linux/CORE/config.h:3808:1: warning: this is the location of the previous definition * * ERROR: dev-util/subversion-1.4.5 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * subversion-1.4.5.ebuild, line 149: Called die * The specific snippet of code: * emake swig-pl || die "Compilation of ${PN} Perl bindings failed" * The die message: * Compilation of subversion Perl bindings failed