mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
Upgraded to 3.7.0 and added a config.h fix to fix compile errors on Mavericks caused by strlcpy being a macro now. Closes #24863. Closes #26450. Signed-off-by: Brett Koonce <koonce@gmail.com>
17 lines
506 B
Ruby
17 lines
506 B
Ruby
require 'formula'
|
|
|
|
class PgTop < Formula
|
|
homepage 'http://ptop.projects.postgresql.org/'
|
|
url 'http://pgfoundry.org/frs/download.php/3504/pg_top-3.7.0.tar.bz2'
|
|
sha1 '377518d95d65011b984d23fd87fb3cc91aaa1afd'
|
|
|
|
depends_on :postgresql
|
|
|
|
def install
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "echo '#define HAVE_DECL_STRLCPY 1' >> config.h" if MacOS.version >= :mavericks
|
|
system "make install"
|
|
end
|
|
end
|