-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhmmer.rb
38 lines (31 loc) · 1.13 KB
/
hmmer.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
class Hmmer < Formula
desc "Build profile HMMs and scan against sequence databases"
homepage "http://hmmer.janelia.org"
# doi "10.1371/journal.pcbi.1002195"
# tag "bioinformatics"
# tag origin homebrew-science
# tag derived
url "http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2.tar.gz"
sha256 "dd16edf4385c1df072c9e2f58c16ee1872d855a018a2ee6894205277017b5536"
revision 1
head do
url "https://svn.janelia.org/eddylab/eddys/src/hmmer/trunk"
depends_on "autoconf" => :build
end
option "without-test", "Skip build-time tests (not recommended)"
deprecated_option "without-check" => "without-test"
def install
system "autoconf" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "check" if build.with? "test"
system "make", "install"
# Installing libhmmer.a causes trouble for infernal.
# See https://github.com/Homebrew/homebrew-science/issues/1931
libexec.install lib/"libhmmer.a", include
doc.install "Userguide.pdf", "tutorial"
end
test do
assert_match "PF00069.17", shell_output("#{bin}/hmmstat #{doc}/tutorial/minifam")
end
end