2011-01-26 22:17:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 19:58:44 +00:00
|
|
|
class Blast < Formula
|
2012-02-01 23:40:38 +00:00
|
|
|
homepage 'http://blast.ncbi.nlm.nih.gov/'
|
2012-09-27 01:54:30 +00:00
|
|
|
url 'ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.27/ncbi-blast-2.2.27+-src.tar.gz'
|
|
|
|
version '2.2.27'
|
|
|
|
sha1 '51529c9fada67e890b994213d26f4177fa3d23d8'
|
|
|
|
|
|
|
|
fails_with :llvm do
|
|
|
|
build 5658
|
|
|
|
cause <<-EOS.undent
|
|
|
|
Compiler segfaults.
|
|
|
|
EOS
|
2012-03-18 20:33:24 +00:00
|
|
|
end
|
|
|
|
|
2012-08-09 05:16:23 +00:00
|
|
|
option 'with-dll', "Create dynamic binaries instead of static"
|
2012-02-27 09:00:02 +00:00
|
|
|
|
2011-01-26 22:17:15 +00:00
|
|
|
def install
|
2012-02-27 09:00:02 +00:00
|
|
|
args = ["--prefix=#{prefix}"]
|
2012-08-13 20:46:38 +00:00
|
|
|
args << "--with-dll" if build.include? 'with-dll'
|
2012-02-27 09:00:02 +00:00
|
|
|
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'c++' do
|
2012-02-27 09:00:02 +00:00
|
|
|
system "./configure", *args
|
2011-01-26 22:17:15 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-02-27 09:00:02 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Using the option '--with-dll' will create dynamic binaries instead of
|
|
|
|
static. NCBI Blast static binaries are approximately 28-times larger
|
|
|
|
than dynamic binaries.
|
|
|
|
|
|
|
|
Static binaries should be used for speed if the executable requires
|
|
|
|
fast startup time, such as if another program is frequently restarting
|
|
|
|
the blast executables.
|
|
|
|
EOS
|
|
|
|
end
|
2011-01-26 22:17:15 +00:00
|
|
|
end
|