28 lines
1.1 KiB
Ruby
28 lines
1.1 KiB
Ruby
class PgTop < Formula
|
|
desc "Monitor PostgreSQL processes"
|
|
homepage "http://ptop.projects.postgresql.org/"
|
|
url "https://www.mirrorservice.org/sites/ftp.postgresql.org/projects/pgFoundry/ptop/pg_top/3.7.0/pg_top-3.7.0.tar.bz2"
|
|
mirror "http://pgfoundry.org/frs/download.php/3504/pg_top-3.7.0.tar.bz2"
|
|
sha256 "c48d726e8cd778712e712373a428086d95e2b29932e545ff2a948d043de5a6a2"
|
|
revision 3
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "32637c635d8da78d4910df2dabd474f4115c31cba57890ad053b3a43cb38a758" => :high_sierra
|
|
sha256 "5f06ae8b8ef1c979143e19c0527c31c8d649d23e1e9612c63bc6c5ff05bf8276" => :sierra
|
|
sha256 "6d0104d461d7187ad02e1085098f2dad4fa00c4f2db93b1b910a6a072517ca54" => :el_capitan
|
|
end
|
|
|
|
depends_on "postgresql"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
(buildpath/"config.h").append_lines "#define HAVE_DECL_STRLCPY 1" if MacOS.version >= :mavericks
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/pg_top -V")
|
|
end
|
|
end
|