Skip to content

Commit

Permalink
cake 5.0.0
Browse files Browse the repository at this point in the history
cake: remove build patch

Signed-off-by: Rui Chen <[email protected]>
Signed-off-by: Michael Cho <[email protected]>
  • Loading branch information
BrewTestBot authored and cho-m committed Nov 16, 2024
1 parent 8b78670 commit 335bee2
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions Formula/c/cake.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Cake < Formula

Check warning on line 1 in Formula/c/cake.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

No bottle built for cake!

cake has unbottled dependencies, so a bottle will not be built.
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
Expand All @@ -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
Expand Down

0 comments on commit 335bee2

Please sign in to comment.