From 335bee2db36d02153f628979e81cc2346aa222b1 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:37:40 +0000 Subject: [PATCH 1/2] cake 5.0.0 cake: remove build patch Signed-off-by: Rui Chen Signed-off-by: Michael Cho --- Formula/c/cake.rb | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Formula/c/cake.rb b/Formula/c/cake.rb index c4a1868ba7beb..9a7d359480c45 100644 --- a/Formula/c/cake.rb +++ b/Formula/c/cake.rb @@ -1,8 +1,8 @@ class Cake < Formula desc "Cross platform build automation system with a C# DSL" homepage "https://cakebuild.net/" - url "https://github.com/cake-build/cake/archive/refs/tags/v4.2.0.tar.gz" - sha256 "467158d7f6455f4dfc97a9ccfd7688c84531427c7089ad83f69b09190892d4a7" + url "https://github.com/cake-build/cake/archive/refs/tags/v5.0.0.tar.gz" + sha256 "0c77a4a8626b1f6aa886e542026f33e2645bda7177e66c6ca1f60a6cf80b9bf0" license "MIT" bottle do @@ -18,29 +18,20 @@ class Cake < Formula conflicts_with "coffeescript", because: "both install `cake` binaries" - # dotnet sdk version requirement patch, upstream pr ref, https://github.com/cake-build/cake/pull/4377 - patch do - url "https://github.com/cake-build/cake/commit/92193becffb09dce10fda010a0de03f941919739.patch?full_index=1" - sha256 "257220fb97858bd80c561be5d342c33eb21709cc76efefe9f8a0a3703e1cc329" - end - def install dotnet = Formula["dotnet"] - os = OS.mac? ? "osx" : OS.kernel_name.downcase - arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s - args = %W[ --configuration Release --framework net#{dotnet.version.major_minor} --output #{libexec} - --runtime #{os}-#{arch} --no-self-contained - /p:Version=#{version} + --use-current-runtime + -p:AppHostRelativeDotNet=#{dotnet.opt_libexec.relative_path_from(libexec)} + -p:Version=#{version} ] system "dotnet", "publish", "src/Cake", *args - env = { DOTNET_ROOT: "${DOTNET_ROOT:-#{dotnet.opt_libexec}}" } - (bin/"cake").write_env_script libexec/"Cake", env + bin.install_symlink libexec/"Cake" => "cake" end test do From 9fe6eca67bed6202491dc9f50a63d5ca2a8ffe0d Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sun, 17 Nov 2024 00:23:46 +0000 Subject: [PATCH 2/2] cake: update 5.0.0 bottle. --- Formula/c/cake.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Formula/c/cake.rb b/Formula/c/cake.rb index 9a7d359480c45..32c8601680fc5 100644 --- a/Formula/c/cake.rb +++ b/Formula/c/cake.rb @@ -6,12 +6,11 @@ class Cake < Formula license "MIT" bottle do - sha256 cellar: :any_skip_relocation, arm64_sequoia: "94a6f6297c1432c5e049759e27aa4d33cb62c38013feb4af1faee7ee204eea8f" - sha256 cellar: :any_skip_relocation, arm64_sonoma: "e5843f082902a7684078be97fe4c3a2ceebb628329bc7f31205094c1c6a08d74" - sha256 cellar: :any_skip_relocation, arm64_ventura: "388467b61b9804d9c6a1134e7a584e4cfb176fe5af16e754216e5706458d5a78" - sha256 cellar: :any_skip_relocation, sonoma: "374a0d5c728f47ee1c3d5f832364caa3cfa70f4f0cdcae205cb046e17f6cb2c4" - sha256 cellar: :any_skip_relocation, ventura: "3cda4eb8413d6a4513d0bc085abfd89ed502c79efd71d903dff76e3930ed058c" - sha256 cellar: :any_skip_relocation, x86_64_linux: "4279a9392db8d794023860f45309380d7767b2f70cdf27398e5d0617ff160486" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "78c022a53d5c794a02cb245365a20e68101ff498636aa9d9b0d5791df21e6946" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "39611171d03f29228d6c0f1402647d20a7ada16eff8a8c9fcd25c57d8ce5b7b1" + sha256 cellar: :any_skip_relocation, arm64_ventura: "37df34c69614dea7ac08ea390a065de5765df3117ab8b7bf4d76135d9ec3ab3e" + sha256 cellar: :any_skip_relocation, ventura: "9d076394489c1d9004fb0749b3723dde1fd951a1cb4f7f81672e83c82680fd02" + sha256 cellar: :any_skip_relocation, x86_64_linux: "9790da9b120af327c140e99edb3d8bd88fe07016045863938915193f376494b2" end depends_on "dotnet"