homebrew-core/Formula/mongrel2.rb

25 lines
591 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Mongrel2 < Formula
homepage 'http://mongrel2.org/'
url 'https://github.com/zedshaw/mongrel2/archive/v1.8.0.tar.gz'
sha1 '3c6e57caec19df92ff6af28301d70af05ec3e456'
2012-10-06 03:15:31 +00:00
head 'https://github.com/zedshaw/mongrel2.git'
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
system "make all"
system "make", "install", "PREFIX=#{prefix}"
end
end