This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

vowpal wabbit 7.0

Closes #16210.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
Stefan Novak authored and klausmeyer committed Oct 25, 2012
1 parent 3eef5dd commit bcab116e447887fa0d155e10a37fab16c89a515f
Showing with 26 additions and 0 deletions.
  1. +26 −0 Library/Formula/vowpal-wabbit.rb
@@ -0,0 +1,26 @@
+require 'formula'
+
+class VowpalWabbit < Formula
+ homepage 'https://github.com/JohnLangford/vowpal_wabbit'
+ url 'https://github.com/JohnLangford/vowpal_wabbit/tarball/v7.0'
+ sha1 '1960f9b8423ce13d6c0f29e3c23feeb2d52f2918'
+
+ head 'git://github.com/JohnLangford/vowpal_wabbit.git'
+
+ depends_on :libtool
+ depends_on :automake
+ depends_on 'boost' => :build
+
+ def install
+ # 7.0 tarball doesn't include autogen files
+ inreplace 'autogen.sh' do |s|
+ s.gsub! 'libtoolize', 'glibtoolize'
+ s.gsub! '/usr/share/aclocal', "#{HOMEBREW_PREFIX}/share/aclocal"
+ end
+
+ system "./autogen.sh"
+ system "./configure", "--prefix=#{prefix}"
+ system "make"
+ system "make install"
+ end
+end

0 comments on commit bcab116

Please sign in to comment.