forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeast.rb
More file actions
34 lines (27 loc) · 708 Bytes
/
beast.rb
File metadata and controls
34 lines (27 loc) · 708 Bytes
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
require 'formula'
class Beast < Formula
homepage 'http://beast.bio.ed.ac.uk/'
url 'https://beast-mcmc.googlecode.com/files/BEASTv1.8.0.tgz'
sha1 'e4e483cee01263115a827b8c992be02a7bf9cf8e'
head do
url 'https://beast-mcmc.googlecode.com/svn/trunk/'
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/BEASTv1.8.0/*' : '*']
end
test do
system "beast -help"
end
def caveats; <<-EOS.undent
Examples are installed in:
#{opt_prefix}/examples/
EOS
end
end