homebrew-core/Formula/squid.rb

32 lines
787 B
Ruby
Raw Normal View History

2010-05-06 03:39:30 +00:00
require 'formula'
2012-03-21 03:46:55 +00:00
class NoBdb5 < Requirement
def message; <<-EOS.undent
This software can fail to compile when Berkeley-DB 5.x is installed.
You may need to try:
brew unlink berkeley-db
brew install dsniff
brew link berkeley-db
EOS
end
def satisfied?
f = Formula.factory("berkeley-db")
not f.installed?
end
end
2011-03-10 05:11:03 +00:00
class Squid < Formula
url 'http://www.squid-cache.org/Versions/v3/3.1/squid-3.1.9.tar.bz2'
2010-05-06 03:39:30 +00:00
homepage 'http://www.squid-cache.org/'
md5 '896ace723445ac168986ba8854437ce3'
2010-05-06 03:39:30 +00:00
2012-03-21 03:46:55 +00:00
depends_on NoBdb5.new
2010-05-06 03:39:30 +00:00
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}"
system "make install"
end
end