-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
procps.rb
38 lines (33 loc) 路 1.14 KB
/
procps.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.4/procps-v4.0.4.tar.gz"
sha256 "3214fab0f817d169f2c117842ba635bafb1cd6090273e311a8b5c6fc393ddb9d"
license "GPL-2.0-or-later"
head "https://gitlab.com/procps-ng/procps.git", branch: "master"
bottle do
sha256 x86_64_linux: "da827925a4c781da3e980e2e243176ca8933387bb856a03479035ee017e08276"
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("#{bin}/ps aux | grep homebrew")
end
end