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

class Samtools < Formula
  url 'http://sourceforge.net/projects/samtools/files/samtools/0.1.17/samtools-0.1.17.tar.bz2'
  homepage 'http://samtools.sourceforge.net/'
  md5 '9549f7a6bba894766df9c3dd18d61f0b'
  head 'https://samtools.svn.sourceforge.net/svnroot/samtools/trunk/samtools'

  def install
    system "make"
    system "make razip"
    system "cd bcftools; make"

    bin.install %w{samtools razip bcftools/bcftools}
    (share+'samtools').install %w{examples misc}
    (share+'samtools/misc').install %w{bcftools/vcfutils.pl}
    lib.install 'libbam.a'
    (include+'bam').install Dir['*.h']
    man1.install %w{samtools.1}
  end
end