From dd41aab0d4bfb429a38c4653c18da3b71d784ac7 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 15 Oct 2013 08:56:38 -0700 Subject: ld64: add version requirement Closes #23284. --- Library/Formula/ld64.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/ld64.rb b/Library/Formula/ld64.rb index 897ff7015..69c487653 100644 --- a/Library/Formula/ld64.rb +++ b/Library/Formula/ld64.rb @@ -1,5 +1,18 @@ require 'formula' +class SnowLeopardOrOlder < Requirement + fatal true + def satisfied? + MacOS.version <= :snow_leopard + end + + def message; <<-EOS.undent + This version of ld64 will only build on 10.6 and older. + It is provided for older versions of OS X. + EOS + end +end + class Ld64 < Formula homepage 'http://opensource.apple.com/' # Latest is 134.9, but it no longer supports building for PPC. @@ -10,6 +23,8 @@ class Ld64 < Formula url 'http://opensource.apple.com/tarballs/ld64/ld64-97.17.tar.gz' sha1 '7c1d816c2fec02e558f4a528d16d8161f0e379b5' + depends_on SnowLeopardOrOlder + # Tiger either includes old versions of these headers, # or doesn't ship them at all depends_on 'cctools-headers' => :build -- cgit v1.2.3