forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoab.rb
27 lines (22 loc) · 861 Bytes
/
moab.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
27
require 'formula'
class Moab < Formula
homepage 'https://trac.mcs.anl.gov/projects/ITAPS/wiki/MOAB'
url 'https://bitbucket.org/fathomteam/moab/get/4.6.2.tar.gz'
sha1 'cecd30aaf9bdbb58078e06b0097a9144cac63d7f'
option 'without-check', "Skip build-time checks (not recommended)"
depends_on :autoconf
depends_on :automake
depends_on :libtool
depends_on 'netcdf'
depends_on 'hdf5'
depends_on :fortran if build.with? 'check'
def install
system "autoreconf", "--force", "--install"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--libdir=#{libexec}/lib"
system "make install"
# Moab installs non-lib files in libdir. Link only the libraries.
lib.install_symlink Dir["#{libexec}/lib/*.a"]
system "make check" if build.with? 'check'
end
end