2012-10-25 18:19:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class VowpalWabbit < Formula
|
|
|
|
homepage 'https://github.com/JohnLangford/vowpal_wabbit'
|
2013-03-29 20:29:20 +00:00
|
|
|
url 'https://github.com/JohnLangford/vowpal_wabbit/archive/v7.2.tar.gz'
|
|
|
|
sha1 'cff4ea03ec31c0849307696cfdefcb6e294deec9'
|
2012-10-25 18:19:26 +00:00
|
|
|
|
2013-01-04 17:23:16 +00:00
|
|
|
head 'https://github.com/JohnLangford/vowpal_wabbit.git'
|
2012-10-25 18:19:26 +00:00
|
|
|
|
2013-01-03 20:45:52 +00:00
|
|
|
if build.head?
|
|
|
|
depends_on :libtool
|
|
|
|
depends_on :automake
|
|
|
|
end
|
|
|
|
|
2012-10-25 18:19:26 +00:00
|
|
|
depends_on 'boost' => :build
|
|
|
|
|
|
|
|
def install
|
2013-01-03 20:45:52 +00:00
|
|
|
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"
|
2012-10-25 18:19:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|