diff options
| author | Jack Nagel | 2013-01-19 20:45:59 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-21 17:36:34 -0600 |
| commit | 3ad7174f7d3cad94a67338b404fdc220fd2f2e8e (patch) | |
| tree | 1ad337f60b86a951544ffce6e1b9fa2d8eb0e707 /Library/Formula/squid.rb | |
| parent | b48e89cbb2a14a935626c64f5e19044bc2b08d85 (diff) | |
| download | homebrew-3ad7174f7d3cad94a67338b404fdc220fd2f2e8e.tar.bz2 | |
Use new requirement syntax
Diffstat (limited to 'Library/Formula/squid.rb')
| -rw-r--r-- | Library/Formula/squid.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/squid.rb b/Library/Formula/squid.rb index cf461aad1..0a1a1afe5 100644 --- a/Library/Formula/squid.rb +++ b/Library/Formula/squid.rb @@ -4,6 +4,8 @@ class NoBdb5 < Requirement # Not fatal in case Squid starts working with a newer version of BDB. fatal false + satisfy(:build_env => false) { !Formula.factory("berkeley-db").installed? } + def message; <<-EOS.undent This software can fail to compile when Berkeley-DB 5.x is installed. You may need to try: @@ -12,11 +14,6 @@ class NoBdb5 < Requirement brew link berkeley-db EOS end - - def satisfied? - f = Formula.factory("berkeley-db") - not f.installed? - end end class Squid < Formula |
