mafft 7.313
Closes #24169. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
54e361b306
commit
956a27083e
1 changed files with 28 additions and 0 deletions
28
Formula/mafft.rb
Normal file
28
Formula/mafft.rb
Normal 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
|
Loading…
Reference in a new issue