From fd1d76de1fd0f645482d186dbc6ed2db13dc8f99 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 11 Dec 2024 00:15:19 -0500 Subject: [PATCH 1/2] macmon 0.4.0 (new formula) Signed-off-by: Rui Chen macmon: update test Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/m/macmon.rb | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Formula/m/macmon.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index cdc27d904f625..623b78b0e90bb 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -1847,6 +1847,7 @@ lz4 lzip macchina mackup +macmon mactop mafft mage diff --git a/Formula/m/macmon.rb b/Formula/m/macmon.rb new file mode 100644 index 0000000000000..5055e821f12f8 --- /dev/null +++ b/Formula/m/macmon.rb @@ -0,0 +1,21 @@ +class Macmon < Formula + desc "Sudoless performance monitoring for Apple Silicon processors" + homepage "https://github.com/vladkens/macmon" + url "https://github.com/vladkens/macmon/archive/refs/tags/v0.4.0.tar.gz" + sha256 "68fe17e534846e94d43539eba9ef55aa7ad0887ae2d805c1029a639e476b53e0" + license "MIT" + head "https://github.com/vladkens/macmon.git", branch: "main" + + depends_on "rust" => :build + depends_on arch: :arm64 + depends_on :macos + + def install + system "cargo", "install", *std_cargo_args + end + + test do + # cannot be functionally tested on CI as it lacks of system profile for processor + assert_match version.to_s, shell_output("#{bin}/macmon --version") + end +end From ca644784362838e71ad42b59b9cf5bf4bdd532b6 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 11 Dec 2024 16:09:19 +0000 Subject: [PATCH 2/2] macmon: add 0.4.0 bottle. --- Formula/m/macmon.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/m/macmon.rb b/Formula/m/macmon.rb index 5055e821f12f8..21a42ea3435ce 100644 --- a/Formula/m/macmon.rb +++ b/Formula/m/macmon.rb @@ -6,6 +6,12 @@ class Macmon < Formula license "MIT" head "https://github.com/vladkens/macmon.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "f77e3d5f6eb464102626d590520d175fc6fc29ec416abfbf58cd13c46e7e01c2" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "a147275fad2dc8144ae79ff6ba2a9b475054df1268a6ec7d016dc91b8b374b9a" + sha256 cellar: :any_skip_relocation, arm64_ventura: "e5c39d15ed9bafd987ddcfaa895ac9402a35758a97b0dd0767acc5cfff8ff39d" + end + depends_on "rust" => :build depends_on arch: :arm64 depends_on :macos