homebrew-core/Formula/procps.rb

39 lines
1.1 KiB
Ruby

class Procps < Formula
desc "Utilities for browsing procfs"
homepage "https://gitlab.com/procps-ng/procps"
url "https://gitlab.com/procps-ng/procps/-/archive/v4.0.2/procps-v4.0.2.tar.gz"
sha256 "b03e4b55eaa5661e726acb714e689356d80bc056b09965c2284d039ba8dc21e8"
license "GPL-2.0-or-later"
head "https://gitlab.com/procps-ng/procps.git", branch: "master"
bottle do
sha256 x86_64_linux: "06259018ca643fff24ffba58139fff6176af84af752f5d4f0a213b743db4caa1"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on :linux
depends_on "ncurses"
def install
system "./autogen.sh"
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
# kill and uptime are also provided by coreutils
rm [bin/"kill", bin/"uptime", man1/"kill.1", man1/"uptime.1"]
end
test do
system "#{bin}/ps", "--version"
assert_match "grep homebrew", shell_output("ps aux | grep homebrew")
end
end