diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ld64.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
