diff options
| author | Adam Vandenberg | 2012-12-14 20:13:34 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-12-14 20:13:34 -0800 |
| commit | ea8d0a78fa5a3e0bb2d85a9d23d2f2e5a0ac44a3 (patch) | |
| tree | 9cbb5441e58e5ffa27a8a090970c5a2409582cd5 /Library | |
| parent | 3da335ee411d2f6da22642ca369ea26ebbdba75d (diff) | |
| download | homebrew-ea8d0a78fa5a3e0bb2d85a9d23d2f2e5a0ac44a3.tar.bz2 | |
appledoc: depends on Lion
Closes #16582.
Diffstat (limited to 'Library')
| -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", |
