require 'formula' class Rethinkdb < Formula homepage 'http://www.rethinkdb.com/' url 'http://download.rethinkdb.com/dist/rethinkdb-1.6.1.tgz' sha1 'fdb3acb5febbe3f7cd4d3afd1592e5c4149f7b73' depends_on 'boost' => :build depends_on 'v8' def install # Disable drivers because right now we don't build Python/Ruby bindings. Pull request welcome. system "./configure", "--prefix=#{prefix}", "--fetch", "protobuf", "--disable-drivers" system "make" system "make install-osx" end def plist; <<-EOS.undent Label #{plist_name} ProgramArguments #{opt_prefix}/bin/rethinkdb -d #{var}/rethinkdb WorkingDirectory #{HOMEBREW_PREFIX} StandardOutPath #{var}/log/rethinkdb/rethinkdb.log StandardErrorPath #{var}/log/rethinkdb/rethinkdb.log RunAtLoad KeepAlive EOS end end