2009-11-10 19:53:27 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mafft < Formula
|
2009-11-10 19:53:27 +00:00
|
|
|
homepage 'http://mafft.cbrc.jp/alignment/software/index.html'
|
2012-02-13 05:07:15 +00:00
|
|
|
url 'http://align.bmr.kyushu-u.ac.jp/mafft/software/mafft-6.717-with-extensions-src.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '18d82340918949bbcdce659d4a09421ce06d67b1'
|
2009-11-10 19:53:27 +00:00
|
|
|
|
2012-12-13 05:40:58 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 421
|
|
|
|
cause <<-EOS.undent
|
|
|
|
Clang does not allow default arguments in out-of-line definitions of
|
|
|
|
class template members.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-11-10 19:53:27 +00:00
|
|
|
def install
|
2012-02-13 05:07:15 +00:00
|
|
|
cd 'core' do
|
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"PREFIX=#{prefix}",
|
|
|
|
"MANDIR=#{man1}",
|
|
|
|
"install"
|
2009-11-10 19:53:27 +00:00
|
|
|
end
|
|
|
|
|
2012-02-13 05:07:15 +00:00
|
|
|
cd 'extensions' do
|
|
|
|
system "make", "CC=#{ENV.cc}",
|
|
|
|
"CXX=#{ENV.cxx}",
|
|
|
|
"CXXFLAGS=#{ENV.cxxflags}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"PREFIX=#{prefix}",
|
|
|
|
"MANDIR=#{man1}",
|
|
|
|
"install"
|
|
|
|
end
|
2009-11-10 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|