forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beast.rb
43 lines (35 loc) · 1.05 KB
/
beast.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Beast < Formula
homepage "http://beast.bio.ed.ac.uk/"
# doi "10.1093/molbev/mss075"
# tag "bioinformatics"
url "http://tree.bio.ed.ac.uk/download.php?id=92&num=3"
version "1.8.2"
sha1 "47a5aca20fecf6cb61a301f8b03d1e750858721a"
bottle do
cellar :any
sha256 "e1357fad70b3a51ce734a705667f2e9d16bdddf480bf340559cdad0bbcaacb65" => :yosemite
sha256 "c411831dc26441e4b5bd92dc1926fbd8171d5c8d26d17239f2ce1e9604f67f8b" => :mavericks
sha256 "c3974c08c01dfa26db9407b070b4302a109043725fef586b4d82290603f2dfee" => :mountain_lion
end
head do
url "https://github.com/beast-dev/beast-mcmc.git"
depends_on :ant
end
def install
system "ant", "linux" if build.head?
# Move jars to libexec
inreplace Dir["bin/*"] do |s|
s["$BEAST/lib"] = "$BEAST/libexec"
end
mv "lib", "libexec"
prefix.install Dir[build.head? ? "release/Linux/BEASTv*/*" : "*"]
end
test do
system "#{bin}/beast", "-help"
end
def caveats; <<-EOS.undent
Examples are installed in:
#{opt_prefix}/examples/
EOS
end
end