2011-07-19 18:27:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GribApi < Formula
|
|
|
|
homepage 'http://www.ecmwf.int/products/data/software/grib_api.html'
|
2012-09-04 03:09:25 +00:00
|
|
|
url 'http://www.ecmwf.int/products/data/software/download/software_files/grib_api-1.9.16.tar.gz'
|
|
|
|
sha1 'fd85e8b939231d4d8f9dc3131fa0aab73fbbcf78'
|
2011-07-19 18:27:53 +00:00
|
|
|
|
|
|
|
depends_on 'jasper'
|
|
|
|
|
2012-03-14 16:11:11 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
cause 'Undefined symbols when linking.'
|
|
|
|
end
|
|
|
|
|
2011-07-19 18:27:53 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
|
|
|
ENV.no_optimization
|
|
|
|
ENV.fortran
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|