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/sdl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/sdl.rb') diff --git a/Library/Formula/sdl.rb b/Library/Formula/sdl.rb index 02d423d52..195e981c3 100644 --- a/Library/Formula/sdl.rb +++ b/Library/Formula/sdl.rb @@ -25,7 +25,7 @@ class Sdl < Formula system "./autogen.sh" if build.head? args = %W[--prefix=#{prefix}] - args << "--disable-nasm" unless MacOS.mountain_lion? # might work with earlier, might only work with new clang + args << "--disable-nasm" unless MacOS.version >= :mountain_lion # might work with earlier, might only work with new clang # LLVM-based compilers choke on the assembly code packaged with SDL. args << '--disable-assembly' if ENV.compiler == :llvm or ENV.compiler == :clang and MacOS.clang_build_version < 421 args << '--without-x' -- cgit v1.2.3