forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fcgene.rb
24 lines (21 loc) · 812 Bytes
/
fcgene.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
require "formula"
class Fcgene < Formula
homepage "http://sourceforge.net/projects/fcgene/"
url "https://downloads.sourceforge.net/project/fcgene/fcgene-1.0.7.tar.gz"
sha1 "15a1098170d60f7710acb7dbf40a8e6046130737"
def install
# upstream Makefile ignores $CXX
ENV['AC_CXX'] = ENV['CXX']
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
(testpath/"test.ped").write("1 1000000000 0 0 1 1 0 0 1 1\n1 1000000001 0 0 1 2 1 1 1 2\n")
(testpath/"test.map").write("1 rs0 0 1000\n1 rs10 0 1001\n")
system "#{bin}/fcgene", '--ped', 'test.ped', '--map', 'test.map'
end
end