homebrew-core/Formula/igv.rb
Caleb Xu 235583144e
igv 2.5.3
Closes #41747.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-07-09 22:27:16 +08:00

25 lines
847 B
Ruby

class Igv < Formula
desc "Interactive Genomics Viewer"
homepage "https://www.broadinstitute.org/software/igv"
url "https://data.broadinstitute.org/igv/projects/downloads/2.5/IGV_2.5.3.zip"
sha256 "d33f6e20aaf5158770c6154953b8b3df89ced0f9416b399502864d3ccd44f22a"
bottle :unneeded
depends_on :java => "1.8"
def install
inreplace "igv.sh", /^prefix=.*/, "prefix=#{libexec}"
libexec.install "igv.sh", "lib"
(bin/"igv").write_env_script libexec/"igv.sh", Language::Java.java_home_env("1.8")
end
test do
assert_match "org/broad/igv/ui/IGV.class", shell_output("jar tf #{libexec}/lib/igv.jar")
# Fails on Jenkins with Unhandled exception: java.awt.HeadlessException
unless ENV["CI"]
(testpath/"script").write "exit"
assert_match "Version", shell_output("#{bin}/igv -b script")
end
end
end