Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 775 Bytes
require 'formula'
# NCO: Tools for slicing and dicing NetCDF files.
class Nco < Formula
homepage 'http://nco.sourceforge.net'
url 'http://nco.sourceforge.net/src/nco-4.2.2.tar.gz'
sha1 'f3cb8c47c5fa8bf7d6673f1619428d74c12fd9d5'
depends_on 'netcdf'
depends_on 'gsl'
depends_on 'udunits'
# NCO requires the C++ interface in Antlr2.
depends_on 'homebrew/versions/antlr2'
def install
inreplace 'configure' do |s|
# The Antlr 2.x program installed by Homebrew is called antlr2
s.gsub! 'for ac_prog in runantlr antlr', 'for ac_prog in runantlr antlr2'
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--enable-netcdf4"
system "make install"
end
end