forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mafft.rb
39 lines (34 loc) · 1.02 KB
/
mafft.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'formula'
class Mafft < Formula
homepage 'http://mafft.cbrc.jp/alignment/software/index.html'
url 'http://mafft.cbrc.jp/alignment/software/mafft-7.037-with-extensions-src.tgz'
sha1 '9bfbd95873be90761e474c807de0527168a71b18'
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
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
def test
system 'mafft --version 2>&1 |grep -q mafft'
end
end