-
Notifications
You must be signed in to change notification settings - Fork 9
/
rtg-tools.rb
35 lines (31 loc) · 1.06 KB
/
rtg-tools.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
require 'formula'
class RtgTools < Formula
homepage "http://realtimegenomics.com/products/rtg-tools/"
version "3.7.1"
url "https://github.com/RealTimeGenomics/rtg-tools/releases/download/3.7.1/rtg-tools-3.7.1-nojre.zip"
sha256 "d00f7b73e86789d4e82a983448aa118cff129a4c7c00700bf587f778a84253ed"
def install
java = share / 'java'
java.install 'RTG.jar'
doc.install 'RTGOperationsManual.pdf'
doc.install 'RTGOperationsManual'
prefix.install 'LICENSE.txt'
prefix.install 'README.txt'
prefix.install 'ReleaseNotes.txt'
prefix.install 'rtg'
prefix.install 'third-party'
prefix.install 'scripts'
open(prefix / 'rtg.cfg', 'w') do |file|
file.write <<-EOS.undent
RTG_TALKBACK= # Attempt to send crash logs to realtime genomics, true to enable
RTG_USAGE= # Enable simple usage logging, true to enable
RTG_JAVA_OPTS= # Additional arguments passed to the JVM
RTG_JAR=#{java}/RTG.jar
EOS
end
bin.install_symlink prefix / 'rtg'
end
test do
system 'rtg'
end
end