26 lines
865 B
Ruby
26 lines
865 B
Ruby
class Procs < Formula
|
|
desc "Modern replacement for ps written by Rust"
|
|
homepage "https://github.com/dalance/procs"
|
|
url "https://github.com/dalance/procs/archive/v0.8.14.tar.gz"
|
|
sha256 "e0cadc2916adb3c6955d890290d643a088024b36f54290d9bcd38312909e1e14"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "67f080e39c4698911fe4c9c90a514a627f1e94a7e2dae54c85bba728a344647c" => :catalina
|
|
sha256 "9fe4865bba5c79e933eaf3e43353f39c7571ac6875e9abb80cea25cf5a40ac37" => :mojave
|
|
sha256 "b6442f29ec0bad4589f91ba36e31103b1aff3829dc1ba8adda594d7d6debe6cc" => :high_sierra
|
|
end
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
|
end
|
|
|
|
test do
|
|
output = shell_output("#{bin}/procs")
|
|
count = output.lines.count
|
|
assert count > 2
|
|
assert output.start_with?(" PID:")
|
|
end
|
|
end
|