beanstalk: apply patch for libevent 2.x
This commit is contained in:
parent
23cdd5231c
commit
db860b4f82
1 changed files with 9 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue