From a7554d1fa6c8675ffb577bddf280e50805ba1a9b Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 21 Jul 2011 13:56:21 +0400 Subject: Skytools 2.1.12 Closes #6505. Signed-off-by: Adam Vandenberg --- Library/Formula/skytools.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Library/Formula/skytools.rb (limited to 'Library') diff --git a/Library/Formula/skytools.rb b/Library/Formula/skytools.rb new file mode 100644 index 000000000..63aae8851 --- /dev/null +++ b/Library/Formula/skytools.rb @@ -0,0 +1,25 @@ +require 'formula' + +class Skytools < Formula + homepage 'http://pgfoundry.org/projects/skytools/' + url 'http://pgfoundry.org/frs/download.php/2872/skytools-2.1.12.tar.gz' + md5 '94f3391d5b3c3ac6c2edcbfbda705573' + + def install + unless `/usr/bin/which pg_config`.size > 0 + opoo "No pg_config was detected." + puts <<-EOS.undent + pg_top requires postgresql in order to compile, but pg_config was not + found. This install will likely fail. + + You can install this with: + brew install postgresql + or by using a package installer from the PostgreSQL project itself. + EOS + end + + system "./configure", "--prefix=#{prefix}" + system "make" + system "make install" + end +end -- cgit v1.2.3