diff options
| -rw-r--r-- | Library/Formula/paml.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/paml.rb b/Library/Formula/paml.rb new file mode 100644 index 000000000..592364b16 --- /dev/null +++ b/Library/Formula/paml.rb @@ -0,0 +1,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 |
