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.0/procps-v4.0.0.tar.gz"
sha256 "dea39e0e7b1367e28c887d736d1a9783df617497538603cdff432811a1016945"
license "GPL-2.0-or-later"
head "https://gitlab.com/procps-ng/procps.git", branch: "master"
bottle do
sha256 x86_64_linux: "efab0532e0905c46e47f2e5ea9ac3cc413eba0b5a3a8531b04587b5592af561d"
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