forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clustal-w.rb
30 lines (26 loc) · 1.01 KB
/
clustal-w.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
class ClustalW < Formula
homepage "http://www.clustal.org/clustal2/"
# tag "bioinformatics"
# doi "10.1093/nar/22.22.4673"
url "http://www.clustal.org/download/2.1/clustalw-2.1.tar.gz"
sha256 "e052059b87abfd8c9e695c280bfba86a65899138c82abccd5b00478a80f49486"
bottle do
cellar :any_skip_relocation
revision 1
sha256 "476d0596f089217ba1b23c12f69e34ac5127405cf757033cdcede523ce79608c" => :el_capitan
sha256 "14c64492275401c1a62d54edb1e75e6e8367fd854706e8776e175aa055f9bf08" => :yosemite
sha256 "15abc50c36d8f6edf502e7656cdec0dff2765c811baeb1dc3a8a149e6e3e9837" => :mavericks
end
def install
# header is missing #include <string>
# reported to [email protected] Dec 11 2015
inreplace "src/general/VectorOutOfRange.h",
"#include <exception>",
"#include <exception>\n#include<string>"
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/clustalw2 --version 2>&1 |grep CLUSTAL"
end
end