forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
art.rb
36 lines (32 loc) · 1.42 KB
/
art.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 Art < Formula
desc "Simulation tools to generate synthetic NGS reads"
homepage "http://www.niehs.nih.gov/research/resources/software/biostatistics/art/index.cfm"
# doi "10.1093/bioinformatics/btr708"
# tag "bioinformatics"
if OS.mac?
url "http://www.niehs.nih.gov/research/resources/assets/docs/artsrcchocolatecherrycake031915macostgz.tgz"
sha256 "35cb37d3d5ce428fed77b59e4aa5b1498572c1fe9ed140173db02e6b1767c5f8"
else
url "http://www.niehs.nih.gov/research/resources/assets/docs/artsrcchocolatecherrycake031915linuxtgz.tgz"
sha256 "306f1dd9f207e59e5fc07b2c1152fa091b142dc65267f7b37538931b60584965"
end
version "031915"
depends_on "gsl"
def install
ENV.append "CPPFLAGS", "-I#{Formula["gsl"].opt_include}"
ENV.append "LDFLAGS", "-L#{Formula["gsl"].opt_lib}"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
# remove the bundled binaries so they get re-made against our libraries
system "make", "clean"
system "make", "install"
doc.install %w[AUTHORS COPYING ChangeLog NEWS README art_454_README art_SOLiD_README art_illumina_README]
pkgshare.install %w[examples 454_profiles Illumina_profiles SOLiD_profiles]
end
test do
system "#{bin}/art_illumina | grep 'MiSeq'"
system "#{bin}/art_SOLiD | grep 'F3-F5'"
system "#{bin}/art_454 | grep 'FLX'"
end
end