aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/paml.rb
blob: 8fa4c677dd0bceb466846a6c9a9d59131e82d2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

# Phylogenetic Analysis by Maximum Likelihood
class Paml < Formula
  url 'http://abacus.gene.ucl.ac.uk/software/paml4.4c.tar.gz'
  homepage 'http://abacus.gene.ucl.ac.uk/software/paml.html'
  md5 '0ab0b722bc28c15b22554ec68576b09f'
  version '4.4c'

  def install
    Dir.chdir 'src' do
      inreplace "Makefile" do |s|
        s.change_make_var! 'CFLAGS', ENV.cflags
      end
      system "make"
      bin.install %w[baseml basemlg codeml pamp evolver yn00 chi2]
    end

    (share+'paml').install 'dat'
    (share+'paml').install Dir['*.ctl']
    doc.install Dir['doc/*']
  end
end