In the current ebuild, the epub USE flag is passed to configure as $(use_with epub webkit) That's wrong, it should be $(use_enable epub) because configure expects --enable-epub or --disable-epub, not --with-webkit or --without-webkit, for controlling epub and linkage against webkit.
Resolved in b27dee7889d40e62bc76bff077f152f5990eceac. Thanks.