forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphyutility.rb
26 lines (23 loc) · 836 Bytes
/
phyutility.rb
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
class Phyutility < Formula
desc "analyze and modify trees and data matrices"
homepage "http://blackrim.org/programs/phyutility/"
url "https://github.com/blackrim/phyutility/releases/download/v2.7.1/phyutility_2.7.1.tar.gz"
sha256 "3438336abda593cf3043d49910815dc8b8e506e9e44831726407f37a1a7506bc"
# doi "10.1093/bioinformatics/btm619"
# tag "bioinformatics'
def install
libexec.install "phyutility.jar"
bin.write_jar_script libexec/"phyutility.jar", "phyutility"
pkgshare.install "examples", "manual.pdf"
end
def caveats; <<-EOS.undent
The manual and examples are in:
#{opt_pkgshare}
EOS
end
test do
cp Dir[pkgshare/"examples/*"], testpath
system *%W[#{bin}/phyutility -concat -in test.aln test2.aln -out test_new.aln]
compare_file "test_new.aln", "test_all.aln"
end
end