-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.67 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
require 'formula'
# This is just the regular hdf5 formula, but held at 1.8.17, to be consistent
# with the version that Modeller uses. We also disable the questionably-licensed
# szip compression.
class Hdf5AT1817 < Formula
desc "File format designed to store large amounts of data"
homepage 'http://www.hdfgroup.org/HDF5'
url 'https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.17/src/hdf5-1.8.17.tar.bz2'
sha256 'fc35dd8fd8d398de6b525b27cc111c21fc79795ad6db1b1f12cb15ed1ee8486a'
keg_only "Don't interfere with the regular HDF5 formula if installed."
bottle do
root_url "https://salilab.org/homebrew/bottles"
sha256 yosemite: "38c800df7c38554ace63dd0b725c633362c8abeb522124c0631c3ddc1e16a242"
sha256 el_capitan: "25a78331e42be52f9af7db72e3a05053d7291ab5c502f9863bbd70fc5a58ddb2"
sha256 sierra: "6f80ff24e2accd94048d47f4e141b990fc347e3aca3448044f6c8630a6597c4d"
end
# TODO - warn that these options conflict
option 'enable-fortran', 'Compile Fortran bindings'
option 'enable-threadsafe', 'Trade performance and C++ or Fortran support for thread safety'
def install
args = %W[
--prefix=#{prefix}
--enable-production
--enable-debug=no
--disable-dependency-tracking
--with-zlib=/usr
--with-szlib=no
--enable-filters=all
--enable-static=yes
--enable-shared=yes
]
if build.include? 'enable-threadsafe'
args.concat %w[--with-pthread=/usr --enable-threadsafe]
else
args << '--enable-cxx'
if build.include? 'enable-fortran'
args << '--enable-fortran'
ENV.fortran
end
end
system "./configure", *args
system "make install"
end
end