homebrew-core/Formula/bedtools.rb
2017-11-23 10:43:28 -08:00

33 lines
1.2 KiB
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.26.0.tar.gz"
sha256 "15db784f60a11b104ccbc9f440282e5780e0522b8d55d359a8318a6b61897977"
bottle do
cellar :any_skip_relocation
sha256 "b1c22d44db6adf632fd5a2b71b21edfb4d2a097871e0609fe447f5b673db4fb1" => :high_sierra
sha256 "7d17967daf92bbcaabd2bfec258af5cd7fbd0d5a9918470ba2484189f5fd76bc" => :sierra
sha256 "5bd284164362a938830f9bbe1a9c964da513a1819ba9f9fef2a807c528b7e89c" => :el_capitan
end
# Remove for > 2.26.0
# 24 Sep 2017 "strandqueue: de-const for stricter Xcode 9 rules"
if DevelopmentTools.clang_build_version >= 900
patch do
url "https://github.com/arq5x/bedtools2/commit/c0b7d934cc61ad6c83eb3d99374263e7ec51722d.diff?full_index=1"
sha256 "b37113ff55b916787f29c12dece8b7f4289de30427c3a22a8cb332aa32d936dd"
end
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