forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cufflinks.rb
39 lines (32 loc) · 1.26 KB
/
cufflinks.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
37
38
39
class Cufflinks < Formula
desc "Transcriptome assembly, differential expression analysis for RNA-Seq"
homepage "https://cole-trapnell-lab.github.io/cufflinks/"
url "https://cole-trapnell-lab.github.io/cufflinks/assets/downloads/cufflinks-2.2.1.tar.gz"
sha256 "e8316b66177914f14b3a0c317e436d386a46c4c212ca1b2326f89f8a2e08d5ae"
revision 4
bottle :disable, "needs to be rebuilt with latest boost"
if OS.mac? && MacOS.version == :mavericks
depends_on "[email protected]"
else
depends_on "boost"
end
depends_on "[email protected]" => :build
depends_on "eigen"
def install
inreplace "src/biascorrection.h", "boost/tr1/unordered_map.hpp", "boost/unordered_map.hpp"
# Reduce memory usage below 4 GB for Circle CI.
ENV["MAKEFLAGS"] = "-j4" if ENV["CIRCLECI"]
ENV["EIGEN_CPPFLAGS"] = "-I#{Formula["eigen"].opt_include}/eigen3"
ENV.append "LIBS", "-lboost_system-mt -lboost_thread-mt -lboost_serialization-mt"
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
ENV.deparallelize
system "make", "install"
end
test do
system "#{bin}/cuffdiff 2>&1 |grep -q cuffdiff"
end
end