Skip to content

Commit

Permalink
pg_top 3.7.0
Browse files Browse the repository at this point in the history
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 Homebrew#24863.
Closes Homebrew#26450.

Signed-off-by: Brett Koonce <[email protected]>
  • Loading branch information
felixbuenemann authored and brettkoonce committed Feb 6, 2014
1 parent ca82698 commit 7034bc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Library/Formula/pg_top.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

class PgTop < Formula
homepage 'http://ptop.projects.postgresql.org/'
url 'http://pgfoundry.org/frs/download.php/1781/pg_top-3.6.2.tar.gz'
sha1 'c165a5b09ab961bf98892db94b307e31ac0cf832'
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

0 comments on commit 7034bc4

Please sign in to comment.