forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analysis.rb
36 lines (30 loc) · 1.1 KB
/
analysis.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
35
36
class Analysis < Formula
homepage "https://github.com/molpopgen/analysis"
url "https://github.com/molpopgen/analysis/archive/0.8.7.tar.gz"
sha256 "3af7ce89358376d3d27ee97b518735ddddc7a5cb6e0b340833c8e1a44fdb34be"
bottle do
root_url "https://homebrew.bintray.com/bottles-science"
cellar :any
sha256 "40055b7f5992ceb0e82ebbb416c0ef9ed4ddadc128df8230edcf012242059c6b" => :yosemite
sha256 "67b41c0f0a5ff58e4a7e56c5656bbb6daff0819e27218e3a214245f74fff502c" => :mavericks
sha256 "5fc72ebd81ba0027610720a264ff3aba6613e10fe2de905b74b9c46c32649c55" => :mountain_lion
end
depends_on "gsl"
depends_on "libsequence"
# add missing include
# https://github.com/molpopgen/analysis/pull/3
patch do
url "https://github.com/tdsmith/molpopgen-analysis/commit/01c796d.diff"
sha256 "abaefd36f108f1981e28d874e4cd78ca961d07841e69b4af607d0585354c72d5"
end
needs :cxx11
def install
ENV.cxx11
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert shell_output("#{bin}/gestimator 2>&1", 1).include? "gestimator"
end
end