c8d2d41c1d
This takes care of a `brew audit` complaint. Closes Homebrew/homebrew#18828. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
30 lines
731 B
Ruby
30 lines
731 B
Ruby
require 'formula'
|
|
|
|
class VowpalWabbit < Formula
|
|
homepage 'https://github.com/JohnLangford/vowpal_wabbit'
|
|
url 'https://github.com/JohnLangford/vowpal_wabbit/archive/v7.2.tar.gz'
|
|
sha1 'cff4ea03ec31c0849307696cfdefcb6e294deec9'
|
|
|
|
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
|