diff options
| author | Ryan Senkbeil | 2011-07-19 13:33:08 -0500 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-04 16:27:56 -0700 |
| commit | 7130650f1f65e62a7fc7e01b3e33ebe792388b2c (patch) | |
| tree | 552100917cf03aeeb59eae073d10205eb19e8118 /Library | |
| parent | b96eee317fde1d2d8bd6965ebf11a2e6eaa1c753 (diff) | |
| download | homebrew-7130650f1f65e62a7fc7e01b3e33ebe792388b2c.tar.bz2 | |
New Formula: GrADS
Closes #6479.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/grads.rb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/grads.rb b/Library/Formula/grads.rb new file mode 100644 index 000000000..a8be73b8b --- /dev/null +++ b/Library/Formula/grads.rb @@ -0,0 +1,30 @@ +require 'formula' + +class GradsSupplementary < Formula + url 'ftp://grads.iges.org/grads/data2.tar.gz' + md5 'cacf16d75f53c876ff18bd4f8100fa66' +end + +class Grads < Formula + url 'ftp://iges.org/grads/2.0/grads-2.0.a9-bin-darwin9.8-intel.tar.gz' + homepage 'http://www.iges.org/grads/grads.html' + md5 '9c9f054aa2f96562fc49771f6364aeab' + version '2.0a9' + + def install + bin.install ['bin/bufrscan', 'bin/grads', 'bin/grib2scan', 'bin/gribmap', 'bin/gribscan', 'bin/gxeps', 'bin/gxps', 'bin/gxtran', 'bin/stnmap', 'bin/wgrib'] + + # Install the required supplementary files + GradsSupplementary.new.brew{ (lib+'grads').install Dir['*'] } + end + + if HOMEBREW_PREFIX.to_s != '/usr/local' + def caveats + <<-EOS.undent + In order to use the GrADS tools, you will need to set the GADDIR + environment variable to: + #{HOMEBREW_PREFIX}/lib/grads + EOS + end + end +end |
