Skip to content

Commit 3b55af7

Browse files
committed
ropebwt3 3.9 (new formula)
1 parent dc332bb commit 3b55af7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Formula/r/ropebwt3.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class Ropebwt3 < Formula
2+
desc "BWT construction and search"
3+
homepage "https://github.com/lh3/ropebwt3"
4+
url "https://github.com/lh3/ropebwt3/archive/refs/tags/v3.9.tar.gz"
5+
sha256 "0c04879f97c92607017c00e0afc5a4e0428a8467573336300ebf3c1a6bcc4d75"
6+
license all_of: ["MIT", "Apache-2.0"]
7+
head "https://github.com/lh3/ropebwt3.git", branch: "master"
8+
9+
uses_from_macos "zlib"
10+
11+
on_macos do
12+
depends_on "libomp"
13+
end
14+
15+
def install
16+
args = []
17+
args << "LIBS=-L#{Formula["libomp"].opt_lib} -lomp -lpthread -lz -lm" if OS.mac?
18+
system "make", *args
19+
bin.install "ropebwt3"
20+
end
21+
22+
test do
23+
(testpath/"test.txt").write <<~EOS
24+
TGAACTCTACACAACATATTTTGTCACCAAG
25+
EOS
26+
system bin/"ropebwt3", "build", "test.txt", "-Ldo", "idx.fmd"
27+
assert_path_exists "idx.fmd"
28+
end
29+
end

0 commit comments

Comments
 (0)