From 4e12213dfe72bf8d4f8deab1d731da046953f25b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 3 Sep 2011 17:31:17 -0700 Subject: beanstalk: apply patch for libevent 2.x --- Library/Formula/beanstalk.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/beanstalk.rb b/Library/Formula/beanstalk.rb index 570444a1b..6421a0d84 100644 --- a/Library/Formula/beanstalk.rb +++ b/Library/Formula/beanstalk.rb @@ -1,12 +1,19 @@ require 'formula' class Beanstalk < Formula - url 'http://xph.us/dist/beanstalkd/beanstalkd-1.4.6.tar.gz' + url 'https://github.com/downloads/kr/beanstalkd/beanstalkd-1.4.6.tar.gz' md5 '3dbbb64a6528efaaaa841ea83b30768e' - homepage 'http://xph.us/software/beanstalkd/' + homepage 'http://kr.github.com/beanstalkd/' depends_on 'libevent' + # 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 + def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--with-event=#{HOMEBREW_PREFIX}" -- cgit v1.2.3