bazel: patch bazel for macOS 10.12 Sierra

* Wrap in stable block
* Use nanosleep(2) instead of poll(2) to sleep
* See
  fefd2329f4

Closes #5270.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
Ed Flanagan 2016-09-26 16:11:18 -07:00 committed by ilovezfs
parent 8236a8db21
commit 901d29971c
1 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,19 @@
class Bazel < Formula
desc "Google's own build tool"
homepage "https://www.bazel.io/"
url "https://github.com/bazelbuild/bazel/archive/0.3.1.tar.gz"
sha256 "52beafc9d78fc315115226f31425e21df1714d96c7dfcdeeb02306e2fe028dd8"
head "https://github.com/bazelbuild/bazel.git"
stable do
url "https://github.com/bazelbuild/bazel/archive/0.3.1.tar.gz"
sha256 "52beafc9d78fc315115226f31425e21df1714d96c7dfcdeeb02306e2fe028dd8"
# Fix build on macOS 10.12 Sierra
patch do
url "https://github.com/bazelbuild/bazel/commit/fefd2329f4812bcb513294fdf417fc726a86ddfd.diff"
sha256 "73455ede4acb9e40923838cb66750a5baacc6b6f8eaaeed72df02dbca38bbe73"
end
end
bottle do
cellar :any_skip_relocation
sha256 "fda77dc7aa1722d9586ec0a4148357ba89436d641c278e7a93da2486ba059059" => :el_capitan