aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mrfast.rb
blob: ec41393975d2c23d7ab46161c45647b09b5ed2c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Mrfast < Formula
  homepage 'http://mrfast.sourceforge.net/'
  url 'http://downloads.sourceforge.net/project/mrfast/mrfast/mrfast-2.1.0.3.tar.gz'
  md5 '32dfbfae84852ed7847fec0155cb55aa'

  def install
    system "make", "CC=#{ENV.cc}", "CFLAGS=-c #{ENV.cflags}"
    bin.install 'mrfast'
  end

  def test
    actual = `#{bin}/mrfast -h`.split("\n").first
    expect = "mrFAST : Micro-Read Fast Alignment Search Tool."
    expect.eql? actual
  end
end