blob: c444295ce93bc7fb768082c0a9de8c62b558598e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
require 'formula'
class Mongrel2 < Formula
  url 'http://mongrel2.org/static/downloads/mongrel2-1.7.5.tar.bz2'
  head 'https://github.com/zedshaw/mongrel2.git'
  homepage 'http://mongrel2.org/'
  md5 'c243efc59e5972fa381bd13a7eeafdc7'
  depends_on 'zeromq'
  def install
    # Build in serial. See:
    # https://github.com/mxcl/homebrew/issues/8719
    ENV.j1
    # Mongrel2 pulls from these ENV vars instead
    ENV['OPTFLAGS'] = "#{ENV.cflags} #{ENV.cppflags}"
    ENV['OPTLIBS'] = ENV.ldflags
    system "make all"
    system "make", "install", "PREFIX=#{prefix}"
  end
end
  |