24 lines
881 B
Ruby
24 lines
881 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.27.1.tar.gz"
|
|
sha256 "edcac089d84e63a51f85c3c189469daa7d42180272130b046856faad3cf79112"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "ca1a234e9bcdb62f4c71aad27a12c1b286c0a0dd9101b22c8a55492c35b50a68" => :high_sierra
|
|
sha256 "96e8d3f30f6b0f542b2fa17ce324d82c7c2ed1c8c579007fd7138dbbae63188e" => :sierra
|
|
sha256 "56d2a63e1193f1326505c9a1829b7a4c6257261734a775fce0829cd7accb84f3" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
system "make", "install", "prefix=#{prefix}"
|
|
prefix.install "RELEASE_HISTORY"
|
|
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
|