aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bind.rb
diff options
context:
space:
mode:
authorsamueljohn2012-06-13 01:06:43 +0200
committerAdam Vandenberg2012-08-26 17:28:40 -0700
commita39ef53023eab7e408f181351950c52f96322a68 (patch)
tree4244c45cca00afa44b013756c28e968cd19bc8c4 /Library/Formula/bind.rb
parent9028fdfb0144e236e9856715764c41cff237ab62 (diff)
downloadhomebrew-a39ef53023eab7e408f181351950c52f96322a68.tar.bz2
bind: 9.9.1-p2
- Fix Xcode-only specific path for open-ssl. - Add ENV.libxml2 Closes #14201. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/bind.rb')
-rw-r--r--Library/Formula/bind.rb35
1 files changed, 25 insertions, 10 deletions
diff --git a/Library/Formula/bind.rb b/Library/Formula/bind.rb
index 902ebbd19..1d27a8107 100644
--- a/Library/Formula/bind.rb
+++ b/Library/Formula/bind.rb
@@ -2,19 +2,34 @@ require 'formula'
class Bind < Formula
homepage 'http://www.isc.org/software/bind/'
- url 'ftp://ftp.isc.org/isc/bind9/9.8.1-P1/bind-9.8.1-P1.tar.gz'
- version '9.8.1-p1'
- sha256 '867fdd52d3436c6ab6d357108d7f9eaaf03f1422652e6e61c742816ff7f87929'
+ url 'ftp://ftp.isc.org/isc/bind9/9.9.1-P2/bind-9.9.1-P2.tar.gz'
+ version '9.9.1-p2'
+ sha1 '449b12c32682b5bef64c7b53cd0fc0c6b731c8a7'
depends_on "openssl" if MacOS.leopard?
def install
- ENV['STD_CDEFINES']='-DDIG_SIGCHASE=1'
- system "./configure", "--prefix=#{prefix}",
- "--enable-threads",
- "--enable-ipv6",
- "--with-openssl"
- system "make"
- system "make install"
+ ENV.libxml2
+ # libxml2 appends one inc dir to CPPFLAGS but bind ignores CPPFLAGS
+ ENV.append 'CFLAGS', ENV['CPPFLAGS']
+
+ ENV['STD_CDEFINES'] = '-DDIG_SIGCHASE=1'
+
+ args = [
+ "--prefix=#{prefix}",
+ "--enable-threads",
+ "--enable-ipv6",
+ ]
+
+ # For Xcode-only systems we help a bit to find openssl.
+ # If CLT.installed?, it evaluates to "/usr", which works.
+ args << "--with-openssl=#{MacOS.sdk_path.to_s}/usr" unless MacOS.leopard?
+
+ system "./configure", *args
+
+ # From the bind9 README: "Do not use a parallel 'make'."
+ ENV.deparallelize
+ system "make"
+ system "make install"
end
end