homebrew-core/Formula/picard-tools.rb
Igor Kapkov d57a56c513
picard-tools 2.18.23
Closes #35780.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-01-08 08:50:09 +08:00

25 lines
745 B
Ruby

class PicardTools < Formula
desc "Tools for manipulating HTS data and formats"
homepage "https://broadinstitute.github.io/picard/"
url "https://github.com/broadinstitute/picard/releases/download/2.18.23/picard.jar"
sha256 "c45f90f3a08bc3b1404375939b1f42757f8a29363c6706f5268b2dba180da28c"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install "picard.jar"
bin.write_jar_script libexec/"picard.jar", "picard"
end
test do
(testpath/"test.fasta").write <<~EOS
>U00096.2:1-70
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCT
CTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
EOS
cmd = "#{bin}/picard NormalizeFasta I=test.fasta O=/dev/stdout"
assert_match "TCTCTG", shell_output(cmd)
end
end