352c8fd1c2
Install tools in misc/ to bin. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
22 lines
759 B
Ruby
22 lines
759 B
Ruby
require 'formula'
|
|
|
|
class Samtools < Formula
|
|
url 'http://sourceforge.net/projects/samtools/files/samtools/0.1.18/samtools-0.1.18.tar.bz2'
|
|
homepage 'http://samtools.sourceforge.net/'
|
|
md5 '71dab132e21c0766f0de84c2371a9157'
|
|
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 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']
|
|
lib.install 'libbam.a'
|
|
man1.install %w{samtools.1}
|
|
(share+'samtools').install %w{examples}
|
|
(include+'bam').install Dir['*.h']
|
|
end
|
|
end
|