Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix keg-only on pre-Mountain Lion formulae.

  • Loading branch information...
commit b946bf758a0c8ba892ebb5f2c42e355cba63929b 1 parent d671171
@mikemcquaid mikemcquaid authored
View
2  Library/Formula/cairo.rb
@@ -5,7 +5,7 @@ class Cairo < Formula
url 'http://cairographics.org/releases/cairo-1.12.2.tar.xz'
sha256 'b786bc4a70542bcb09f2d9d13e5e6a0c86408cbf6d1edde5f0de807eecf93f96'
- keg_only unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
option :universal
option 'without-x', 'Build without X11 support'
View
2  Library/Formula/enscript.rb
@@ -8,7 +8,7 @@ class Enscript < Formula
head 'git://git.savannah.gnu.org/enscript.git'
- keg_only :provided_by_osx unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
depends_on 'gettext'
View
2  Library/Formula/fontconfig.rb
@@ -5,7 +5,7 @@ class Fontconfig < Formula
url 'http://fontconfig.org/release/fontconfig-2.10.1.tar.gz'
sha1 'e377cbe989cd22d3a10020309c906ecbbcac0043'
- keg_only unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
depends_on :freetype
depends_on 'pkg-config' => :build
View
2  Library/Formula/freetype.rb
@@ -5,7 +5,7 @@ class Freetype < Formula
url 'http://downloads.sf.net/project/freetype/freetype2/2.4.10/freetype-2.4.10.tar.gz'
sha1 '44dba26ff965b1cd1c62e480fdefaeca62ed33da'
- keg_only unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
option :universal
View
2  Library/Formula/libpng.rb
@@ -5,7 +5,7 @@ class Libpng < Formula
url 'http://downloads.sf.net/project/libpng/libpng15/1.5.12/libpng-1.5.12.tar.gz'
sha1 'c329f3a9b720d7ae14e8205fa6e332236573704b'
- keg_only unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
bottle do
sha1 '83c6be83e86404f41982e5e1e6877924fe737bdf' => :mountainlion
View
2  Library/Formula/pixman.rb
@@ -7,7 +7,7 @@ class Pixman < Formula
depends_on 'pkg-config' => :build
- keg_only unless MacOS.version >= :mountain_lion
+ keg_only :provided_pre_mountain_lion
option :universal
View
6 Library/Homebrew/formula_support.rb
@@ -133,7 +133,7 @@ def initialize reason, explanation=nil
@reason = reason
@explanation = explanation
@valid = case @reason
- when :when_xquartz_installed then MacOS::XQuartz.installed?
+ when :provided_pre_mountain_lion then MacOS.version < :mountain_lion
else true
end
end
@@ -150,8 +150,8 @@ def to_s
#{@explanation}
EOS
- when :when_xquartz_installed then <<-EOS.undent
- XQuartz provides this software.
+ when :provided_pre_mountain_lion then <<-EOS.undent
+ Mac OS X already provides this software in versions before Mountain Lion.
#{@explanation}
EOS
Please sign in to comment.
Something went wrong with that request. Please try again.