forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
artemis.rb
40 lines (32 loc) · 1.45 KB
/
artemis.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
class Artemis < Formula
homepage "http://www.sanger.ac.uk/resources/software/artemis"
# tag "bioinformatics"
# doi "10.1093/bioinformatics/btr703"
# head "https://github.com/sanger-pathogens/Artemis"
url "ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v16/v16.0.11/artemis_v16.0.11.jar"
sha256 "f368714105646cfc31460cfcfb72b8b33490c7684ee5323d7dd181060039c80f"
bottle do
root_url "https://homebrew.bintray.com/bottles-science"
cellar :any
sha256 "f820d56e5b383d2c9b8d4525229034aea0185e195104be6cc6ad2036bf31a7b0" => :yosemite
sha256 "49bd7b5ad6c279fd05ceb484ad75386284ecf5f9e4c520899b6f589d3d2af46a" => :mavericks
sha256 "e74ad576452d26d85453d30cd2efaf0259cb5e2e0689ec2de6ead93df36cb69e" => :mountain_lion
end
depends_on :java
def install
opts = "-mx1000m -ms20m"
jar = "artemis_v16.0.11.jar"
java = share/"java"
java.install jar
bin.write_jar_script java/jar, "art", opts
inreplace bin/"art", "-jar", "-cp"
inreplace bin/"art", '"$@"', 'uk.ac.sanger.artemis.components.ArtemisMain "$@"'
bin.write_jar_script java/jar, "act", opts
inreplace bin/"act", "-jar", "-cp"
inreplace bin/"act", '"$@"', 'uk.ac.sanger.artemis.components.ActMain "$@"'
bin.write_jar_script java/jar, "dnaplotter", opts
inreplace bin/"dnaplotter", "-jar", "-cp"
inreplace bin/"dnaplotter", '"$@"', 'uk.ac.sanger.artemis.circular.DNADraw "$@"'
end
# No test block because these tools are GUI only
end