forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astral.rb
27 lines (20 loc) · 791 Bytes
/
astral.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
27
class Astral < Formula
desc "Estimate species tree given set of unrooted gene trees"
homepage "https://github.com/smirarab/ASTRAL"
# doi "10.1093/bioinformatics/btu462"
# tag "bioinformatics"
url "https://github.com/smirarab/ASTRAL/archive/v4.10.7.tar.gz"
sha256 "314b49e0129ec06a7c78a1b60d590259ede6a5e75253407031e108d8048fcc79"
# head "https://github.com/smirarab/ASTRAL.git"
bottle :unneeded
depends_on :java
depends_on "unzip" => :build unless OS.mac?
def install
safe_system "unzip", "Astral.#{version}.zip"
pkgshare.install "lib", "main", "Astral/astral.#{version}.jar"
bin.write_jar_script pkgshare/"astral.#{version}.jar", "astral"
end
test do
system bin/"astral", "-i", pkgshare/"main/test_data/simulated_14taxon.gene.tre"
end
end