aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/newick-utils.rb
blob: 921193d86168abfe0a8cccf5286779ba5329b082 (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
require 'formula'

class NewickUtils < Formula
  url 'http://cegg.unige.ch/pub/newick-utils-1.5.0.tar.gz'
  homepage 'http://cegg.unige.ch/newick_utils'
  md5 '5f65b0fe30bf9389297616358f01fac7'

  def patches
    # don't bother testing nw_gen, it's known to fail on MacOSX
    DATA
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make check"
    system "make install"
  end

  def test
    system "echo '(B:1,C:2)A;' | nw_display -"
  end
end

__END__
--- a/tests/test_nw_gen.sh
+++ b/tests/test_nw_gen.sh
@@ -106,0 +107,2 @@
+pass=TRUE
+