diff --git a/Formula/d/dart-sdk.rb b/Formula/d/dart-sdk.rb index c7a6aa3366972..e8d295d21cb02 100644 --- a/Formula/d/dart-sdk.rb +++ b/Formula/d/dart-sdk.rb @@ -1,18 +1,18 @@ class DartSdk < Formula desc "Dart Language SDK, including the VM, dart2js, core libraries, and more" homepage "https://dart.dev" - url "https://github.com/dart-lang/sdk/archive/refs/tags/3.1.0.tar.gz" - sha256 "ab104a71e4f50bf152c8afce738ad12ea6ed882d5b9ed17122ff9763b2c98cff" + url "https://github.com/dart-lang/sdk/archive/refs/tags/3.1.1.tar.gz" + sha256 "85a376e98a22cd8ebccbb9f0e9289582800d59f8a41eeb6c282dabf03340c646" license "BSD-3-Clause" bottle do - sha256 cellar: :any_skip_relocation, arm64_ventura: "c3599284ef1a799432d22967e0ba7c5c05fb6d2495593e6c6128c96918567413" - sha256 cellar: :any_skip_relocation, arm64_monterey: "af0ef6ed5416ef9f7272b04351314a98424b9b274dbcaabe603d6273d80a577a" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "c04ca9e4bceb6a2edb486cd39a031c9b53b810672510fc064120272cf7229adb" - sha256 cellar: :any_skip_relocation, ventura: "2b621029c154cccf2133e01d150679f4d8ce53ffa33ef804f8c4f2f115732f75" - sha256 cellar: :any_skip_relocation, monterey: "db16615c6e7ceeed76580cb70c90bf670bf46e47e35e931b4a9ea154e76e3a4b" - sha256 cellar: :any_skip_relocation, big_sur: "9b95cad55ed44625a4c99b7be106c4a33eee18f1b81354593c8f311fa7643972" - sha256 cellar: :any_skip_relocation, x86_64_linux: "357dfe8cbe3c95cf544e0a0c51f4cdae8c0b0cbbd80e9eb4e7b942039d1a13be" + sha256 cellar: :any_skip_relocation, arm64_ventura: "f5fa85d10118b44e7a3d7d75081dbfc86a6048833678d9b0cfcb73f9fb0a43e6" + sha256 cellar: :any_skip_relocation, arm64_monterey: "eec04446ab4df99ad9d5cccbe3819f5f36c732026bd45bb3968a15bbb9d661e0" + sha256 cellar: :any_skip_relocation, arm64_big_sur: "74f57e6377f06ee175f5ac9d93e26a4205d75ea1191485400ebb94d2ae8d7c6e" + sha256 cellar: :any_skip_relocation, ventura: "7434b6189d985e468ab009bc047621227b7aedff992acf688e8214f2f531efa0" + sha256 cellar: :any_skip_relocation, monterey: "9b2b2fc7a0d551e50603d59106bb535a30be9d6435a9e58653cc3f7214c4a37c" + sha256 cellar: :any_skip_relocation, big_sur: "1b1330429d5f632f7b463a585e2a756524b1561aa71cfb74a51a0896c50736ce" + sha256 cellar: :any_skip_relocation, x86_64_linux: "dd4046d7d419fef22d3194afe47a586dd0b804076469460184e25ef80b616bd0" end depends_on "ninja" => :build @@ -24,14 +24,18 @@ class DartSdk < Formula resource "depot-tools" do url "https://chromium.googlesource.com/chromium/tools/depot_tools.git", - revision: "1c4052d88ac510a3db4351e52c088cac524c726c" + revision: "8babcb7e2ec9ffe4e0394a66378423242dd66e6c" end def install resource("depot-tools").stage(buildpath/"depot-tools") + ENV["DEPOT_TOOLS_UPDATE"] = "0" ENV.append_path "PATH", "#{buildpath}/depot-tools" - system "fetch", "--no-history", "dart" + + system "gclient", "config", "--name", "sdk", "https://dart.googlesource.com/sdk.git@#{version}" + system "gclient", "sync", "--no-history" + chdir "sdk" do arch = Hardware::CPU.arm? ? "arm64" : "x64" system "./tools/build.py", "--no-goma", "--mode=release", "--arch=#{arch}", "create_sdk"