aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cmu-sphinxbase.rb
diff options
context:
space:
mode:
authorBastian Müller2015-03-03 16:49:20 +0100
committerJack Nagel2015-03-06 22:07:20 -0500
commit8c5ed0c76e27cfa7a171358a7e78be0ed66ae1f5 (patch)
tree17b0d4e97631fbbedb2d462e70d73422584c2ccf /Library/Formula/cmu-sphinxbase.rb
parent2ee4fb5fcfc8807d563971cf4cb048f1f36e7193 (diff)
downloadhomebrew-8c5ed0c76e27cfa7a171358a7e78be0ed66ae1f5.tar.bz2
HEAD option for sphinxbase and pocketsphinx
Closes #37363. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/cmu-sphinxbase.rb')
-rw-r--r--Library/Formula/cmu-sphinxbase.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/cmu-sphinxbase.rb b/Library/Formula/cmu-sphinxbase.rb
index f0306b164..e8cc24817 100644
--- a/Library/Formula/cmu-sphinxbase.rb
+++ b/Library/Formula/cmu-sphinxbase.rb
@@ -5,6 +5,15 @@ class CmuSphinxbase < Formula
url "https://downloads.sourceforge.net/project/cmusphinx/sphinxbase/0.8/sphinxbase-0.8.tar.gz"
sha1 "c0c4d52e143d07cd593bd6bcaeb92b9a8a5a8c8e"
+ head do
+ url "https://github.com/cmusphinx/sphinxbase.git"
+
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
+ depends_on "swig" => :build
+ end
+
depends_on "pkg-config" => :build
# If these are found, they will be linked against and there is no configure
# switch to turn them off.
@@ -12,6 +21,10 @@ class CmuSphinxbase < Formula
depends_on "libsamplerate" => "with-libsndfile"
def install
+ if build.head?
+ ENV["NOCONFIGURE"] = "yes"
+ system "./autogen.sh"
+ end
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"