forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmor.rb
26 lines (22 loc) · 780 Bytes
/
cmor.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class Cmor < Formula
homepage "http://www2-pcmdi.llnl.gov/cmor"
url "https://github.com/PCMDI/cmor/archive/CMOR-2.9.2.tar.gz"
sha1 "78a7c198690aa53a403b00b273be5d400fac16dc"
depends_on "ossp-uuid"
depends_on "udunits"
depends_on "netcdf" => "with-fortran"
depends_on :fortran
def install
ENV.append "CFLAGS", "-Wno-error=unused-command-line-argument-hard-error-in-future"
inreplace "configure", "${with_uuid}/include", "${with_uuid}/include/ossp"
args = %W[
--prefix=#{prefix}
--with-uuid=#{Formula["ossp-uuid"].opt_prefix}
--with-udunits2=#{Formula["udunits"].opt_prefix}
--with-netcdf=#{Formula["netcdf"].opt_prefix}
]
system "./configure", *args
system "make", "install"
pkgshare.install "Test"
end
end