diff options
| author | Adam Vandenberg | 2012-06-10 14:32:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-10 14:32:29 -0700 |
| commit | 06f634dc1298d2980dcf28105a63c87e2a2460f8 (patch) | |
| tree | d56deb1c2f9b93a8f18de40b24ee8af77cc16856 /Library/Formula | |
| parent | 53a228b9830363f63686f52337be9ded90812012 (diff) | |
| download | homebrew-06f634dc1298d2980dcf28105a63c87e2a2460f8.tar.bz2 | |
saga-core: fix audit warning
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/saga-core.rb | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/Library/Formula/saga-core.rb b/Library/Formula/saga-core.rb index 9cbe7b423..23ebd0876 100644 --- a/Library/Formula/saga-core.rb +++ b/Library/Formula/saga-core.rb @@ -1,14 +1,33 @@ 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 'pg_config' + end + def fatal? + true + end +end + class SagaCore < Formula homepage 'http://saga-project.org' url 'http://download.saga.cct.lsu.edu/saga-core/saga-core-1.6.tgz' - md5 'a5cda84bdae1f96646f39fda0aa7db73' + sha1 '89cc089b4feb5aae01ae5d371477d2d9a5204f1d' head 'https://svn.cct.lsu.edu/repos/saga/core/trunk/' depends_on 'boost' - depends_on 'postgresql' + depends_on PostgresqlInstalled.new def install system "./configure", "--prefix=#{prefix}", |
