bazel 0.3.1
- use BAZEL_WRKDIR to put generated files in buildpath/"work" - output root of second Bazel run set to buildpath/"output_user_root" - install the wrapper script along with Bazel Closes #3427. Signed-off-by: ilovezfs <ilovezfs@icloud.com>master
parent
4a27502f13
commit
240d2223b4
|
@ -1,8 +1,8 @@
|
||||||
class Bazel < Formula
|
class Bazel < Formula
|
||||||
desc "Google's own build tool"
|
desc "Google's own build tool"
|
||||||
homepage "http://www.bazel.io/"
|
homepage "http://www.bazel.io/"
|
||||||
url "https://github.com/bazelbuild/bazel/archive/0.3.0.tar.gz"
|
url "https://github.com/bazelbuild/bazel/archive/0.3.1.tar.gz"
|
||||||
sha256 "d2309c29781dc4ede79eb652776517ca3c1dff29b58849dc80bdb86031cce3ad"
|
sha256 "52beafc9d78fc315115226f31425e21df1714d96c7dfcdeeb02306e2fe028dd8"
|
||||||
head "https://github.com/bazelbuild/bazel.git"
|
head "https://github.com/bazelbuild/bazel.git"
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
|
@ -16,11 +16,15 @@ class Bazel < Formula
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV["EMBED_LABEL"] = "#{version}-homebrew"
|
ENV["EMBED_LABEL"] = "#{version}-homebrew"
|
||||||
|
# Force Bazel ./compile.sh to put its temporary files in the buildpath
|
||||||
|
ENV["BAZEL_WRKDIR"] = buildpath/"work"
|
||||||
|
|
||||||
system "./compile.sh"
|
system "./compile.sh"
|
||||||
system "./output/bazel", "build", "scripts:bash_completion"
|
system "./output/bazel", "--output_user_root", buildpath/"output_user_root",
|
||||||
|
"build", "scripts:bash_completion"
|
||||||
|
|
||||||
bin.install "output/bazel" => "bazel"
|
bin.install "scripts/packages/bazel.sh" => "bazel"
|
||||||
|
bin.install "output/bazel" => "bazel-real"
|
||||||
bash_completion.install "bazel-bin/scripts/bazel-complete.bash"
|
bash_completion.install "bazel-bin/scripts/bazel-complete.bash"
|
||||||
zsh_completion.install "scripts/zsh_completion/_bazel"
|
zsh_completion.install "scripts/zsh_completion/_bazel"
|
||||||
end
|
end
|
||||||
|
@ -44,7 +48,7 @@ class Bazel < Formula
|
||||||
)
|
)
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
system "#{bin}/bazel", "build", "//:bazel-test"
|
system bin/"bazel", "build", "//:bazel-test"
|
||||||
system "bazel-bin/bazel-test"
|
system "bazel-bin/bazel-test"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue