2011-07-19 18:33:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Grads < Formula
|
|
|
|
homepage 'http://www.iges.org/grads/grads.html'
|
2013-01-26 12:58:54 +00:00
|
|
|
url 'ftp://cola.gmu.edu/grads/2.0/grads-2.0.2-bin-darwin9.8-intel.tar.gz'
|
|
|
|
sha1 '0d42581c614ae627f4b53113c16c0695bd233362'
|
2011-07-19 18:33:08 +00:00
|
|
|
|
2013-08-07 03:53:39 +00:00
|
|
|
# required supplementary files
|
|
|
|
resource 'data2' do
|
|
|
|
url 'ftp://cola.gmu.edu/grads/data2.tar.gz'
|
|
|
|
sha1 'e1cd5f9c4fe8d6ed344a29ee00413aeb6323b7cd'
|
|
|
|
end
|
|
|
|
|
2011-07-19 18:33:08 +00:00
|
|
|
def install
|
2012-05-15 21:15:46 +00:00
|
|
|
rm 'bin/INSTALL'
|
2013-08-09 20:52:51 +00:00
|
|
|
prefix.install 'bin/COPYRIGHT', 'bin'
|
2013-08-07 03:53:39 +00:00
|
|
|
(lib/'grads').install resource('data2')
|
2011-07-19 18:33:08 +00:00
|
|
|
end
|
|
|
|
|
2013-08-09 15:53:57 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
In order to use the GrADS tools, you may need to set some environmental
|
|
|
|
variables. See the documentation at:
|
|
|
|
http://www.iges.org/grads/gadoc/gradcomdgrads.html
|
|
|
|
EOS
|
2011-07-19 18:33:08 +00:00
|
|
|
end
|
|
|
|
end
|