beast: import from homebrew/science
Closes #18440. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
3d6c40d288
commit
0d632ed5e0
1 changed files with 32 additions and 0 deletions
32
Formula/beast.rb
Normal file
32
Formula/beast.rb
Normal file
|
@ -0,0 +1,32 @@
|
|||
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
|
Loading…
Reference in a new issue