2011-03-15 11:05:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2012-06-10 18:38:59 +00:00
|
|
|
class HomebrewedPython < Requirement
|
2013-01-19 01:30:43 +00:00
|
|
|
fatal true
|
|
|
|
|
2013-01-20 02:45:59 +00:00
|
|
|
satisfy(:build_env => false) { Formula.factory('python').installed? }
|
|
|
|
|
2012-06-10 18:38:59 +00:00
|
|
|
def message; <<-EOS.undent
|
|
|
|
Compiling against the system-provided Python will likely fail.
|
|
|
|
The system-provided Python includes PPC support, which will cause a compiler
|
|
|
|
mis-match. This formula is known to work against a Homebrewed Python.
|
|
|
|
|
|
|
|
Patches to correct this issue are welcome.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-03-15 11:05:58 +00:00
|
|
|
class CmuSphinxbase < Formula
|
|
|
|
homepage 'http://cmusphinx.sourceforge.net/'
|
2012-12-14 00:32:29 +00:00
|
|
|
url 'http://sourceforge.net/projects/cmusphinx/files/sphinxbase/0.8/sphinxbase-0.8.tar.gz'
|
|
|
|
sha1 'c0c4d52e143d07cd593bd6bcaeb92b9a8a5a8c8e'
|
2012-06-10 18:38:59 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-01-27 22:44:59 +00:00
|
|
|
depends_on HomebrewedPython
|
2011-03-15 11:05:58 +00:00
|
|
|
|
|
|
|
def install
|
2012-06-10 18:38:59 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-03-15 11:05:58 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|