aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-10-15 08:56:38 -0700
committerMisty De Meo2013-10-15 08:56:56 -0700
commitdd41aab0d4bfb429a38c4653c18da3b71d784ac7 (patch)
treea750649ad9351b9f758932e9a5259aa3de39e2ef /Library
parent30f5413152118514124b20eec87c08f025efd324 (diff)
downloadhomebrew-dd41aab0d4bfb429a38c4653c18da3b71d784ac7.tar.bz2
ld64: add version requirement
Closes #23284.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ld64.rb15
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