forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allpaths-lg.rb
41 lines (34 loc) · 1.02 KB
/
allpaths-lg.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
40
41
class LinuxRequirement < Requirement
fatal true
satisfy OS.linux?
def message
"This software only builds on Linux."
end
end
class AllpathsLg < Formula
desc "Short read genome assembler"
homepage "http://www.broadinstitute.org/software/allpaths-lg/blog/"
# doi "10.1073/pnas.1017351108"
# tag "bioinformatics"
url "ftp://ftp.broadinstitute.org/pub/crd/ALLPATHS/Release-LG/latest_source_code/allpathslg-50378.tar.gz"
sha256 "12d5f78a67a79b2bba06e2dff25302590fede62639cfb4db08d76e103871f4b2"
# Prove us wrong!
# https://github.com/Homebrew/homebrew-science/issues/1329#issuecomment-68387020
depends_on LinuxRequirement
fails_with :clang do
cause "The only supported compiler is GCC(>=4.7)."
end
fails_with :gcc do
build 5666
cause "You must compile this with g++ 4.7 or higher."
end
def install
system "./configure",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/RunAllPathsLG", "--version"
end
end