homebrew-core/Formula/vowpal-wabbit.rb
Kashif Rasul f0e022f742 vowpal wabbit 7.6
Closes Homebrew/homebrew#28674.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-04-24 11:33:26 -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.6.tar.gz'
sha1 '854f6e54568f6c2e849d43b0f6cd1cc286ec965d'
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