33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
|
class Beast < Formula
|
||
|
desc "Bayesian Evolutionary Analysis Sampling Trees"
|
||
|
homepage "http://beast.bio.ed.ac.uk/"
|
||
|
url "https://github.com/beast-dev/beast-mcmc/archive/v1.8.4.tar.gz"
|
||
|
sha256 "de8e7dd82eb9017b3028f3b06fd588e5ace57c2b7466ba2e585f9bd8381407af"
|
||
|
head "https://github.com/beast-dev/beast-mcmc.git"
|
||
|
|
||
|
depends_on :ant => :build
|
||
|
depends_on :java => "1.7+"
|
||
|
|
||
|
def install
|
||
|
system "ant", "linux"
|
||
|
libexec.install Dir["release/Linux/BEASTv*/*"]
|
||
|
pkgshare.install_symlink libexec/"examples"
|
||
|
bin.install_symlink Dir[libexec/"bin/*"]
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
cp pkgshare/"examples/clockModels/testUCRelaxedClockLogNormal.xml", testpath
|
||
|
|
||
|
# Run fewer generations to speed up tests
|
||
|
inreplace "testUCRelaxedClockLogNormal.xml", 'chainLength="10000000"',
|
||
|
'chainLength="100000"'
|
||
|
|
||
|
system "#{bin}/beast", "-beagle_off", "testUCRelaxedClockLogNormal.xml"
|
||
|
|
||
|
%w[ops log trees].each do |ext|
|
||
|
output = "testUCRelaxedClockLogNormal." + ext
|
||
|
assert_predicate testpath/output, :exist?, "Failed to create #{output}"
|
||
|
end
|
||
|
end
|
||
|
end
|