2017-12-12 14:37:43 +00:00
|
|
|
class Igv < Formula
|
|
|
|
desc "Interactive Genomics Viewer"
|
|
|
|
homepage "https://www.broadinstitute.org/software/igv"
|
2018-02-03 09:19:41 +00:00
|
|
|
url "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_2.4.8.zip"
|
|
|
|
sha256 "18acc8410085308b169c4442274848ed7e285196c8bfd0b43100005996a644b1"
|
2018-02-07 04:58:10 +00:00
|
|
|
revision 1
|
2017-12-12 14:37:43 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
depends_on :java => "1.8+"
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace "igv.sh", /^prefix=.*/, "prefix=#{libexec}"
|
|
|
|
libexec.install "igv.sh", Dir["*.jar"]
|
2018-02-07 04:58:10 +00:00
|
|
|
bin.install_symlink libexec/"igv.sh" => "igv"
|
2017-12-12 14:37:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"script").write "exit"
|
2018-02-09 23:17:25 +00:00
|
|
|
assert_match "Version", shell_output("#{bin}/igv -b script")
|
2017-12-12 14:37:43 +00:00
|
|
|
end
|
|
|
|
end
|