Skip to content

Commit 4cb351c

Browse files
authored
Merge pull request #225006 from ankane/ropebwt3
ropebwt3 3.9 (new formula)
2 parents d2a80d3 + 0b0ab2e commit 4cb351c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

Formula/r/ropebwt3.rb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
bottle do
10+
sha256 cellar: :any, arm64_sequoia: "bd66115bce6f069c5b16a3c87fba2a4e3e0a158965a4062ebba86e2f2598d0a5"
11+
sha256 cellar: :any, arm64_sonoma: "9f099ff6a4f3cff8d08cda4f651550cc8a8767f264133aba3e1052381619da6e"
12+
sha256 cellar: :any, arm64_ventura: "4a8827a9eeb1208e28f6b81e6c075863d3db3851ebeab0ff606f34bbb32cbc93"
13+
sha256 cellar: :any, sonoma: "8b5139751d4261dc40d196fcd21065c987cf1c41c53466b70cdb488c07dedff7"
14+
sha256 cellar: :any, ventura: "e3626c7ebb2560e191e053f1ad58e4fdf00fac77607e5ac4ed135a311a8a059c"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "fd94cda69d5a156c7c72a9dae14176f3dc38f2c2855dcad7f64753b1832a4c80"
16+
end
17+
18+
uses_from_macos "zlib"
19+
20+
on_macos do
21+
depends_on "libomp"
22+
end
23+
24+
def install
25+
args = []
26+
args << "LIBS=-L#{Formula["libomp"].opt_lib} -lomp -lpthread -lz -lm" if OS.mac?
27+
system "make", *args
28+
bin.install "ropebwt3"
29+
end
30+
31+
test do
32+
(testpath/"test.txt").write <<~EOS
33+
TGAACTCTACACAACATATTTTGTCACCAAG
34+
EOS
35+
system bin/"ropebwt3", "build", "test.txt", "-Ldo", "idx.fmd"
36+
assert_path_exists "idx.fmd"
37+
end
38+
end

0 commit comments

Comments
 (0)