homebrew-core/Formula/varnish.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

21 lines
No EOL
612 B
Ruby

require 'formula'
class Varnish <Formula
url 'http://downloads.sourceforge.net/project/varnish/varnish/2.1.2/varnish-2.1.2.tar.gz'
homepage 'http://varnish.projects.linpro.no/'
md5 '8b0d80e47acf4946671c381af55518b9'
depends_on 'pkg-config'
depends_on 'pcre'
# Do not strip varnish binaries: Otherwise, 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