2010-09-21 10:26:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mongrel2 < Formula
|
2011-07-14 10:37:48 +00:00
|
|
|
url 'http://mongrel2.org/static/downloads/mongrel2-1.7.5.tar.bz2'
|
2011-07-21 23:30:58 +00:00
|
|
|
head 'https://github.com/zedshaw/mongrel2.git'
|
2010-09-21 10:26:01 +00:00
|
|
|
homepage 'http://mongrel2.org/'
|
2011-07-14 10:37:48 +00:00
|
|
|
md5 'c243efc59e5972fa381bd13a7eeafdc7'
|
2010-09-21 10:26:01 +00:00
|
|
|
|
|
|
|
depends_on 'zeromq'
|
|
|
|
|
|
|
|
def install
|
2011-11-22 03:56:41 +00:00
|
|
|
# Build in serial. See:
|
|
|
|
# https://github.com/mxcl/homebrew/issues/8719
|
|
|
|
ENV.j1
|
|
|
|
|
2011-01-22 18:07:20 +00:00
|
|
|
# Mongrel2 pulls from these ENV vars instead
|
|
|
|
ENV['OPTFLAGS'] = "#{ENV.cflags} #{ENV.cppflags}"
|
|
|
|
ENV['OPTLIBS'] = ENV.ldflags
|
|
|
|
|
2010-09-21 10:26:01 +00:00
|
|
|
system "make all"
|
|
|
|
system "make install PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
end
|