39 lines
1.1 KiB
Ruby
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/v3.3.17/procps-v3.3.17.tar.gz"
|
|
sha256 "efa6f6b4625a795f5c8a3d5bd630a121d270bc8573c5a0b6a6068e73611d6cd5"
|
|
license "GPL-2.0-or-later"
|
|
head "https://gitlab.com/procps-ng/procps.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 x86_64_linux: "11f662e9854db3017ac6b6f1ba3182088e4f8271ac29412d4e7914b5c240a094"
|
|
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
|