aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-10-12 08:40:45 -0700
committerAdam Vandenberg2012-10-27 18:36:27 -0700
commitdd3b6ac04d0958f1edd2b506b10f4c58a81f42ad (patch)
treee4697476b77070147aa7c69777981ee1ef283e04 /Library
parent38954da8378524262f404538edf2433a489e17de (diff)
downloadhomebrew-dd3b6ac04d0958f1edd2b506b10f4c58a81f42ad.tar.bz2
tmap 3.2.0
- Upgrade to version 3.2.0 - Use git and a tag for stable so that we pick up the submodule. - Add options for 32-bit, Alignment, Google Perf Tools, and NoColor - Add deps on 'automake' and 'libtool' to generate 'configure' - Add a conditional dep on google-perftools if optioned. - Add `env :std` and `fails_with :clang` otherwise missing symbols. Closes #15425. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tmap.rb36
1 files changed, 29 insertions, 7 deletions
diff --git a/Library/Formula/tmap.rb b/Library/Formula/tmap.rb
index 73d176b01..2ade88ec5 100644
--- a/Library/Formula/tmap.rb
+++ b/Library/Formula/tmap.rb
@@ -2,20 +2,42 @@ require 'formula'
class Tmap < Formula
homepage 'http://github.com/iontorrent/TMAP'
- url 'http://github.com/iontorrent/TMAP/tarball/tmap.0.3.7'
- sha1 '8cb8c6d9ebaeb3486a74a402a07a08c778964682'
- version '0.3.7'
+ url 'https://github.com/iontorrent/TMAP.git', :tag => 'tmap.3.2.0'
+ sha1 'da3eb4ce3428cec1f5ac12467af4802df6188711'
+ version '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 :automake
+ depends_on :libtool
+ depends_on 'google-perftools' if build.include? 'perf'
+
fails_with :clang do
- build 318
+ build 421
+ cause 'Missing symbols being discussed in iontorrent/TMAP#3'
end
def install
- system "sh autogen.sh"
- system "./configure", "--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"
+ 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