2011-02-28 17:30:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Samtools < Formula
|
2011-09-05 14:53:39 +00:00
|
|
|
url 'http://sourceforge.net/projects/samtools/files/samtools/0.1.18/samtools-0.1.18.tar.bz2'
|
2011-02-28 17:30:22 +00:00
|
|
|
homepage 'http://samtools.sourceforge.net/'
|
2011-09-05 14:53:39 +00:00
|
|
|
md5 '71dab132e21c0766f0de84c2371a9157'
|
2011-04-22 16:36:32 +00:00
|
|
|
head 'https://samtools.svn.sourceforge.net/svnroot/samtools/trunk/samtools'
|
2011-02-28 17:30:22 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
system "make razip"
|
2012-06-17 22:41:41 +00:00
|
|
|
cd 'bcftools' do
|
|
|
|
system "make"
|
|
|
|
end
|
2011-02-28 17:30:22 +00:00
|
|
|
|
2011-09-05 14:53:39 +00:00
|
|
|
bin.install %w{samtools razip bcftools/bcftools bcftools/vcfutils.pl}
|
|
|
|
bin.install %w{misc/maq2sam-long misc/maq2sam-short misc/md5fa misc/md5sum-lite misc/seqtk misc/wgsim}
|
|
|
|
bin.install Dir['misc/*.pl']
|
2011-02-28 17:30:22 +00:00
|
|
|
lib.install 'libbam.a'
|
2011-07-07 13:55:34 +00:00
|
|
|
man1.install %w{samtools.1}
|
2011-09-05 14:53:39 +00:00
|
|
|
(share+'samtools').install %w{examples}
|
|
|
|
(include+'bam').install Dir['*.h']
|
2011-02-28 17:30:22 +00:00
|
|
|
end
|
|
|
|
end
|