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-02-21 06:04:21 +00:00
|
|
|
url 'ftp://ftp.ncbi.nih.gov/blast/executables/blast+/2.2.25/ncbi-blast-2.2.25+-src.tar.gz'
|
2012-02-01 23:40:38 +00:00
|
|
|
version '2.2.25'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '95bc29cd3cdcccaac24bc4dd489d8ad6b4500d33'
|
2011-01-26 22:17:15 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
2012-07-30 21:21:03 +00:00
|
|
|
build 421
|
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
|
|
|
|
|
|
|
# fixes to 2.2.25 acknowledged upstream by Aaron U. per email
|
|
|
|
# inform configure about -Os
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
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
|
2012-02-27 09:00:02 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
---
|
|
|
|
c++/src/build-system/configure | 24 ++++++++++++------------
|
|
|
|
1 file changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/c++/src/build-system/configure b/c++/src/build-system/configure
|
|
|
|
index 2f467a2..a2d14c7 100755
|
|
|
|
--- a/c++/src/build-system/configure
|
|
|
|
+++ b/c++/src/build-system/configure
|
|
|
|
@@ -8538,29 +8538,29 @@ fi
|
|
|
|
if test "$compiler" != "MSVC" ; then
|
|
|
|
if test "$with_debug" = "no" ; then
|
|
|
|
with_optimization=${with_optimization:="yes"}
|
|
|
|
- CFLAGS=` echo " $CFLAGS" | sed 's/[ ]-g[0-9]*//g'`
|
|
|
|
- CXXFLAGS=`echo " $CXXFLAGS" | sed 's/[ ]-g[0-9]*//g'`
|
|
|
|
- LDFLAGS=` echo " $LDFLAGS" | sed 's/[ ]-g[0-9]*//g'`
|
|
|
|
+ CFLAGS=` echo " $CFLAGS" | sed 's/[ ]-g[0-9s]*//g'`
|
|
|
|
+ CXXFLAGS=`echo " $CXXFLAGS" | sed 's/[ ]-g[0-9s]*//g'`
|
|
|
|
+ LDFLAGS=` echo " $LDFLAGS" | sed 's/[ ]-g[0-9s]*//g'`
|
|
|
|
CPPFLAGS="-DNDEBUG $CPPFLAGS"
|
|
|
|
else
|
|
|
|
with_optimization=${with_optimization:="no"}
|
|
|
|
- if echo " $CFLAGS" |grep -v >/dev/null '[ ]-g[0-9]*' ; then
|
|
|
|
+ if echo " $CFLAGS" |grep -v >/dev/null '[ ]-g[0-9s]*' ; then
|
|
|
|
CFLAGS="$CFLAGS -g" ; fi
|
|
|
|
- if echo " $CXXFLAGS" |grep -v >/dev/null '[ ]-g[0-9]*' ; then
|
|
|
|
+ if echo " $CXXFLAGS" |grep -v >/dev/null '[ ]-g[0-9s]*' ; then
|
|
|
|
CXXFLAGS="$CXXFLAGS -g" ; fi
|
|
|
|
if test "${with_tcheck=no}" = "no" ; then
|
|
|
|
CPPFLAGS="-D_DEBUG $CPPFLAGS"
|
|
|
|
else
|
|
|
|
CPPFLAGS="-DNDEBUG $CPPFLAGS"
|
|
|
|
fi
|
|
|
|
- if echo " $LDFLAGS" |grep -v >/dev/null '[ ]-g[0-9]*' ;
|
|
|
|
+ if echo " $LDFLAGS" |grep -v >/dev/null '[ ]-g[0-9s]*' ;
|
|
|
|
then LDFLAGS="$LDFLAGS -g" ; fi
|
|
|
|
STRIP="@:"
|
|
|
|
fi
|
|
|
|
|
|
|
|
- NOPT_CFLAGS=` echo " $CFLAGS" | sed 's/[ ]-x*O[0-9]*//g'`
|
|
|
|
- NOPT_CXXFLAGS=`echo " $CXXFLAGS" | sed 's/[ ]-x*O[0-9]*//g'`
|
|
|
|
- NOPT_LDFLAGS=` echo " $LDFLAGS" | sed 's/[ ]-x*O[0-9]*//g'`
|
|
|
|
+ NOPT_CFLAGS=` echo " $CFLAGS" | sed 's/[ ]-x*O[0-9s]*//g'`
|
|
|
|
+ NOPT_CXXFLAGS=`echo " $CXXFLAGS" | sed 's/[ ]-x*O[0-9s]*//g'`
|
|
|
|
+ NOPT_LDFLAGS=` echo " $LDFLAGS" | sed 's/[ ]-x*O[0-9s]*//g'`
|
|
|
|
if test "${with_tcheck-no}" != "no"; then
|
|
|
|
# Suppress warnings when building with ICC.
|
|
|
|
NOPT_CFLAGS="$NOPT_CFLAGS -O0"
|
|
|
|
@@ -8575,11 +8575,11 @@ if test "$compiler" != "MSVC" ; then
|
|
|
|
FAST_CXXFLAGS="$CXXFLAGS"
|
|
|
|
FAST_LDFLAGS="$LDFLAGS"
|
|
|
|
else
|
|
|
|
- if echo " $CFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9]*' ; then
|
|
|
|
+ if echo " $CFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9s]*' ; then
|
|
|
|
CFLAGS="$CFLAGS -O" ; fi
|
|
|
|
- if echo " $CXXFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9]*' ; then
|
|
|
|
+ if echo " $CXXFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9s]*' ; then
|
|
|
|
CXXFLAGS="$CXXFLAGS -O" ; fi
|
|
|
|
- if echo " $LDFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9]*' ; then
|
|
|
|
+ if echo " $LDFLAGS" |grep -v >/dev/null '[ ]-x*O[0-9s]*' ; then
|
|
|
|
LDFLAGS="$LDFLAGS -O" ; fi
|
|
|
|
FAST_CFLAGS="$NOPT_CFLAGS $FAST_CFLAGS"
|
|
|
|
FAST_CXXFLAGS="$NOPT_CXXFLAGS $FAST_CXXFLAGS"
|
|
|
|
--
|
|
|
|
1.7.9.2
|
|
|
|
|