Skip to content

Commit 9979de4

Browse files
authored
Merge pull request #225035 from ankane/kraken2
kraken2 2.1.5 (new formula)
2 parents b48aae6 + de720d7 commit 9979de4

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Formula/k/kraken2.rb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
class Kraken2 < Formula
2+
desc "Taxonomic sequence classification system"
3+
homepage "https://github.com/DerrickWood/kraken2"
4+
url "https://github.com/DerrickWood/kraken2/archive/refs/tags/v2.1.5.tar.gz"
5+
sha256 "6feb9b1e0840a574598b84a3134a25622e5528ac6d0f4c756cdab629275d8f42"
6+
license "MIT"
7+
head "https://github.com/DerrickWood/kraken2.git", branch: "master"
8+
9+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3ee275caf279a788ea6a7bce93190ab31165bbdc79fd1dc812ba120336a1918f"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "fb22cec35e13ee86ec66e1f65f90a4b6454e418da5df13bf786e48a1dc846e8b"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "a875a1a58dde84ca8651102d3e99fb1eb0ff2c1089fc5fc4587e56f0ac0ece33"
13+
sha256 cellar: :any_skip_relocation, sonoma: "84e6e9db41f330e526dcdaa1061c530ecfc351f1f89004ce69695b480fffc195"
14+
sha256 cellar: :any_skip_relocation, ventura: "43e3bb6870bb0d9cf4d5a9d09bc8850939922acca99ccfa56a84c9f77d9a3162"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "0ca42ce0aa2688d8ca4f9bb123ab1cf372a79e8944f511312a26b9da4ead3927"
16+
end
17+
18+
depends_on "[email protected]"
19+
depends_on "wget"
20+
21+
uses_from_macos "perl"
22+
uses_from_macos "rsync"
23+
uses_from_macos "zlib"
24+
25+
on_macos do
26+
depends_on "libomp"
27+
end
28+
29+
def install
30+
system "./install_kraken2.sh", libexec
31+
%w[k2 kraken2 kraken2-build kraken2-inspect].each do |f|
32+
bin.install_symlink libexec/f
33+
end
34+
pkgshare.install "data"
35+
end
36+
37+
test do
38+
cp pkgshare/"data/Lambda.fa", testpath
39+
system bin/"kraken2-build", "--add-to-library", "Lambda.fa", "--db", "testdb"
40+
assert_path_exists "testdb"
41+
end
42+
end

0 commit comments

Comments
 (0)