diff --git a/Aliases/dart@3.5 b/Aliases/dart@3.5 index b6f4972..c3a807f 120000 --- a/Aliases/dart@3.5 +++ b/Aliases/dart@3.5 @@ -1 +1 @@ -../Formula/dart@3.5.3.rb \ No newline at end of file +../Formula/dart@3.5.4.rb \ No newline at end of file diff --git a/Formula/dart.rb b/Formula/dart.rb index b97a188..8aab3ff 100644 --- a/Formula/dart.rb +++ b/Formula/dart.rb @@ -34,26 +34,26 @@ class Dart < Formula conflicts_with "dart-beta", because: "dart-beta ships the same binaries" if OS.mac? && Hardware::CPU.intel? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-macos-x64-release.zip" - sha256 "7d673ca3ece0ff563061d65a0e5b84ac8905d26c257fc8dc3d543c8dafa1d0fc" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-macos-x64-release.zip" + sha256 "b06db3f3d0e92af0939ca467e87ecababa96da4f9fe5031a788304b5df949374" elsif OS.mac? && Hardware::CPU.arm? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-macos-arm64-release.zip" - sha256 "c73ea25a5b01312bfad0e222dbd6f0677c46e2a4faa19b9c2b18f8506da03f8b" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-macos-arm64-release.zip" + sha256 "c045940e0f5d4caca74e6ebed5a3bf9953383e831bac138e568a60d8b5053c02" elsif OS.linux? && Hardware::CPU.intel? if Hardware::CPU.is_64_bit? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-linux-x64-release.zip" - sha256 "34f6eb82b226dbeaf61ea12a6d9cdd2d3374f7baadc38a6da55545ebc6ba3500" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-x64-release.zip" + sha256 "8d0c5e34f2a9d6b9f5ebf05252ae1703893f6087d547c631b390aef2d0cd6967" else - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-linux-ia32-release.zip" - sha256 "5ea88c21ccc5d4388a9d304a47ac4633c40b24d54501ceb1c7b166b14497387d" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-ia32-release.zip" + sha256 "2f90a98cfd45427555b06aac813f70573ed5882a512c3f2cf1e732ae53087b0a" end elsif OS.linux? && Hardware::CPU.arm? if Hardware::CPU.is_64_bit? - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-linux-arm64-release.zip" - sha256 "fe82992506112aaf63aebbe2716c133db30ba2c98d97926c0947a2d8d023e5e6" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-arm64-release.zip" + sha256 "a91d64dd3173349cee58c82f5ebf18bb9670f65eecc26d5684124c3def3f83ec" else - url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.3/sdk/dartsdk-linux-arm-release.zip" - sha256 "30b485142f9bde8a967114a9094d499bdbb1bd3a101adadd5268ce1ac4c617db" + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-arm-release.zip" + sha256 "f56d635ae4119f78ed887eaf8fb5e7821405fc10816d8ef42d3a9105c7ffb1f4" end end diff --git a/Formula/dart@3.5.4.rb b/Formula/dart@3.5.4.rb new file mode 100644 index 0000000..90ac2e2 --- /dev/null +++ b/Formula/dart@3.5.4.rb @@ -0,0 +1,55 @@ +# typed: false +# frozen_string_literal: true + +class DartAT354 < Formula + desc "SDK" + homepage "https://dart.dev" + + keg_only :versioned_formula + if OS.mac? && Hardware::CPU.intel? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-macos-x64-release.zip" + sha256 "b06db3f3d0e92af0939ca467e87ecababa96da4f9fe5031a788304b5df949374" + elsif OS.mac? && Hardware::CPU.arm? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-macos-arm64-release.zip" + sha256 "c045940e0f5d4caca74e6ebed5a3bf9953383e831bac138e568a60d8b5053c02" + elsif OS.linux? && Hardware::CPU.intel? + if Hardware::CPU.is_64_bit? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-x64-release.zip" + sha256 "8d0c5e34f2a9d6b9f5ebf05252ae1703893f6087d547c631b390aef2d0cd6967" + else + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-ia32-release.zip" + sha256 "2f90a98cfd45427555b06aac813f70573ed5882a512c3f2cf1e732ae53087b0a" + end + elsif OS.linux? && Hardware::CPU.arm? + if Hardware::CPU.is_64_bit? + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-arm64-release.zip" + sha256 "a91d64dd3173349cee58c82f5ebf18bb9670f65eecc26d5684124c3def3f83ec" + else + url "https://storage.googleapis.com/dart-archive/channels/stable/release/3.5.4/sdk/dartsdk-linux-arm-release.zip" + sha256 "f56d635ae4119f78ed887eaf8fb5e7821405fc10816d8ef42d3a9105c7ffb1f4" + end + end + + def install + libexec.install Dir["*"] + bin.install_symlink "#{libexec}/bin/dart" + bin.write_exec_script Dir["#{libexec}/bin/{pub,dart?*}"] + end + + def caveats + <<~EOS + Please note the path to the Dart SDK: + #{opt_libexec} + EOS + end + + test do + (testpath/"sample.dart").write <<~EOS + void main() { + print(r"test message"); + } + EOS + + assert_equal "test message\n", shell_output("#{bin}/dart sample.dart") + end +end