homebrew-core/Formula/vowpal-wabbit.rb
Topher Cyll aa21c7a31d vowpal wabbit 7.5
Closes Homebrew/homebrew#27762.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-03-21 13:42:54 -05:00

30 lines
705 B
Ruby

require 'formula'
class VowpalWabbit < Formula
homepage 'https://github.com/JohnLangford/vowpal_wabbit'
url 'https://github.com/JohnLangford/vowpal_wabbit/archive/7.5.tar.gz'
sha1 '2f7602a54df2e6aa2d8a54baaaceb47098a74dce'
head do
url 'https://github.com/JohnLangford/vowpal_wabbit.git'
depends_on :autoconf
depends_on :automake
depends_on :libtool
end
depends_on 'boost' => :build
def install
if build.head?
inreplace 'autogen.sh' do |s|
s.gsub! '/usr/share/aclocal', "#{HOMEBREW_PREFIX}/share/aclocal"
end
system "./autogen.sh"
end
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end