forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bamtools.rb
37 lines (31 loc) · 1.22 KB
/
bamtools.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class Bamtools < Formula
desc "C++ API and command-line toolkit for BAM data"
homepage "https://github.com/pezmaster31/bamtools"
# doi "10.1093/bioinformatics/btr174"
# tag "bioinformatics"
url "https://github.com/pezmaster31/bamtools/archive/v2.4.1.tar.gz"
sha256 "933a0c1a83c88c1dac8078c0c0e82f6794c75cb927265399404bc2cc2611204b"
head "https://github.com/pezmaster31/bamtools.git"
bottle do
cellar :any
sha256 "e5abdc25d558b613464e597cf22d7c091ff4b5a6e7e39e8b519eff5cdb8771f6" => :sierra
sha256 "dac25299b7679ed5e5286d20da0a03dd0d2f97fb7742bb45a838edc5982a607f" => :el_capitan
sha256 "b46516a39fc2a220499236541ea44b4e00382c43441c030d0304bbf24c3f3680" => :yosemite
sha256 "497b05bfa96a7dccce145faeb40998f711c1be240135d6cad72f30b547a6919b" => :x86_64_linux
end
depends_on "cmake" => :build
patch do
# Install libbamtools in /usr/local/lib; reported 29 July 2013
url "https://github.com/pezmaster31/bamtools/pull/82.patch"
sha256 "960032af95dcd6554329e6707c048c2a59808ea22800b270a268a92f8e67006b"
end
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
test do
system "#{bin}/bamtools", "--version"
end
end