aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mongodb.rb33
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