From ce604c642d830f96fe7aced5452650cf9867cb9d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 14 Aug 2012 11:37:29 -0500 Subject: Deprecate MacOS.version? style methods Signed-off-by: Jack Nagel --- Library/Formula/enscript.rb | 2 +- Library/Formula/python3.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/enscript.rb b/Library/Formula/enscript.rb index 75e7e3058..4f5be6fcb 100644 --- a/Library/Formula/enscript.rb +++ b/Library/Formula/enscript.rb @@ -8,7 +8,7 @@ class Enscript < Formula head 'git://git.savannah.gnu.org/enscript.git' - keg_only 'Lion and below provide enscript' unless MacOS::mountain_lion_or_newer? + keg_only :provided_by_osx unless MacOS.version >= :mountain_lion depends_on 'gettext' diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index abfce4ca9..1bb9e2c13 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -168,7 +168,7 @@ class Python3 < Formula See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python EOS - text += tk_caveats unless MacOS.lion_or_newer? + text += tk_caveats unless MacOS.version >= :lion text += general_caveats return text end -- cgit v1.2.3