From 6b8d25f2d21a3c19ecb0809d619999137cb94565 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 4 Sep 2012 23:04:01 -0500 Subject: Clean up MacOS version method usage The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel --- Library/Formula/bind.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/bind.rb') diff --git a/Library/Formula/bind.rb b/Library/Formula/bind.rb index 1d27a8107..3a2f89916 100644 --- a/Library/Formula/bind.rb +++ b/Library/Formula/bind.rb @@ -6,7 +6,7 @@ class Bind < Formula version '9.9.1-p2' sha1 '449b12c32682b5bef64c7b53cd0fc0c6b731c8a7' - depends_on "openssl" if MacOS.leopard? + depends_on "openssl" if MacOS.version == :leopard def install ENV.libxml2 @@ -23,7 +23,7 @@ class Bind < Formula # 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? + args << "--with-openssl=#{MacOS.sdk_path.to_s}/usr" unless MacOS.version == :leopard system "./configure", *args -- cgit v1.2.3