forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abyss.rb
56 lines (44 loc) · 1.71 KB
/
abyss.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
55
56
class Abyss < Formula
homepage "http://www.bcgsc.ca/platform/bioinfo/software/abyss"
desc "ABySS: genome sequence assembler for short reads"
# doi "10.1101/gr.089532.108"
# tag "bioinformatics"
url "https://github.com/bcgsc/abyss/releases/download/1.9.0/abyss-1.9.0.tar.gz"
sha256 "1030fcea4bfae942789deefd3a4ffb30653143e02eb6a74c7e4087bb4bf18a14"
bottle do
cellar :any
sha256 "f0df6ae35b0db758ecba42d60cf7f6bf793e9cfe54bf05e6663afc51f4cbb5eb" => :yosemite
sha256 "d1c37d46cbef0781ab1078d390b530f805e731ca7ed1272225db6f32d4c04b23" => :mavericks
sha256 "943dd756f97b6c787f86cd95b150cab78d70d673648a2209b867e58ee4827906" => :mountain_lion
end
head do
url "https://github.com/bcgsc/abyss.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "multimarkdown" => :build
end
option "enable-maxk=", "Set the maximum k-mer length to N [default is 96]"
option "without-check", "Skip build-time tests (not recommended)"
option "with-openmp", "Enable OpenMP multithreading"
needs :openmp if build.with? "openmp"
# Only header files are used from these packages, so :build is appropriate
depends_on "boost" => :build
depends_on "google-sparsehash" => :build
depends_on :mpi => [:cc, :recommended]
# strip breaks the ability to read compressed files.
skip_clean "bin"
def install
system "./autogen.sh" if build.head?
args = [
"--enable-maxk=#{ARGV.value("enable-maxk") || 96}",
"--prefix=#{prefix}",
"--disable-dependency-tracking"]
system "./configure", *args
system "make"
system "make", "check" if build.with? "check"
system "make", "install"
end
test do
system "#{bin}/ABYSS", "--version"
end
end