diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/appledoc.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/appledoc.rb b/Library/Formula/appledoc.rb index 8a0d50997..4f4814fcf 100644 --- a/Library/Formula/appledoc.rb +++ b/Library/Formula/appledoc.rb @@ -1,5 +1,17 @@ require 'formula' +class LionOrNewer < Requirement + def satisfied? + MacOS.version >= :lion + end + def fatal? + true + end + def message + "Appledoc requires Mac OS X 10.7 (Lion) or newer." + end +end + class Appledoc < Formula homepage 'http://appledoc.gentlebytes.com/' url "https://github.com/tomaz/appledoc/tarball/v2.1" @@ -8,6 +20,7 @@ class Appledoc < Formula head 'https://github.com/tomaz/appledoc.git', :branch => 'master' depends_on :xcode # For working xcodebuild. + depends_on LionOrNewer.new def install system "xcodebuild", "-project", "appledoc.xcodeproj", |
