aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cmu-sphinxbase.rb
blob: 8ec05f4e9849a62956130abd016230b5a35c2e3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
  homepage 'http://cmusphinx.sourceforge.net/'
  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",
                          "--prefix=#{prefix}"
    system "make install"
  end
end