forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blasr.rb
41 lines (35 loc) · 1.04 KB
/
blasr.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require 'formula'
class Blasr < Formula
homepage 'https://github.com/PacificBiosciences/blasr'
#doi '10.1186/1471-2105-13-238'
url 'https://github.com/PacificBiosciences/blasr/archive/smrtanalysis-2.1.tar.gz'
sha1 'ac6add1ba8a82cac2515da36c0ec53060c20ea0f'
head 'https://github.com/PacificBiosciences/blasr.git'
depends_on "hdf5"
fails_with :clang do
build 503
cause <<-EOS.undent
error: destructor type 'HDFWriteBuffer<int>' in object
destruction expression does not match the type
'BufferedHDFArray<int>' of the object being destroyed
EOS
end
fails_with :gcc do
build 5666
cause <<-EOS.undent
error: invalid conversion
from 'void (*)(H5::H5Object&, std::string, void*)'
to 'void (*)(H5::H5Location&, std::string, void*)'
EOS
end
def install
hdf5 = Formula["hdf5"]
system "make", "STATIC=",
"HDF5INCLUDEDIR=#{hdf5.opt_include}",
"HDF5LIBDIR=#{hdf5.opt_lib}"
system 'make', 'install', 'PREFIX=' + prefix
end
test do
system 'blasr'
end
end