homebrew-core/Formula/vowpal-wabbit.rb
Shaun Jackman 42d162c5eb vowpal-wabbit 7.2
Closes Homebrew/homebrew#18369.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 12:05:19 -07:00

30 lines
724 B
Ruby

require 'formula'
class VowpalWabbit < Formula
homepage 'https://github.com/JohnLangford/vowpal_wabbit'
url 'https://github.com/JohnLangford/vowpal_wabbit/tarball/v7.2'
sha1 '974dc03941fabc304ddfcf3ceb3d763c702c6b6b'
head 'https://github.com/JohnLangford/vowpal_wabbit.git'
if build.head?
depends_on :libtool
depends_on :automake
end
depends_on 'boost' => :build
def install
if build.head?
inreplace 'autogen.sh' do |s|
s.gsub! 'libtoolize', 'glibtoolize'
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