Created attachment 353028 [details]
sphinxbase can use four audio backend: pulseaudio, jack, alsa or oss
The build system consider this order as the prefered audio backend is the first listed.
But one may need sphinxbase with his own preferred audio backend.
Created attachment 353034 [details, diff]
Turned ebuild into diff; added die to sed calls, rewrote rc_prepare slightly with if calls to ensure the proper die and return functionality
Probably the other dependencies need to be added to the dependencies variables.
Created attachment 353528 [details, diff]
I tested the patch (just was missing a semicolon), it builds fine and sphinx3-0.6.3 works with it.
Created attachment 353608 [details, diff]
Added jack dependencies.
I don't know what are the dependencies for either alsa or oss (maybe media-libs/alsa-lib). Think it's just about kernel parameters checking, but I'd rather won't do that in the ebuild.
This is stillan issue today more than one year after it has been reported. If I remove the hard dep on pulseaudio in the ebuild and re-manifest it (my system already runs ALSA so all dependencies are already there), sphinxbase builds just fine and no pulse component gets pulled in.
Could we at least have an USE in order to specify the pulse dep?
TomWjj, you made patches, but didn't commit them? What's the next step in this?
Created attachment 417568 [details, diff]
I've refreshed the patch to work with current ebuild. I also merged patch from bug 560254
In reply to #comment 7
Thanks a lot Maxim, it's really nice