homebrew-core/Formula/abyss.rb
2018-10-25 11:12:39 +02:00

50 lines
1.8 KiB
Ruby

class Abyss < Formula
desc "Genome sequence assembler for short reads"
homepage "http://www.bcgsc.ca/platform/bioinfo/software/abyss"
url "https://github.com/bcgsc/abyss/releases/download/2.1.2/abyss-2.1.2.tar.gz"
sha256 "15823fbfcdadf61f93b07a7d040106e51a7cbd091d4d71fd29809475ca0f4e71"
bottle do
sha256 "20117882aaab7c5ed8b14c6f0dcd99469fc9c1647635784ced685336229a2a0b" => :mojave
sha256 "98b4de087149b934c42d56137c744a70d9f46f03a7620ef42df62c0029789ecb" => :high_sierra
sha256 "2dae278d8ab9d91b0bf7057db60e903c7979686ea3aa77f6deff3eda3e19111c" => :sierra
end
head do
url "https://github.com/bcgsc/abyss.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "multimarkdown" => :build
end
depends_on "boost" => :build
depends_on "google-sparsehash" => :build
depends_on "gcc"
depends_on "open-mpi"
fails_with :clang # no OpenMP support
resource("testdata") do
url "http://www.bcgsc.ca/platform/bioinfo/software/abyss/releases/1.3.4/test-data.tar.gz"
sha256 "28f8592203daf2d7c3b90887f9344ea54fda39451464a306ef0226224e5f4f0e"
end
def install
system "./autogen.sh" if build.head?
system "./configure", "--enable-maxk=128",
"--prefix=#{prefix}",
"--with-boost=#{Formula["boost"].include}",
"--with-mpi=#{Formula["open-mpi"].prefix}",
"--with-sparsehash=#{Formula["google-sparsehash"].prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules"
system "make", "install"
end
test do
testpath.install resource("testdata")
system "#{bin}/abyss-pe", "k=25", "name=ts", "in=reads1.fastq reads2.fastq"
system "#{bin}/abyss-fac", "ts-unitigs.fa"
end
end