2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-06 20:47:30 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Beanstalk < Formula
|
2011-09-04 00:31:17 +00:00
|
|
|
url 'https://github.com/downloads/kr/beanstalkd/beanstalkd-1.4.6.tar.gz'
|
2010-07-20 18:30:18 +00:00
|
|
|
md5 '3dbbb64a6528efaaaa841ea83b30768e'
|
2011-09-04 00:31:17 +00:00
|
|
|
homepage 'http://kr.github.com/beanstalkd/'
|
2009-10-06 20:47:30 +00:00
|
|
|
|
|
|
|
depends_on 'libevent'
|
|
|
|
|
2011-09-04 00:31:17 +00:00
|
|
|
# Patch from upstream to compile against libevent 2.x. See:
|
|
|
|
# https://github.com/kr/beanstalkd/commit/976ec8ba8e70e3b5027f441de529f479c11c8507#diff-0
|
|
|
|
# https://github.com/kr/beanstalkd/issues/49
|
|
|
|
def patches
|
|
|
|
"https://github.com/kr/beanstalkd/commit/976ec8ba8e70e3b5027f441de529f479c11c8507.patch"
|
|
|
|
end
|
|
|
|
|
2009-10-06 20:47:30 +00:00
|
|
|
def install
|
2010-01-31 07:46:09 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--with-event=#{HOMEBREW_PREFIX}"
|
|
|
|
|
2009-10-06 20:47:30 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|