Skip to content

Commit 27070af

Browse files
committed
breseq 0.39.0 (new formula)
1 parent fffa849 commit 27070af

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

Formula/b/breseq.rb

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
class Breseq < Formula
2+
desc "Computational pipeline for finding mutations in short-read DNA resequencing data"
3+
homepage "https://barricklab.org/breseq"
4+
url "https://github.com/barricklab/breseq/archive/refs/tags/v0.39.0.tar.gz"
5+
sha256 "5aa1bd9af71899e1358cfb9b8440c16cc908f185d9178a401a5a4d3f0c7ee861"
6+
license all_of: ["GPL-2.0-or-later", "MIT", "BSD-3-Clause"]
7+
head "https://github.com/barricklab/breseq.git", branch: "master"
8+
9+
depends_on "autoconf" => :build
10+
depends_on "automake" => :build
11+
depends_on "libtool" => :build
12+
depends_on "bowtie2"
13+
depends_on "r"
14+
15+
uses_from_macos "zlib"
16+
17+
def install
18+
system "autoreconf", "--force", "--install", "--verbose"
19+
system "./configure", "--disable-silent-rules", *std_configure_args
20+
system "make"
21+
system "make", "install"
22+
end
23+
24+
test do
25+
resource "homebrew-test-gbk" do
26+
url "https://raw.githubusercontent.com/barricklab/breseq/refs/tags/v0.39.0/tests/data/REL606/REL606.fragment.gbk"
27+
sha256 "0e6edf3df46da73db9d07622316e0b9617e7a95faf87589bb0a7bc2393e2d92e"
28+
end
29+
30+
resource "homebrew-test-fastq" do
31+
url "https://raw.githubusercontent.com/barricklab/breseq/refs/tags/v0.39.0/tests/data/REL606/REL606.fragment.2.fastq"
32+
sha256 "79775ab79421d43b41087f256f99f38681af5421d1303b86e6e92a471edbb0fb"
33+
end
34+
35+
testpath.install resource("homebrew-test-gbk")
36+
testpath.install resource("homebrew-test-fastq")
37+
38+
assert_match version.to_s, shell_output("#{bin}/breseq --version")
39+
system bin/"breseq", "-r", "REL606.fragment.gbk", "REL606.fragment.2.fastq"
40+
assert_path_exists "output"
41+
end
42+
end

0 commit comments

Comments
 (0)