aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2009-10-27 13:20:28 -0700
committerAdam Vandenberg2009-10-27 13:42:01 -0700
commit06f5744e356495dfa645b47973006cdc67402ed8 (patch)
treeb612021ba0ab996a67ad64736a41acc41ef9d732
parent9d53d7b843b0b920974c01d0790dfe7621c7bc0d (diff)
downloadhomebrew-06f5744e356495dfa645b47973006cdc67402ed8.tar.bz2
MongoDB - support 32bit installs and bump to 1.1.2.
-rw-r--r--Library/Formula/mongodb.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 2b4d6614d..3d0a12bdb 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -1,9 +1,15 @@
require 'formula'
class Mongodb <Formula
- url 'http://downloads.mongodb.org/osx/mongodb-osx-x86_64-1.1.1.tgz'
homepage 'http://www.mongodb.org/'
- md5 '8d22a1a5c7ae9d84ff6092e801fd5ebf'
+
+ if Hardware.is_64_bit?
+ url 'http://downloads.mongodb.org/osx/mongodb-osx-x86_64-1.1.2.tgz'
+ md5 '7fdcd8173fa975295b961e760eed1751'
+ else
+ url 'http://downloads.mongodb.org/osx/mongodb-osx-i386-1.1.2.tgz'
+ md5 '0e10467e2a0877d189e4d4c0783ebc4b'
+ end
def install
system "cp -prv * #{prefix}"