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