2011-09-30 21:28:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Vcftools < Formula
|
|
|
|
homepage 'http://vcftools.sourceforge.net/index.html'
|
2012-05-10 16:52:30 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/vcftools/vcftools_0.1.9.tar.gz'
|
|
|
|
md5 '57f3b8d7ecb26a12559595851607f023'
|
2011-12-12 03:45:20 +00:00
|
|
|
|
2011-09-30 21:28:49 +00:00
|
|
|
def install
|
2012-02-10 04:43:09 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}", "CPP=#{ENV.cxx}"
|
2011-09-30 21:28:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To use the Perl modules, make sure Vcf.pm, VcfStats.pm, and FaSlice.pm
|
|
|
|
are included in your PERL5LIB environment variable:
|
|
|
|
export PERL5LIB=#{HOMEBREW_PREFIX}/lib/perl5/site_perl:${PERL5LIB}
|
|
|
|
EOS
|
|
|
|
end
|
2012-02-10 04:43:09 +00:00
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/vcftools"
|
|
|
|
end
|
2011-09-30 21:28:49 +00:00
|
|
|
end
|