forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmap.rb
46 lines (37 loc) · 1.24 KB
/
tmap.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
38
39
40
41
42
43
44
45
46
require 'formula'
class Tmap < Formula
homepage 'https://github.com/iontorrent/TMAP'
url 'https://github.com/iontorrent/TMAP.git', :tag => 'tmap.3.2.0'
head 'https://github.com/iontorrent/TMAP.git'
env :std
option '32-bit'
option 'indels', 'Enable adjacent insertion and deletions in the alignment'
option 'perf', 'Enable google performance tools for profiling and heap checking'
option 'nocolor', 'Disable terminal coloring'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "google-perftools" if build.include? "perf"
fails_with :clang do
build 425
cause 'Missing symbols being discussed in iontorrent/TMAP#3'
end
def install
system 'sh', 'autogen.sh'
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << '--enable-32bit-support' if build.include? '32-bit' or not MacOS.prefer_64_bit?
args << '--enable-perftools' if build.include? 'perf'
args << '--disable-coloring' if build.include? 'nocolor'
args << '--enable-adjacent-indels' if build.include? 'indels'
system "./configure", *args
ENV.j1
system 'make'
system "make install"
end
test do
system "#{bin}/tmap", "-v"
end
end