description Speech recognition package
long_description Sphinx-3 is CMU's state-of-the-art large vocabulary \
speech recognition system. It uses Hidden Markov \
Models (HMM) with continuous output probability \
homepage http://cmusphinx.sourceforge.net/
master_sites sourceforge:cmusphinx
depends_lib port:sphinxbase port:python26
checksums md5 e32bf4c507509b27482adf4cfc467e8f \
sha1 2e58b5a5ec7f397a7db8ef996043daf8162e3657 \
rmd160 95d05c09914bc30ae0b9d849c2141fa3d7a0bdd3
configure.cppflags-append "-I${prefix}/include/sphinxbase"
# configure ignores cppflags, so we have to fix it
reinplace "s|CPPFLAGS=\"-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase\"|CPPFLAGS=\"-I${prefix}/include/sphinxbase\"|" ${worksrcpath}/configure
set python.prefix ${frameworks_dir}/Python.framework/Versions/${python.branch}
set python.bin ${python.prefix}/bin/python${python.branch}
set python.lib ${python.prefix}/Python
set python.libdir ${python.prefix}/lib/python${python.branch}
set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages
set python.include ${python.prefix}/include/python${python.branch}
reinplace "s|/usr/local/include/sphinx|${prefix}/include/sphinx|" ${worksrcpath}/python/setup.py
system "cd ${worksrcpath}/python && ${python.bin} setup.py --no-user-cfg install --prefix=${python.prefix} --root=${destroot}"
xinstall -d -m 755 ${destroot}${prefix}/share/doc/
system "find ${worksrcpath}/doc -name .svn -print0 | xargs -0 rm -rf"
file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
livecheck.url https://sourceforge.net/projects/cmusphinx/files/sphinx3/
livecheck.regex "/${name}/(\[0-9.\]+)/\""