aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/librasterlite.rb
diff options
context:
space:
mode:
authorJack Nagel2012-09-04 23:04:01 -0500
committerJack Nagel2012-09-10 16:16:54 -0500
commit6b8d25f2d21a3c19ecb0809d619999137cb94565 (patch)
tree402f61e324fc981a56a2064bb0d4f5680ca135ed /Library/Formula/librasterlite.rb
parentdb74b9b4776aced4f4ac59076eebe10a98768f09 (diff)
downloadhomebrew-6b8d25f2d21a3c19ecb0809d619999137cb94565.tar.bz2
Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard Ruby comparison methods. The old methods were moved to compat when the version comparison code was merged, and they must remain there "forever", but they should not be used in new code. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/librasterlite.rb')
-rw-r--r--Library/Formula/librasterlite.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/librasterlite.rb b/Library/Formula/librasterlite.rb
index 5ee4fbb0c..7ba176b78 100644
--- a/Library/Formula/librasterlite.rb
+++ b/Library/Formula/librasterlite.rb
@@ -5,7 +5,7 @@ class Librasterlite < Formula
url 'http://www.gaia-gis.it/gaia-sins/librasterlite-sources/librasterlite-1.1c.tar.gz'
sha1 'c54f38ef2974bc92410e2c2196088af14bd9c21a'
- depends_on "pkg-config" => :build unless MacOS.mountain_lion?
+ depends_on "pkg-config" => :build unless MacOS.version >= :mountain_lion
depends_on :libpng
depends_on "libgeotiff"
depends_on "libspatialite"