34 lines
1009 B
Ruby
34 lines
1009 B
Ruby
class Bedtools < Formula
|
|
desc "Tools for genome arithmetic (set theory on the genome)"
|
|
homepage "https://github.com/arq5x/bedtools2"
|
|
url "https://github.com/arq5x/bedtools2/archive/v2.29.2.tar.gz"
|
|
sha256 "bc2f36b5d4fc9890c69f607d54da873032628462e88c545dd633d2c787a544a5"
|
|
license "MIT"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "ccf7c496bef6f4504e099ff6dfd0a04a277fe3481dcf0c4cae5b50e605fe9329" => :catalina
|
|
sha256 "86d19c05b45021f1eedbccd910d0e1401e7b2aa7552bdf5160e77d9bf42fd4a6" => :mojave
|
|
sha256 "9f2a0e41c2463fef3092b57f0a6a888ef4f50be07fa8b78b3185d6e971bc920d" => :high_sierra
|
|
end
|
|
|
|
depends_on "python@3.9" => :build
|
|
depends_on "xz"
|
|
|
|
uses_from_macos "bzip2"
|
|
uses_from_macos "zlib"
|
|
|
|
def install
|
|
inreplace "Makefile", "python", "python3"
|
|
|
|
system "make"
|
|
system "make", "install", "prefix=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
(testpath/"t.bed").write "c\t1\t5\nc\t4\t9"
|
|
assert_equal "c\t1\t9", shell_output("#{bin}/bedtools merge -i t.bed").chomp
|
|
end
|
|
end
|