homebrew-core/Formula/mongrel2.rb
Jack Nagel 7c648d9732 Shore up a number of shell quoting issues
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:11 -05:00

23 lines
583 B
Ruby

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