aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLance Hepler2011-11-21 13:21:08 -0800
committerJack Nagel2011-11-26 09:40:22 -0600
commit7da9455b85127d8dc4823c33b613a101f420d1c6 (patch)
treea6fc921cdba9f6a1371ec332902a02b9a28cba79 /Library
parent01f8941a6bca9707929b2172add66d593c2b3838 (diff)
downloadhomebrew-7da9455b85127d8dc4823c33b613a101f420d1c6.tar.bz2
New formula: newick-utils
newick-utils is a set of tools for working with Newick-formatted tree data. Closes #8717. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/newick-utils.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/newick-utils.rb b/Library/Formula/newick-utils.rb
new file mode 100644
index 000000000..921193d86
--- /dev/null
+++ b/Library/Formula/newick-utils.rb
@@ -0,0 +1,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
++