aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTyler Brock2013-11-13 12:11:21 -0500
committerAdam Vandenberg2013-11-13 18:48:04 -0800
commit6d753b32213488575af6d5e737f866d76c11db3c (patch)
tree86741dadd43089cf8bc768b7b2e59120d5b477ea /Library/Formula
parent32f8962149510f2ed74f0ddaa817200a1f8129c7 (diff)
downloadhomebrew-6d753b32213488575af6d5e737f866d76c11db3c.tar.bz2
libmongoclient 2.5.3
Closes #24265. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libmongoclient.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/libmongoclient.rb b/Library/Formula/libmongoclient.rb
new file mode 100644
index 000000000..05e938706
--- /dev/null
+++ b/Library/Formula/libmongoclient.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Libmongoclient < Formula
+ homepage 'http://www.mongodb.org'
+ url 'http://fastdl.mongodb.org/src/mongodb-src-r2.5.3.tar.gz'
+ sha1 '8fbd7f6f2a55092ae0e461ee0f5a4a7f738d40c9'
+
+ head 'https://github.com/mongodb/mongo.git'
+
+ depends_on 'scons' => :build
+ depends_on 'boost' => :build
+
+ def install
+ args = [
+ "--prefix=#{prefix}",
+ "-j#{ENV.make_jobs}",
+ "--cc=#{ENV.cc}",
+ "--cxx=#{ENV.cxx}",
+ "--full",
+ "--use-system-all",
+ "--sharedclient"
+ ]
+
+ if MacOS.version >= :mavericks
+ args << "--osx-version-min=10.8"
+ args << "--libc++"
+ end
+
+ system 'scons', 'install-mongoclient', *args
+ end
+end