mafft 7.313

Closes #24169.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Shohei1029 2018-02-15 17:04:24 +09:00 committed by FX Coudert
parent 54e361b306
commit 956a27083e

28
Formula/mafft.rb Normal file
View file

@ -0,0 +1,28 @@
class Mafft < Formula
desc "Multiple alignments with fast Fourier transforms"
homepage "https://mafft.cbrc.jp/alignment/software/"
url "https://mafft.cbrc.jp/alignment/software/mafft-7.313-with-extensions-src.tgz"
sha256 "c48e5e05b427cae0d862daaef6148675d5ef57e24425c17b4c3d8da5b060eabd"
depends_on :macos => :lion
def install
make_args = %W[CC=#{ENV.cc} CXX=#{ENV.cxx} CFAGS=#{ENV.cflags}
CXXFLAGS=#{ENV.cxxflags} PREFIX=#{prefix} MANDIR=#{man1}
install]
cd "core" do
system "make", *make_args
end
cd "extensions" do
system "make", *make_args
end
end
test do
(testpath/"test.fa").write ">1\nA\n>2\nA"
output = shell_output("#{bin}/mafft test.fa")
assert_match ">1\na\n>2\na", output
end
end