forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
a5.rb
31 lines (27 loc) · 1.11 KB
/
a5.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
class A5 < Formula
desc "Pipeline for de novo assembly of microbial genomes"
homepage "https://sourceforge.net/projects/ngopt/"
# doi "10.1371/journal.pone.0042304", "arXiv:1401.5130"
# tag "bioinformatics"
if OS.mac?
url "https://downloads.sourceforge.net/project/ngopt/a5_miseq_macOS_20150522.tar.gz"
sha256 "f7e2c42538fc16e3bd43623a74f1557af26d8864bd18041ab42c5477d3d78421"
elsif OS.linux?
url "https://downloads.sourceforge.net/project/ngopt/a5_miseq_linux_20150522.tar.gz"
sha256 "1b8ccfceec78436ecf9f2e27998a7b91050d4a7f46918ef48b7de5d3aa4a8e5b"
end
bottle do
cellar :any_skip_relocation
sha256 "712a52ae946e36d3410f6ea98425605aceffebaa738a397e6721100de6474e12" => :el_capitan
sha256 "589bb490b43853bd8bbb0817018141efd3e65794844fbcfaf950d6ea55d4d7bb" => :yosemite
sha256 "c6ae86aad65c91dbcf2b647acdbd25ac5672f8c04f34e7aa9fb991992d9e8fbd" => :mavericks
end
def install
libexec.install Dir["*"]
bin.install_symlink "../libexec/bin/a5_pipeline.pl"
end
test do
system "#{bin}/a5_pipeline.pl --version 2>&1 |grep A5"
system "#{libexec}/test.a5.sh"
end
end