From dbd1a4c0ff2712bbd53ac7f5642f107ff305238f Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Fri, 19 Jan 2018 18:21:48 +0100 Subject: [PATCH] bazel@0.2: remove --- Aliases/bazel@0.9 | 1 - Formula/bazel@0.2.rb | 63 -------------------------------------------- 2 files changed, 64 deletions(-) delete mode 120000 Aliases/bazel@0.9 delete mode 100644 Formula/bazel@0.2.rb diff --git a/Aliases/bazel@0.9 b/Aliases/bazel@0.9 deleted file mode 120000 index d4afb4ad3b2..00000000000 --- a/Aliases/bazel@0.9 +++ /dev/null @@ -1 +0,0 @@ -../Formula/bazel.rb \ No newline at end of file diff --git a/Formula/bazel@0.2.rb b/Formula/bazel@0.2.rb deleted file mode 100644 index 26d6fdc53d1..00000000000 --- a/Formula/bazel@0.2.rb +++ /dev/null @@ -1,63 +0,0 @@ -class BazelAT02 < Formula - desc "Google's own build tool" - homepage "https://bazel.io/" - url "https://github.com/bazelbuild/bazel/archive/0.2.3.tar.gz" - sha256 "1dc9841cc504b9f022a5f8ef0918e7bbd9ee682f7e4b3074cca1015742dee9fc" - revision 1 - head "https://github.com/bazelbuild/bazel.git" - - bottle do - cellar :any_skip_relocation - sha256 "bbe45e78336964a0010226ef850fde16959267eb759e882407e91ee1045974c4" => :high_sierra - sha256 "f5e6c648edbec511c3601fadeb844153353a849d1a98477abf35acaa9811653b" => :sierra - sha256 "817f8e2b93a256d85e333e6891a16b5cd03eb844ccaf1a12a31f84aee977ba22" => :el_capitan - sha256 "fc763b0aae8a06c127fe03dd4ad684e5f817e8a5037f682248e2c65ee52f4e7e" => :yosemite - end - - keg_only :versioned_formula - - depends_on :java => "1.8+" - depends_on :macos => :yosemite - - if MacOS.version >= :sierra - # Use nanosleep(2) instead of poll(2) to sleep. - patch do - url "https://github.com/bazelbuild/bazel/commit/fefd232.patch?full_index=1" - sha256 "0530dd270dbb4321080b5a8c7c957da022714d1eb9fa781b14b3c5a718127b63" - end - end - - def install - ENV["EMBED_LABEL"] = "#{version}-homebrew" - - system "./compile.sh" - system "./output/bazel", "build", "scripts:bash_completion" - - bin.install "output/bazel" => "bazel" - bash_completion.install "bazel-bin/scripts/bazel-complete.bash" - zsh_completion.install "scripts/zsh_completion/_bazel" - 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