homebrew-core/Formula/skytools.rb
nibbles 2bits 4046ee8411 skytools 3.0.3 and fix Requirement
Upgrade Skytools to version 3.0.3.
Change the `satisfied?` section of the Postgresql requirement to
look for `postgres` not `pg_config` because the build fails when
it can't find the former and because the system Postgresql has the
latter binary causing the Requirement to be met while the build
would fail.  Tested using llvm and clang from XCode-4.3.2.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-11 21:58:04 -07:00

34 lines
716 B
Ruby

require 'formula'
class PostgresqlInstalled < Requirement
def message; <<-EOS.undent
PostgresQL is required to install.
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'
end
def fatal?
true
end
end
class Skytools < Formula
homepage 'http://pgfoundry.org/projects/skytools/'
url 'http://pgfoundry.org/frs/download.php/3294/skytools-3.0.3.tar.gz'
sha1 '8894db961216386344ac9f2c47ae4125c64afb0b'
depends_on PostgresqlInstalled.new
def install
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
end
end