diff options
| author | Jack Nagel | 2012-02-09 23:35:01 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-09 23:39:15 -0600 |
| commit | fc82ca9fe06adf1ccaf6b082d20db0223997b203 (patch) | |
| tree | 9b338bfdd5f8e63df26bc436bf59280ed34bdcda /Library | |
| parent | 5dba008deccb340b989180bdebdffbec5c0e1e02 (diff) | |
| download | homebrew-fc82ca9fe06adf1ccaf6b082d20db0223997b203.tar.bz2 | |
mongodb: style cleanups
- Remove ad-hoc URL selection, which is not Homebrew style, was longer
than doing it the normal way and didn't make updates any easier.
- Fix options indentation.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mongodb.rb | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 8e977b86f..42d42e99f 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -4,32 +4,23 @@ require 'hardware' class Mongodb < Formula homepage 'http://www.mongodb.org/' - packages = { - :x86_64 => { - :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.2.tgz', - :md5 => '65d9df2b1e8d2bf2c9aef30e35d1d9f0', - :version => '2.0.2-x86_64' - }, - :i386 => { - :url => 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.2.tgz', - :md5 => '5eba72d2e348618cf4a905bba1bd9bb6', - :version => '2.0.2-i386' - } - } - - package = (Hardware.is_64_bit? and not ARGV.build_32_bit?) ? packages[:x86_64] : packages[:i386] - - url package[:url] - md5 package[:md5] - version package[:version] + if Hardware.is_64_bit? and not ARGV.build_32_bit? + url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.2.tgz' + md5 '65d9df2b1e8d2bf2c9aef30e35d1d9f0' + version '2.0.2-x86_64' + else + url 'http://fastdl.mongodb.org/osx/mongodb-osx-i386-2.0.2.tgz' + md5 '5eba72d2e348618cf4a905bba1bd9bb6' + version '2.0.2-i386' + end skip_clean :all def options [ - ['--32-bit', 'Build 32-bit only.'], - ['--nojournal', 'Disable write-ahead logging (Journaling)'], - ['--rest', 'Enable the REST Interface on the HTTP Status Page'], + ['--32-bit', 'Build 32-bit only.'], + ['--nojournal', 'Disable write-ahead logging (Journaling)'], + ['--rest', 'Enable the REST Interface on the HTTP Status Page'], ] end |
