Skip to content

Commit 8c188e4

Browse files
committed
fastk 1.1.0 (new formula)
1 parent fffa849 commit 8c188e4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Formula/f/fastk.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class Fastk < Formula
2+
desc "K-mer counter for high-fidelity shotgun datasets"
3+
homepage "https://github.com/thegenemyers/FASTK"
4+
url "https://github.com/thegenemyers/FASTK/archive/refs/tags/v1.1.0.tar.gz"
5+
sha256 "28a2de98ede77d4b4476596851f92413a9d99a1d3341afc6682d5333ac797f07"
6+
license all_of: [
7+
"BSD-3-Clause",
8+
{ all_of: ["MIT", "BSD-3-Clause"] }, # HTSLIB
9+
"MIT", # LIBDEFLATE
10+
]
11+
head "https://github.com/thegenemyers/FASTK.git", branch: "master"
12+
13+
depends_on "xz"
14+
15+
uses_from_macos "bzip2"
16+
uses_from_macos "curl"
17+
uses_from_macos "zlib"
18+
19+
def install
20+
ENV.deparallelize
21+
22+
mkdir bin
23+
system "make"
24+
system "make", "install", "DEST_DIR=#{bin}"
25+
end
26+
27+
test do
28+
(testpath/"test.fasta").write <<~EOS
29+
>U00096.2:1-70
30+
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
31+
EOS
32+
system bin/"FastK", "test.fasta"
33+
assert_path_exists "test.hist"
34+
end
35+
end

0 commit comments

Comments
 (0)