ecasound uncoditionally depends on media-libs/audiofile, but links with it only if USE="audiofile" Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 19303 [details] A new ecasound .ebuild Here's a new .ebuild which fixes this by adding a conditional DEPEND for audiofile. This .ebuild also has a conditional depend on jack as posted in bug 31048.
only problem: audiofile is not a global use flag
Then you want to remove the 'use audiofile || ...' line if you're installing audiofile anyway...
The ebuilds in portage actually hade a 'if use audiofile' in the ebuilds for some reason... anyways, I added it to the local use flags.