forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
allpaths-lg.rb
40 lines (33 loc) · 980 Bytes
/
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
class LinuxRequirement < Requirement
fatal true
satisfy OS.linux?
def message
"This software only builds on Linux."
end
end
class AllpathsLg < Formula
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"
sha1 "06cf7ed3ca8ed55847e895a93cf41b760a2b7021"
# 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