diff options
| -rw-r--r-- | Library/Formula/varnish.rb | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Library/Formula/varnish.rb b/Library/Formula/varnish.rb index 76f54f068..13a143eab 100644 --- a/Library/Formula/varnish.rb +++ b/Library/Formula/varnish.rb @@ -2,20 +2,37 @@ require 'formula' class Varnish < Formula homepage 'http://www.varnish-cache.org/' - url 'http://repo.varnish-cache.org/source/varnish-3.0.5.tar.gz' - sha1 '2f3eae44cc44d263fe9513b856f49707a64cc840' + url 'https://repo.varnish-cache.org/source/varnish-4.0.0.tar.gz' + sha1 '6ad4fcf42a505a748ae993cb6ed579159e023633' depends_on 'pkg-config' => :build depends_on 'pcre' + depends_on :python + + resource "docutils" do + url "https://pypi.python.org/packages/source/d/docutils/docutils-0.11.tar.gz" + sha1 "3894ebcbcbf8aa54ce7c3d2c8f05460544912d67" + end def install + ENV.prepend_create_path "PYTHONPATH", buildpath+"lib/python2.7/site-packages" + resource("docutils").stage do + system "python", "setup.py", "install", "--prefix=#{buildpath}" + end + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", - "--localstatedir=#{var}" + "--localstatedir=#{var}", + "--with-rst2man=#{buildpath}/bin/rst2man.py", + "--with-rst2html=#{buildpath}/bin/rst2html.py" system "make install" (var+'varnish').mkpath end + test do + system "#{opt_sbin}/varnishd", "-V" + end + def plist; <<-EOS.undent <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
