forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paml.rb
33 lines (28 loc) · 831 Bytes
/
paml.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
require 'formula'
class Paml < Formula
homepage 'http://abacus.gene.ucl.ac.uk/software/paml.html'
url 'http://abacus.gene.ucl.ac.uk/software/paml4.6.tgz'
sha1 '91440572c6c42db05716358cb3977d23db930fc3'
devel do
url 'http://abacus.gene.ucl.ac.uk/software/paml4.7.tgz'
sha1 'a741db87aadcab7afa9be522f55f1875dcc660f0'
end
def install
cd 'src' do
system "make", "CC=#{ENV.cc}", "CFLAGS=#{ENV.cflags}"
bin.install %w[baseml basemlg codeml pamp evolver yn00 chi2]
end
(share+'paml').install 'dat'
(share+'paml').install Dir['*.ctl']
doc.install Dir['doc/*']
doc.install 'examples'
end
def caveats
<<-EOS.undent
Documentation and examples:
#{HOMEBREW_PREFIX}/share/doc/paml
Dat and ctl files:
#{HOMEBREW_PREFIX}/share/paml
EOS
end
end