forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransdecoder.rb
31 lines (24 loc) · 1021 Bytes
/
transdecoder.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 Transdecoder < Formula
homepage "https://transdecoder.github.io/"
# tag "bioinformatics"
url "https://github.com/TransDecoder/TransDecoder/archive/2.0.1.tar.gz"
sha256 "ce069da72c8a04e739f8c057af4f97187bf587d3f0d3db40465dfc2c89393e22"
head "https://github.com/TransDecoder/TransDecoder.git"
bottle do
cellar :any
sha256 "559044bf89f298ede284e3a9f72ef0fc7bd6c912e2b5ee753ceade016370d704" => :yosemite
sha256 "fae619c6f41eec60f5bf1bd76af2b110253be8fee275c7610c3bf7ac80873b02" => :mavericks
sha256 "549db77a17285d8a616d64e1e6b9baf21e3beb9e424d6427dfce9af43737c30a" => :mountain_lion
end
depends_on "cd-hit"
def install
# Remove the cd-hit source code
rm_rf "transdecoder_plugins"
prefix.install Dir["*"]
bin.install_symlink "../TransDecoder.LongOrfs", "../TransDecoder.Predict"
end
test do
assert_match "USAGE", shell_output("#{bin}/TransDecoder.LongOrfs 2>&1", 1)
assert_match "USAGE", shell_output("#{bin}/TransDecoder.Predict 2>&1", 1)
end
end