require 'formula' class Gearman < Formula homepage 'http://gearman.org/' url 'https://launchpad.net/gearmand/1.2/1.1.5/+download/gearmand-1.1.5.tar.gz' sha1 '516c7690551ea214198a7502a85e976c136b8d65' depends_on 'pkg-config' => :build depends_on 'boost' depends_on 'libevent' depends_on 'ossp-uuid' def install system "./configure", "--prefix=#{prefix}", "--without-mysql" system "make install" end plist_options :manual => "gearmand -d" def plist; <<-EOS.undent Label #{plist_name} Program #{opt_prefix}/sbin/gearmand RunAtLoad UserName #{`whoami`.chomp} EOS end end