forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcflib.rb
34 lines (28 loc) · 1.15 KB
/
vcflib.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Vcflib < Formula
desc "Command-line tools for manipulating VCF files"
homepage "https://github.com/ekg/vcflib"
# tag "bioinformatics"
url "https://github.com/ekg/vcflib.git",
:tag => "v1.0.0-rc0", :revision => "8ac9fd517579134ef3b9797714d20c9c99c18ec6"
head "https://github.com/ekg/vcflib.git"
bottle do
cellar :any
sha256 "d9453aa105682ac17539efd11983b2d7018327cf58a6c19807613a8f0b2d959b" => :yosemite
sha256 "aaebf992cb9fe3a63e4551126f99d2a44ff17e3321a787fdac5de5cc8d5db41f" => :mavericks
sha256 "1ab06e308fd9787b81408193b389fb63e9f53a838750f89eeeae3efbad6244a3" => :mountain_lion
end
def install
if OS.mac?
# FIX => missing makefile var: https://github.com/ekg/tabixpp/issues/5
inreplace "tabixpp/Makefile", "SUBDIRS=.", "SUBDIRS=.\nLOBJS=tabix.o"
# FIX => ld: internal error: atom not found in symbolIndex(<snip>) for architecture x86_64
inreplace "smithwaterman/Makefile", "LDFLAGS=-Wl,-s", "LDFLAGS="
end
system "make"
bin.install Dir["bin/*"]
doc.install %w[LICENSE README.md]
end
test do
assert_match "genotype", shell_output("vcfallelicprimitives -h 2>&1", 0)
end
end