aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/squid.rb
diff options
context:
space:
mode:
authorJack Nagel2014-08-29 11:43:27 -0500
committerJack Nagel2014-08-29 11:44:00 -0500
commit55cdabacda7668a2a57e23235020bd2d874b0655 (patch)
treebe90a9c90d12c1a620696d208bfc7cbdbbfb4882 /Library/Formula/squid.rb
parent3f4cf69843893f2de2173b026511dca6ce462a82 (diff)
downloadhomebrew-55cdabacda7668a2a57e23235020bd2d874b0655.tar.bz2
squid: fix build on 10.7
Diffstat (limited to 'Library/Formula/squid.rb')
-rw-r--r--Library/Formula/squid.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/Library/Formula/squid.rb b/Library/Formula/squid.rb
index 538a2e363..ff8a70075 100644
--- a/Library/Formula/squid.rb
+++ b/Library/Formula/squid.rb
@@ -1,25 +1,10 @@
require 'formula'
-class NoBdb5 < Requirement
- satisfy(:build_env => false) { !Formula["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:
- brew unlink berkeley-db
- brew install squid
- brew link berkeley-db
- EOS
- end
-end
-
class Squid < Formula
homepage 'http://www.squid-cache.org/'
url 'http://www.squid-cache.org/Versions/v3/3.4/squid-3.4.6.tar.bz2'
sha1 '0b8850a0bf73d85797e441e589324da8309cd738'
- depends_on NoBdb5
-
def install
# http://stackoverflow.com/questions/20910109/building-squid-cache-on-os-x-mavericks
ENV.append "LDFLAGS", "-lresolv"
@@ -35,6 +20,7 @@ class Squid < Formula
--enable-ssl-crtd
--disable-eui
--enable-pf-transparent
+ --with-included-ltdl
]
system "./configure", *args