forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
recon.rb
28 lines (25 loc) · 1.02 KB
/
recon.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
class Recon < Formula
homepage "http://www.repeatmasker.org/RepeatModeler.html"
# doi "10.1101/gr.88502"
# tag "bioinformatics"
url "http://www.repeatmasker.org/RECON-1.07.tar.gz"
sha256 "98821e6a8b196d7039fa3f14e4e8f67ef0925c31dc05007f4de9248a138dcb4b"
bottle do
cellar :any
sha256 "b3e222db9633614433c6cabd5c2ee46c78f18194421cb4e8df0820608eb90d22" => :yosemite
sha256 "c3d875ca2a2715e03be0cb439d3848c6bc5fb19e80bec51ea2d296bbdcf03d27" => :mavericks
sha256 "5b1e6e98ae5a2b9dc18ca9d7a1de74db21fe1b7918498e12019e7a3e72ff12d1" => :mountain_lion
sha256 "d07b99e6c7f1ae0b4f6d461ce4386afb3e9ad6ef8436abc743c768943d532c5e" => :x86_64_linux
end
def install
inreplace "scripts/recon.pl", '$path = "";', "$path = \"#{bin}\";"
bin.mkdir
system *%W[make -C src]
system *%W[make -C src install BINDIR=#{bin} MANDIR=#{man}]
bin.install Dir["scripts/*"]
doc.install %W[00README COPYRIGHT INSTALL LICENSE]
end
test do
assert_match "usage", shell_output("#{bin}/recon.pl 2>&1", 255)
end
end