2011-07-19 18:33:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GradsSupplementary < Formula
|
|
|
|
url 'ftp://grads.iges.org/grads/data2.tar.gz'
|
|
|
|
md5 'cacf16d75f53c876ff18bd4f8100fa66'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Grads < Formula
|
|
|
|
homepage 'http://www.iges.org/grads/grads.html'
|
2012-09-04 01:35:39 +00:00
|
|
|
url 'ftp://cola.gmu.edu/grads/2.0/grads-2.0.1-bin-darwin9.8-intel.tar.gz'
|
|
|
|
sha1 '29191df3e25e9c7b70e730fcb7ddb65903e32a80'
|
2011-07-19 18:33:08 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-15 21:15:46 +00:00
|
|
|
rm 'bin/INSTALL'
|
|
|
|
prefix.install 'bin/COPYRIGHT'
|
|
|
|
prefix.install 'bin'
|
2011-07-19 18:33:08 +00:00
|
|
|
|
|
|
|
# Install the required supplementary files
|
|
|
|
GradsSupplementary.new.brew{ (lib+'grads').install Dir['*'] }
|
|
|
|
end
|
|
|
|
|
2012-05-15 21:15:46 +00:00
|
|
|
def caveats
|
|
|
|
if HOMEBREW_PREFIX.to_s != '/usr/local' then <<-EOS.undent
|
|
|
|
In order to use the GrADS tools, you will need to set the GADDIR
|
|
|
|
environment variable to:
|
|
|
|
#{HOMEBREW_PREFIX}/lib/grads
|
2011-07-19 18:33:08 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|