blob: 380e5753b6445431511902647eedc8ba12a4da3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | 
require 'formula'
class Mongrel2 < Formula
  homepage 'http://mongrel2.org/'
  url 'https://github.com/zedshaw/mongrel2/tarball/v1.8.0'
  sha1 '27c942b5c3c72c65084b355f6cbafd814f8cd64b'
  head 'https://github.com/zedshaw/mongrel2.git'
  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
  |