Skip to content

Instantly share code, notes, and snippets.

@katsyoshi
Created November 7, 2011 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save katsyoshi/1344906 to your computer and use it in GitHub Desktop.
Save katsyoshi/1344906 to your computer and use it in GitHub Desktop.
jubatus homebrew
require 'formula'
class Jubatus < Formula
url 'https://github.com/downloads/jubatus/jubatus/jubatus-0.1.0.tar.bz2'
homepage 'http://jubat.us/'
md5 '79b6cf2ee5fc7f733fcd6f5cc5f7ec62'
depends_on 'glog'
depends_on 'pkg-config'
depends_on 'pficommon'
def options
[
[ '--disable-zookeeper', 'if not nessesary' ],
[ '--disable-re2', 'if not nessesary'],
[ '--enable-mecab', 'if nesseary' ]
]
end
def install
args = []
args << "--disable-zookeeper" if ARGV.include? "--disable-zookeeper"
args << "--disable-re2" if ARGV.include? "--disable-re2"
system "./waf", "configure", "--prefix=#{prefix}", *args
system "./waf", "build"
system "./waf", "install"
end
def patches
{:p0 => "https://raw.github.com/gist/1344700/8abcfec9fb3344954da89386b6d03683c7ccee8c/wscript.diff"}
end
def test
# This test will fail and we won't accept that! It's enough to just
# replace "false" with the main program this formula installs, but
# it'd be nice if you were more thorough. Test the test with
# `brew test jubatus`. Remove this comment before submitting
# your pull request!
system "false"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment