Skip to content

Commit 86aa0e0

Browse files
authored
Merge pull request Homebrew#225177 from ankane/breseq
breseq 0.39.0 (new formula)
2 parents 2726a37 + 5b0675f commit 86aa0e0

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Formula/b/breseq.rb

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "f22120bae403eb392bec70333093e7176e565853bf5108b51ed37b82a8b39d54"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a5d0b6591968d4b5747cf81d8f377560da5e8b2633d401d5e60f36e954655e49"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "251cb721ac1cedfb266a35557af31efc3964d9265c302c21186173c4089c5a3e"
13+
sha256 cellar: :any_skip_relocation, sonoma: "f071fdaf4fb3b7b454b94674075cabe7bed6bbc630b5e3979971f62a35de4401"
14+
sha256 cellar: :any_skip_relocation, ventura: "a7c5e18cc7968fd3e50450807eb1d84d2e1074b920e5a89011033c017621d248"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "fecf53100efc095e8c48e3be539d2d40d12f285983ba02d64333326b3acc4040"
16+
end
17+
18+
depends_on "autoconf" => :build
19+
depends_on "automake" => :build
20+
depends_on "libtool" => :build
21+
depends_on "bowtie2"
22+
depends_on "r"
23+
24+
uses_from_macos "zlib"
25+
26+
def install
27+
system "autoreconf", "--force", "--install", "--verbose"
28+
system "./configure", "--disable-silent-rules", *std_configure_args
29+
system "make"
30+
system "make", "install"
31+
end
32+
33+
test do
34+
resource "homebrew-test-gbk" do
35+
url "https://raw.githubusercontent.com/barricklab/breseq/refs/tags/v0.39.0/tests/data/REL606/REL606.fragment.gbk"
36+
sha256 "0e6edf3df46da73db9d07622316e0b9617e7a95faf87589bb0a7bc2393e2d92e"
37+
end
38+
39+
resource "homebrew-test-fastq" do
40+
url "https://raw.githubusercontent.com/barricklab/breseq/refs/tags/v0.39.0/tests/data/REL606/REL606.fragment.2.fastq"
41+
sha256 "79775ab79421d43b41087f256f99f38681af5421d1303b86e6e92a471edbb0fb"
42+
end
43+
44+
testpath.install resource("homebrew-test-gbk")
45+
testpath.install resource("homebrew-test-fastq")
46+
47+
assert_match version.to_s, shell_output("#{bin}/breseq --version")
48+
system bin/"breseq", "-r", "REL606.fragment.gbk", "REL606.fragment.2.fastq"
49+
assert_path_exists "output"
50+
end
51+
end

0 commit comments

Comments
 (0)