aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-10-22 20:47:37 -0500
committerJack Nagel2013-10-22 20:47:37 -0500
commitfce53bc1f572694a5a36463626b4d48131ccb01a (patch)
tree3cdf8bab01e5e8fb69d6d20a8265eb13dd0b6608 /Library/Formula
parent1a6f9110592ec21eeb8efd4ce3476329e176f2bb (diff)
downloadhomebrew-fce53bc1f572694a5a36463626b4d48131ccb01a.tar.bz2
Avoid comparing MacOS.version to floats
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ettercap.rb2
-rw-r--r--Library/Formula/graphicsmagick.rb2
-rw-r--r--Library/Formula/imagemagick.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/ettercap.rb b/Library/Formula/ettercap.rb
index bc2572ce1..267871f1c 100644
--- a/Library/Formula/ettercap.rb
+++ b/Library/Formula/ettercap.rb
@@ -14,7 +14,7 @@ class Ettercap < Formula
# fixes absence of strndup function on 10.6 and lower; merged upstream
def patches
"https://github.com/Ettercap/ettercap/commit/1692218693ed419465466299c8c76da41c37c945.patch"
- end if MacOS.version < 10.7
+ end if MacOS.version < :lion
def install
libnet = Formula.factory 'libnet'
diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index ad20786bf..69c03abd1 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -29,7 +29,7 @@ class Graphicsmagick < Formula
depends_on 'ghostscript' => :optional
opoo '--with-ghostscript is not recommended' if build.with? 'ghostscript'
- if build.with? 'openmp' and (MacOS.version == 10.5 or ENV.compiler == :clang)
+ if build.with? 'openmp' and (MacOS.version == :leopard or ENV.compiler == :clang)
opoo '--with-openmp is not supported on Leopard or with Clang'
end
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb
index f23a99b64..5df213655 100644
--- a/Library/Formula/imagemagick.rb
+++ b/Library/Formula/imagemagick.rb
@@ -45,7 +45,7 @@ class Imagemagick < Formula
depends_on 'webp' => :optional
opoo '--with-ghostscript is not recommended' if build.with? 'ghostscript'
- if build.with? 'openmp' and (MacOS.version == 10.5 or ENV.compiler == :clang)
+ if build.with? 'openmp' and (MacOS.version == :leopard or ENV.compiler == :clang)
opoo '--with-openmp is not supported on Leopard or with Clang'
end