aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/phyml.rb
blob: c2abe0934323cbefc2c57a902d64d204dd408e0f (plain)
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
require 'formula'

class Phyml < Formula
  homepage 'http://www.atgc-montpellier.fr/phyml/'
  url 'http://phyml.googlecode.com/files/phyml-20110919.tar.gz'
  md5 'd95c73c5c03d082db21564a54978f281'

  def install
    # separate steps required
    system "./configure", "--prefix=#{prefix}"
    system "make"

    system "./configure", "--prefix=#{prefix}", "--enable-phytime"
    system "make"

    bin.install %w(src/phyml src/phytime)
    doc.install Dir['doc/phyml-manual.pdf']
    rm_rf Dir['examples/.svn']
    chmod 0644, Dir['examples/*']
    share.install Dir['examples/*']
  end

  def caveats; <<-EOS.undent
    Examples have been installed here:
      #{share}

    See options for phyml by running:
      phmyl --help

    PhyML must be run with the "-i" option to specify an input or it will
    segfault. Example:
      phyml -i #{share}/nucleic
    EOS
  end
end