homebrew-core/Formula/phyml.rb
nibbles 2bits 8b75894370 phyml 20120412
- Upgrade to version 20120412

Closes Homebrew/homebrew#15475.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-16 20:27:58 -07:00

35 lines
887 B
Ruby

require 'formula'
class Phyml < Formula
homepage 'http://www.atgc-montpellier.fr/phyml/'
url 'https://phyml.googlecode.com/files/phyml-20120412.tar.gz'
sha1 '8a4699ad2bba7e2f76c8eefa277d29290f92071c'
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