vsearch 2.15.0 (new formula)

Closes #57062.

Signed-off-by: chenrui <chenrui333@gmail.com>
master
Andrew Kane 2020-06-28 20:27:04 -07:00 committed by chenrui
parent 3fd0ab2b96
commit cfac866030
1 changed files with 27 additions and 0 deletions

27
Formula/vsearch.rb Normal file
View File

@ -0,0 +1,27 @@
class Vsearch < Formula
desc "Versatile open-source tool for microbiome analysis"
homepage "https://github.com/torognes/vsearch"
url "https://github.com/torognes/vsearch/archive/v2.15.0.tar.gz"
sha256 "c5d6eca1e4bf0c6e28221356b806c1d2322b51c39f40888636ab094c4df2e231"
depends_on "autoconf" => :build
depends_on "automake" => :build
def install
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
(testpath/"test.fasta").write <<~EOS
>U00096.2:1-70
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
EOS
system bin/"vsearch", "--rereplicate", "test.fasta", "--output", "output.txt"
assert_predicate testpath/"output.txt", :exist?
end
end