2010-08-19 16:10:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mcl < Formula
|
2010-08-19 16:10:52 +00:00
|
|
|
homepage 'http://micans.org/mcl'
|
2012-07-20 15:16:32 +00:00
|
|
|
url 'http://micans.org/mcl/src/mcl-12-135.tar.gz'
|
|
|
|
version '12-135'
|
|
|
|
sha1 '27e7bc08fe5f0d3361bbc98d343c9d045712e406'
|
2010-08-19 16:10:52 +00:00
|
|
|
|
|
|
|
def install
|
2012-07-20 15:16:32 +00:00
|
|
|
# Force the compiler to run in C89 mode because one of the source
|
|
|
|
# files uses "restrict" as a variable name and this is a restricted
|
|
|
|
# keyword in C99
|
|
|
|
ENV.append_to_cflags '-std=c89'
|
|
|
|
|
2010-10-21 14:54:17 +00:00
|
|
|
bin.mkpath
|
2010-08-19 16:10:52 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-blast"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|