Should be called in src_configure, not src_prepare, with EAPI=2 and later.
Created attachment 259642 [details] Build log
Fixed in cvs.