forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 1
/
blasr.rb
54 lines (44 loc) · 1.49 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
42
43
44
45
46
47
48
49
50
51
52
53
54
class Blasr < Formula
desc "PacBio long read aligner"
homepage "https://github.com/PacificBiosciences/blasr"
# doi "10.1186/1471-2105-13-238"
# tag "bioinformatics"
url "https://github.com/PacificBiosciences/blasr/archive/smrtanalysis-2.2.tar.gz"
sha256 "bef789accf2662aed409b31227e029c61582d5dfe6a289043db4c1b27fd7ab12"
head "https://github.com/PacificBiosciences/blasr.git"
bottle do
cellar :any
sha256 "cd3242383848697bb8b2cb3e50098f34fbc3a775b0169b91145f053ed316583d" => :mountain_lion
sha256 "6aad5177d90d352db768ebd322f357022d17c658d852051f0459d2f988b261ee" => :x86_64_linux
end
depends_on "hdf5"
# https://github.com/PacificBiosciences/blasr/issues/28
fails_with :clang do
build 602
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}"
# Fix the error: install: mkdir /usr/local/Cellar/blasr/2.2/bin: exists
ENV.deparallelize
system "make", "install", "PREFIX=#{prefix}"
end
test do
system "#{bin}/blasr"
end
end