Skip to content

Commit 4cc20fe

Browse files
authored
Merge pull request #224867 from ankane/polypolish
polypolish 0.6.0 (new formula)
2 parents 5fd389e + 6098154 commit 4cc20fe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Formula/p/polypolish.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
class Polypolish < Formula
2+
desc "Short-read polishing tool for long-read assemblies"
3+
homepage "https://github.com/rrwick/Polypolish"
4+
url "https://github.com/rrwick/Polypolish/archive/refs/tags/v0.6.0.tar.gz"
5+
sha256 "99ea799352cecf6723b73fb4c5c64dd2091ff1cdab6eef10309e06c642e56855"
6+
license "GPL-3.0-or-later"
7+
head "https://github.com/rrwick/Polypolish.git", branch: "main"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "c1422d344c3b60428cf5e201ecbe405edad60e3f0404ce8029e3d713846220ae"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "0b90a3ac3ed81082d4da52cf6a596dfe61a397dac3a4e994bbea5ca3417f6476"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "a8b92132e290d9acc0dfda7f77733d753a047a9300b48addb519d7da6bad1859"
13+
sha256 cellar: :any_skip_relocation, sonoma: "33cb907b077ec76328435441f43a1bf57fcca5cbe2f9959ab6a30c4b21524b63"
14+
sha256 cellar: :any_skip_relocation, ventura: "921305cc787de3679dada5645917f3e183e96aac6f4dccc8930adcb395eda850"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "fe3e0cff58d47896e53f46ad77f65e9ab63c6f6a1242fbd88de05584d7dad59d"
16+
end
17+
18+
depends_on "rust" => :build
19+
20+
def install
21+
system "cargo", "install", *std_cargo_args
22+
end
23+
24+
test do
25+
(testpath/"test.fasta").write <<~EOS
26+
>U00096.2:1-70
27+
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
28+
EOS
29+
output = shell_output("#{bin}/polypolish polish test.fasta")
30+
assert_match "polypolish", output
31+
end
32+
end

0 commit comments

Comments
 (0)