homebrew-core/Formula/skytools.rb

35 lines
714 B
Ruby
Raw Normal View History

require 'formula'
2012-03-01 04:36:21 +00:00
class PostgresqlInstalled < Requirement
def message; <<-EOS.undent
PostgreSQL is required to install.
2012-03-01 04:36:21 +00:00
You can install this with:
brew install postgresql
Or you can use an official installer from:
http://www.postgresql.org/
EOS
end
def satisfied?
which 'postgres'
2012-03-01 04:36:21 +00:00
end
def fatal?
true
end
end
class Skytools < Formula
homepage 'http://pgfoundry.org/projects/skytools/'
url 'http://pgfoundry.org/frs/download.php/3321/skytools-3.1.tar.gz'
sha1 'f31fb7096f160fb959f8a217cbea529da04b277e'
2012-03-01 04:36:21 +00:00
depends_on PostgresqlInstalled.new
2012-03-01 04:36:21 +00:00
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end