Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cake 5.0.0 #197515

Merged
merged 2 commits into from
Nov 17, 2024
Merged

cake 5.0.0 #197515

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions Formula/c/cake.rb
Original file line number Diff line number Diff line change
@@ -1,46 +1,36 @@
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
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"

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
Expand Down
Loading