forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvague.rb
29 lines (23 loc) · 862 Bytes
/
vague.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
class Vague < Formula
homepage "http://www.vicbioinformatics.com/software.vague.shtml"
# head "https://github.com/Victorian-Bioinformatics-Consortium/vague.git"
# tag "bioinformatics"
# doi "10.1093/bioinformatics/bts664"
url "http://www.vicbioinformatics.com/vague-1.0.5.tar.gz"
sha256 "7144bef4a5c8ccb3d0e6b27201a506e1cfa25812fb9bbe54842dc910100c5907"
depends_on "velvet"
def install
opts = "-Xmx3750m"
jar = "vague.jar"
java = share/"java"
java.install jar
bin.write_jar_script java/jar, "vague", opts
inreplace "velvetk.pl", "/usr/bin/perl", "/usr/bin/env perl"
bin.install "velvetk.pl"
doc.install "README.txt", "ChangeLog", "COPYING.txt"
end
test do
# can't test main app because it is GUI only so we test a helper script
assert_match "genome", shell_output("velvetk.pl 2>&1", 1)
end
end