webapp-config uses full path names in its exported variables. We need to squash that in prefix. Submitting patch now...
Created attachment 161586 [details, diff] patch for trac-0.11 ebuild
Thanks, committed. Apparently, I didn't enable those USE flags when importing to prefix.