2012-04-13 15:37:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GmapGsnap < Formula
|
|
|
|
homepage 'http://research-pub.gene.com/gmap'
|
2012-10-17 21:24:10 +00:00
|
|
|
url 'http://research-pub.gene.com/gmap/src/gmap-gsnap-2012-07-20.tar.gz'
|
|
|
|
sha1 '9edb7750b923842f9c877f59934cdfd9f5cdf2b7'
|
|
|
|
version "2012-07-20"
|
2012-04-13 15:37:01 +00:00
|
|
|
|
|
|
|
depends_on "samtools"
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['CC'] = "#{ENV.cc} -O3 -m#{MacOS.prefer_64_bit? ? 64 : 32}"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOF.undent
|
|
|
|
You will need to either download or build indexed search databases.
|
|
|
|
See the readme file for how to do this:
|
|
|
|
http://research-pub.gene.com/gmap/src/README
|
|
|
|
|
|
|
|
Databases will be installed to:
|
|
|
|
#{share}
|
|
|
|
EOF
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/gsnap", "--version"
|
2012-04-13 15:37:01 +00:00
|
|
|
end
|
|
|
|
end
|