forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidba.rb
38 lines (32 loc) · 1023 Bytes
/
idba.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
require "formula"
class Idba < Formula
homepage "http://i.cs.hku.hk/~alse/hkubrg/projects/idba/"
#doi "10.1093/bioinformatics/bts174"
#tag "bioinformatics"
url "https://hku-idba.googlecode.com/files/idba-1.1.1.tar.gz"
sha1 "6dcbd35281c2bc46b8df550a369952a9138e92a2"
bottle do
cellar :any
sha1 "ba49a3b357e8406997b67350f92ded9005675e25" => :yosemite
sha1 "0980af9b110108e391d151f8c07cd2be4986e455" => :mavericks
sha1 "477629a12e2f514b50e4a16873afce2fda40d8bf" => :mountain_lion
end
fails_with :clang do
build 600
cause "Requires OpenMP"
end
def install
system "./configure",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
bin.install Dir["bin/idba*"].select { |x| File.executable? x }
libexec.install Dir["bin/*"].select { |x| File.executable? x }
doc.install %w[AUTHORS ChangeLog NEWS README]
end
test do
system "#{bin}/idba_ud 2>&1 |grep IDBA"
end
end