vcftools: import from homebrew/science

Closes #22075.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
master
Shaun Jackman 2017-12-22 20:20:57 -08:00 committed by ilovezfs
parent d197fd5133
commit 7d1fb58489
1 changed files with 28 additions and 0 deletions

28
Formula/vcftools.rb Normal file
View File

@ -0,0 +1,28 @@
class Vcftools < Formula
desc "Tools for working with VCF files"
homepage "https://vcftools.github.io/"
url "https://github.com/vcftools/vcftools/releases/download/v0.1.15/vcftools-0.1.15.tar.gz"
sha256 "31e47afd5be679d89ece811a227525925b6907cce4af2c86f10f465e080383e3"
depends_on "pkg-config" => :build
depends_on "htslib"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--with-pmdir=lib/perl5/site_perl"
system "make", "install"
bin.env_script_all_files(libexec/"bin", :PERL5LIB => lib/"perl5/site_perl")
end
test do
(testpath/"test.vcf").write <<~EOS
##fileformat=VCFv4.0
#CHROM POS ID REF ALT QUAL FILTER INFO
1 1 . A C 10 PASS .
EOS
system "#{bin}/vcf-validator", "test.vcf"
end
end