homebrew-core/Formula/samtools.rb
Jack Nagel 899a19eccf Avoid chdir in subshells
The preferred "chdir for this step only" idiom is to use the block-form
'cd' method.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-17 17:55:53 -05:00

24 lines
777 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"
cd 'bcftools' do
system "make"
end
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