forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libsequence.rb
36 lines (31 loc) · 1.01 KB
/
libsequence.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 Libsequence < Formula
desc "C++ library for evolutionary genetics"
homepage "https://molpopgen.github.io/libsequence/"
# tag "bioinformatics"
# doi "10.1093/bioinformatics/btg316"
url "https://github.com/molpopgen/libsequence/archive/1.9.1.tar.gz"
sha256 "4432b50c63ff8fa05b39500ac7708276ccb6d30abfb5ea43d1c602108ff28733"
revision 3
head "https://github.com/molpopgen/libsequence.git"
bottle :disable, "needs to be rebuilt with latest boost"
cxx11 = if OS.mac?
(MacOS.version > :mountain_lion) ? [] : ["c++11"]
else
[]
end
depends_on "boost" => cxx11
depends_on "gsl"
depends_on "tbb"
needs :cxx11
def install
ENV.cxx11
system "./configure", "--prefix=#{prefix}",
"--docdir=#{doc}",
"--mandir=#{man}",
"--disable-dependency-tracking",
"--disable-silent-rules"
system "make"
ENV.deparallelize { system "make", "check" }
system "make", "install"
end
end