diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongodb.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 48d9616f4..1e451247f 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -18,6 +18,12 @@ class Mongodb < Formula option "with-boost", "Compile using installed boost, not the version shipped with mongodb" depends_on "boost" => :optional end + + # Fix Clang v8 build failure from build warnings and -Werror + patch do + url "https://github.com/mongodb/mongo/commit/be4bc7.patch" + sha1 "72152f9bec94aaaacb16d0b17511b0862d38ac21" + end end devel do @@ -35,15 +41,6 @@ class Mongodb < Formula depends_on "boost" => :optional end - def patches - if build.stable? - [ - # Fix Clang v8 build failure from build warnings and -Werror - 'https://github.com/mongodb/mongo/commit/be4bc7.patch' - ] - end - end - depends_on 'scons' => :build depends_on 'openssl' => :optional |
