diff options
| author | Adam Vandenberg | 2012-06-10 11:38:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-10 11:38:59 -0700 |
| commit | fae3a37cbd8dbf62a13feb20ece71b27690968a9 (patch) | |
| tree | 2fe13dd0c9e7547f8501b94757d0da833174082a /Library | |
| parent | 3b2ed5e499100e8712c9d668ffd995d1754950ca (diff) | |
| download | homebrew-fae3a37cbd8dbf62a13feb20ece71b27690968a9.tar.bz2 | |
cmu-sphinxbase: require a Homebrewed Python
Compiling against system Python causes a compiler mis-match.
This can be worked around, but as a workaround suggest using
a Homebrewed version of Python instead.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/cmu-sphinxbase.rb | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/Library/Formula/cmu-sphinxbase.rb b/Library/Formula/cmu-sphinxbase.rb index 8ee9c52a3..8ec05f4e9 100644 --- a/Library/Formula/cmu-sphinxbase.rb +++ b/Library/Formula/cmu-sphinxbase.rb @@ -1,12 +1,33 @@ require 'formula' +class HomebrewedPython < Requirement + 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 + def satisfied? + Formula.factory('python').installed? + end + def fatal? + false + end +end + class CmuSphinxbase < Formula - url 'http://sourceforge.net/projects/cmusphinx/files/sphinxbase/0.7/sphinxbase-0.7.tar.gz' homepage 'http://cmusphinx.sourceforge.net/' - md5 '7c28f37c0eb9e30e22e9992eace3b605' + url 'http://sourceforge.net/projects/cmusphinx/files/sphinxbase/0.7/sphinxbase-0.7.tar.gz' + sha1 '32dc04f7e7f37ffe53bd0b6e27b1f5df1800a705' + + depends_on 'pkg-config' => :build + depends_on HomebrewedPython.new def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end |
