forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
a5.rb
32 lines (28 loc) · 1021 Bytes
/
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
32
class A5 < Formula
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_20141120.tar.gz"
sha1 "720728be842202345892dd76a74784c4f2eddbaa"
elsif OS.linux?
url "https://downloads.sourceforge.net/project/ngopt/a5_miseq_linux_20141120.tar.gz"
sha1 "3a9bfdecb519064db98065cb3cb525705c641207"
end
bottle do
root_url "https://downloads.sf.net/project/machomebrew/Bottles/science"
cellar :any
revision 1
sha1 "65d101be4a3a252c1637f9a718ee49f9107ae869" => :yosemite
sha1 "924f112b45f9f789345c7ed39b1cfc04ec0caf7d" => :mavericks
sha1 "3de22dfa9ca3c2e29e1a2b53e16390cc6d8e2afd" => :mountain_lion
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