From ea8d0a78fa5a3e0bb2d85a9d23d2f2e5a0ac44a3 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 14 Dec 2012 20:13:34 -0800 Subject: appledoc: depends on Lion Closes #16582. --- Library/Formula/appledoc.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Library') 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", -- cgit v1.2.3