homebrew-core/Formula/varnish.rb
Adam Anderson b5a84ffabf Varnish 3.0.3
Closes Homebrew/homebrew#14600.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-31 10:56:27 -07:00

21 lines
573 B
Ruby

require 'formula'
class Varnish < Formula
homepage 'http://www.varnish-cache.org/'
url 'http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz'
sha1 '6e1535caa30c3f61af00160c59d318e470cd6f57'
depends_on 'pkg-config' => :build
depends_on 'pcre'
# If stripped, the magic string end pointer isn't found.
skip_clean :all
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}"
system "make install"
(var+'varnish').mkpath
end
end