require 'formula' class Rethinkdb < Formula homepage 'http://www.rethinkdb.com/' url 'http://download.rethinkdb.com/dist/rethinkdb-1.5.2.tgz' sha1 'de229816f17665c12f7c116fcbbc7a7a893b3a08' depends_on 'boost' => :build depends_on 'v8' def install system "./configure --prefix=#{prefix} --fetch protobuf" 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