2011-07-19 18:27:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GribApi < Formula
|
2012-03-14 16:11:11 +00:00
|
|
|
url 'http://www.ecmwf.int/products/data/software/download/software_files/grib_api-1.9.16.tar.gz'
|
2011-07-19 18:27:53 +00:00
|
|
|
homepage 'http://www.ecmwf.int/products/data/software/grib_api.html'
|
2012-03-14 16:11:11 +00:00
|
|
|
md5 '490cda08585e263d9f13daed4e7b688c'
|
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
|