class SspaceLongread < Formula homepage "http://www.baseclear.com/lab-products/bioinformatics-tools/sspace-longread/" # doi "10.1186/1471-2105-15-211" # tag "bioinformatics" version "1-1" url "http://www.baseclear.com/download.php?file_id=1786" sha256 "15db83ed199ec2a7023c3453e0d22d3eecbb99587d3d62729224504563ddda8f" depends_on "blasr" def install bin.mkdir # Add shebang line to the script system "echo '#!/usr/bin/perl' |cat - SSPACE-LongRead.pl >#{bin/"SSPACE-LongRead.pl"}" bin.install_symlink "SSPACE-LongRead.pl" => "SSPACE-LongRead" end test do system "#{bin}/SSPACE-LongRead -h 2>&1 |grep SSPACE-LongRead" end end