require 'formula' class Rethinkdb < Formula homepage 'http://www.rethinkdb.com/' url 'http://download.rethinkdb.com/dist/rethinkdb-1.6.0.tgz' sha1 'f25044cf1540bc2d21514901172e9ab3d31b3342' 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 --bind all --http-port 8080 WorkingDirectory #{HOMEBREW_PREFIX} StandardOutPath #{var}/log/rethinkdb/rethinkdb.log StandardErrorPath #{var}/log/rethinkdb/rethinkdb.log RunAtLoad KeepAlive EOS end end