forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Homebrew#200767 from Homebrew/macmon
macmon 0.4.0 (new formula)
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1847,6 +1847,7 @@ lz4 | |
lzip | ||
macchina | ||
mackup | ||
macmon | ||
mactop | ||
mafft | ||
mage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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" | ||
|
||
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 | ||
|
||
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 |