homebrew-core/Formula/igv.rb

22 lines
617 B
Ruby
Raw Normal View History

class Igv < Formula
desc "Interactive Genomics Viewer"
homepage "https://www.broadinstitute.org/software/igv"
2018-03-21 05:53:32 +00:00
url "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_2.4.10.zip"
sha256 "c21981dac516c01e2309a7b06474fd896c5018fb774438d0bad15403bc1ddbf3"
bottle :unneeded
depends_on :java => "1.8+"
def install
inreplace "igv.sh", /^prefix=.*/, "prefix=#{libexec}"
libexec.install "igv.sh", Dir["*.jar"]
bin.install_symlink libexec/"igv.sh" => "igv"
end
test do
(testpath/"script").write "exit"
2018-02-09 23:17:25 +00:00
assert_match "Version", shell_output("#{bin}/igv -b script")
end
end