aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErnie Hershey2015-03-19 15:33:55 -0400
committerMike McQuaid2015-04-17 10:53:54 -0700
commit7755ac0b8b7413d594d87fa5d7d555da6f7ece67 (patch)
tree778f39fc63c7266e6bb9c3cf16b35dc014053a2b
parenteba75b9a1a474b9fc4df30bd0a32637fa31ec049 (diff)
downloadhomebrew-7755ac0b8b7413d594d87fa5d7d555da6f7ece67.tar.bz2
mongodb 3.1.1 (devel)
Closes #38441. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/mongodb.rb33
1 files changed, 25 insertions, 8 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb
index 33b3a9609..feba4f710 100644
--- a/Library/Formula/mongodb.rb
+++ b/Library/Formula/mongodb.rb
@@ -2,8 +2,27 @@ require "language/go"
class Mongodb < Formula
homepage "https://www.mongodb.org/"
- url "https://fastdl.mongodb.org/src/mongodb-src-r3.0.2.tar.gz"
- sha256 "010522203cdb9bbff52fbd9fe299b67686bb1256e2e55eb78abf35444f668399"
+
+ depends_on "go" => :build
+ stable do
+ url "https://fastdl.mongodb.org/src/mongodb-src-r3.0.2.tar.gz"
+ sha256 "010522203cdb9bbff52fbd9fe299b67686bb1256e2e55eb78abf35444f668399"
+ go_resource "github.com/mongodb/mongo-tools" do
+ url "https://github.com/mongodb/mongo-tools.git",
+ :tag => "r3.0.1",
+ :revision => "bc08e57abb71b2edd1cc3ab8f9f013409718f197"
+ end
+ end
+
+ devel do
+ url "https://fastdl.mongodb.org/src/mongodb-src-r3.1.1.tar.gz"
+ sha256 "4f983680ff1cc61d021daed2e2d24c54c069d965ec47276678296240d59efb6f"
+ go_resource "github.com/mongodb/mongo-tools" do
+ url "https://github.com/mongodb/mongo-tools.git",
+ :tag => "r3.1.1",
+ :revision => "6c959d3a8bd9704b5ee9e17e60a4236db6887dc3"
+ end
+ end
bottle do
sha256 "1f770eefcd53060a807d85a8007d426e685f191cc9ea4afa1f7d465d2bf3d643" => :yosemite
@@ -19,13 +38,11 @@ class Mongodb < Formula
depends_on "scons" => :build
depends_on "openssl" => :optional
- go_resource "github.com/mongodb/mongo-tools" do
- url "https://github.com/mongodb/mongo-tools.git",
- :tag => "r3.0.2",
- :revision => "a914adfcea7d76f07512415eec5cd8308e67318e"
- end
-
def install
+ ENV.libcxx if build.devel?
+
+ # New Go tools have their own build script but the server scons "install" target is still
+ # responsible for installing them.
Language::Go.stage_deps resources, buildpath/"src"
cd "src/github.com/mongodb/mongo-tools" do