-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathart.rb
35 lines (30 loc) · 1.24 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
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 "https://www.niehs.nih.gov/research/resources/assets/docs/artsrcmountrainier20160605macostgz.tgz"
version "20160605"
sha256 "1c467c374ec17b1c2c815f4c24746bece878876faaf659c2541f280fe7ba85f7"
end
revision 1
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