From b6a4859f4f618ab219070d650f0960a7957ecf97 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Thu, 23 Aug 2018 17:57:54 +0200 Subject: [PATCH 1/2] Remove bazel.rb Formula The Bazel team has decided to move to their own Homebrew tap, as outlined on our blog https://blog.bazel.build/2018/08/22/bazel-homebrew.html We aren't able to maintain the Homebrew core formula any longer and would thus prefer to have it removed. --- Formula/bazel.rb | 63 --------------------------------------------- tap_migrations.json | 1 + 2 files changed, 1 insertion(+), 63 deletions(-) delete mode 100644 Formula/bazel.rb diff --git a/Formula/bazel.rb b/Formula/bazel.rb deleted file mode 100644 index 281ad530e2b7..000000000000 --- a/Formula/bazel.rb +++ /dev/null @@ -1,63 +0,0 @@ -class Bazel < Formula - desc "Google's own build tool" - homepage "https://bazel.build/" - url "https://github.com/bazelbuild/bazel/releases/download/0.15.2/bazel-0.15.2-dist.zip" - sha256 "bf53ec73be3a6d412d85ef612cec6e9c85db45da42001fab0cf1dad44cfc03f1" - - bottle do - cellar :any_skip_relocation - sha256 "864cca985e517b24905b269fa102aa879dadc270a43572bd61d7a7754933c71e" => :mojave - sha256 "390fd161839611a293e225c2dc91a37cab8d8fa7dfd4290cc680beb29c05fa15" => :high_sierra - sha256 "94ae758521a96174d512a62ec214056014c9b6d2ff53b70f6f0ad688940e4a3a" => :sierra - sha256 "4edb4d88f886980bc1933be3fe9f704bc48fc1663e74c3fadb49ce7333d4642a" => :el_capitan - end - - depends_on :java => "1.8" - depends_on :macos => :yosemite - - def install - ENV["EMBED_LABEL"] = "#{version}-homebrew" - # Force Bazel ./compile.sh to put its temporary files in the buildpath - ENV["BAZEL_WRKDIR"] = buildpath/"work" - - (buildpath/"sources").install buildpath.children - - cd "sources" do - system "./compile.sh" - system "./output/bazel", "--output_user_root", - buildpath/"output_user_root", "build", "scripts:bash_completion" - - bin.install "scripts/packages/bazel.sh" => "bazel" - bin.install "output/bazel" => "bazel-real" - bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8")) - - bash_completion.install "bazel-bin/scripts/bazel-complete.bash" - zsh_completion.install "scripts/zsh_completion/_bazel" - - prefix.install_metafiles - end - end - - test do - touch testpath/"WORKSPACE" - - (testpath/"ProjectRunner.java").write <<~EOS - public class ProjectRunner { - public static void main(String args[]) { - System.out.println("Hi!"); - } - } - EOS - - (testpath/"BUILD").write <<~EOS - java_binary( - name = "bazel-test", - srcs = glob(["*.java"]), - main_class = "ProjectRunner", - ) - EOS - - system bin/"bazel", "build", "//:bazel-test" - system "bazel-bin/bazel-test" - end -end diff --git a/tap_migrations.json b/tap_migrations.json index 0ba7d4398860..0f06083cae85 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -9,6 +9,7 @@ "auctex": "homebrew/tex", "avidemux": "homebrew/cask", "awsenv": "Luzifer/tools", + "bazel": "bazelbuild/tap" "chromedriver": "homebrew/cask", "cloudfoundry-cli": "pivotal/tap", "cmucl": "homebrew/cask", From ccade8ef0c6da2d0a15a15d89bab570467a9bc76 Mon Sep 17 00:00:00 2001 From: Jakob Buchgraber Date: Fri, 24 Aug 2018 11:22:05 +0200 Subject: [PATCH 2/2] fix typo --- tap_migrations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_migrations.json b/tap_migrations.json index 0f06083cae85..bc06f7a1f7a3 100644 --- a/tap_migrations.json +++ b/tap_migrations.json @@ -9,7 +9,7 @@ "auctex": "homebrew/tex", "avidemux": "homebrew/cask", "awsenv": "Luzifer/tools", - "bazel": "bazelbuild/tap" + "bazel": "bazelbuild/tap", "chromedriver": "homebrew/cask", "cloudfoundry-cli": "pivotal/tap", "cmucl": "homebrew/cask",