mongodb: use arch requirement

This commit is contained in:
Jack Nagel 2013-04-18 01:20:31 -05:00
parent bcb3add83c
commit 85fb44b1ed

View file

@ -1,27 +1,12 @@
require 'formula'
class SixtyFourBitRequired < Requirement
fatal true
satisfy MacOS.prefer_64_bit?
def message; <<-EOS.undent
32-bit MongoDB binaries are no longer available.
If you need to run a 32-bit version of MongoDB, you can
compile the server from source:
http://www.mongodb.org/display/DOCS/Building+for+OS+X
EOS
end
end
class Mongodb < Formula
homepage 'http://www.mongodb.org/'
url 'http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.2.tgz'
sha1 'e4e6a001a39b39a875bd24db986f3445400a8b64'
version '2.4.2-x86_64'
depends_on SixtyFourBitRequired
depends_on :arch => :x86_64
def install
# Copy the prebuilt binaries to prefix