2012-04-05 03:18:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Tmap < Formula
|
2013-03-02 09:18:43 +00:00
|
|
|
homepage 'https://github.com/iontorrent/TMAP'
|
2012-10-12 15:40:45 +00:00
|
|
|
url 'https://github.com/iontorrent/TMAP.git', :tag => 'tmap.3.2.0'
|
|
|
|
sha1 'da3eb4ce3428cec1f5ac12467af4802df6188711'
|
|
|
|
version '3.2.0'
|
2012-04-05 03:18:28 +00:00
|
|
|
|
|
|
|
head 'https://github.com/iontorrent/TMAP.git'
|
|
|
|
|
2012-10-12 15:40:45 +00:00
|
|
|
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 :automake
|
|
|
|
depends_on :libtool
|
|
|
|
depends_on 'google-perftools' if build.include? 'perf'
|
|
|
|
|
2012-04-22 21:58:38 +00:00
|
|
|
fails_with :clang do
|
2012-10-12 15:40:45 +00:00
|
|
|
build 421
|
|
|
|
cause 'Missing symbols being discussed in iontorrent/TMAP#3'
|
2012-04-22 21:58:38 +00:00
|
|
|
end
|
|
|
|
|
2012-04-05 03:18:28 +00:00
|
|
|
def install
|
2012-10-12 15:40:45 +00:00
|
|
|
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'
|
2012-04-05 03:18:28 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/tmap", "-v"
|
2012-04-05 03:18:28 +00:00
|
|
|
end
|
|
|
|
end
|