2011-03-15 11:05:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class CmuPocketsphinx < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Lightweight speech recognition engine for mobile devices"
|
2011-03-15 11:05:58 +00:00
|
|
|
homepage 'http://cmusphinx.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/cmusphinx/pocketsphinx/0.8/pocketsphinx-0.8.tar.gz'
|
2012-12-14 00:31:54 +00:00
|
|
|
sha1 'd9efdd0baddd2e47c2ba559caaca62ffa0c0eede'
|
2011-03-15 11:05:58 +00:00
|
|
|
|
2015-03-03 15:49:20 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/cmusphinx/pocketsphinx.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "swig" => :build
|
|
|
|
end
|
|
|
|
|
2011-03-15 11:05:58 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'cmu-sphinxbase'
|
|
|
|
|
|
|
|
def install
|
2015-03-03 15:49:20 +00:00
|
|
|
if build.head?
|
|
|
|
ENV["NOCONFIGURE"] = "yes"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
2011-03-15 11:05:58 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|