homebrew-core/Formula/mafft.rb
2012-09-03 11:36:42 -07:00

27 lines
802 B
Ruby

require 'formula'
class Mafft < Formula
homepage 'http://mafft.cbrc.jp/alignment/software/index.html'
url 'http://align.bmr.kyushu-u.ac.jp/mafft/software/mafft-6.717-with-extensions-src.tgz'
sha1 '18d82340918949bbcdce659d4a09421ce06d67b1'
def install
cd 'core' do
system "make", "CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"PREFIX=#{prefix}",
"MANDIR=#{man1}",
"install"
end
cd 'extensions' do
system "make", "CC=#{ENV.cc}",
"CXX=#{ENV.cxx}",
"CXXFLAGS=#{ENV.cxxflags}",
"CFLAGS=#{ENV.cflags}",
"PREFIX=#{prefix}",
"MANDIR=#{man1}",
"install"
end
end
end