homebrew-core/Formula/varnish.rb

22 lines
573 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Varnish < Formula
homepage 'http://www.varnish-cache.org/'
2012-02-10 04:51:12 +00:00
url 'http://repo.varnish-cache.org/source/varnish-3.0.2.tar.gz'
sha1 '906f1536cb7e728d18d9425677907ae723943df7'
depends_on 'pkg-config' => :build
depends_on 'pcre'
2012-02-10 04:51:12 +00:00
# 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