aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov2011-07-21 13:56:21 +0400
committerAdam Vandenberg2012-02-26 10:28:21 -0800
commita7554d1fa6c8675ffb577bddf280e50805ba1a9b (patch)
tree3ef22634c37315ecf073af957bb1dea877f99249
parentb80ae277c51d244f6dda4562bef25c56645b348d (diff)
downloadhomebrew-a7554d1fa6c8675ffb577bddf280e50805ba1a9b.tar.bz2
Skytools 2.1.12
Closes #6505. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/skytools.rb25
1 files changed, 25 insertions, 0 deletions
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