forked from Ensembl/homebrew-ensembl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaugustus.rb
38 lines (31 loc) · 1.13 KB
/
augustus.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 Augustus < Formula
desc "predict genes in eukaryotic genomic sequences"
homepage "http://bioinf.uni-greifswald.de/augustus/"
# doi "10.1093/nar/gkh379"
# tag "bioinformatics"
url "http://bioinf.uni-greifswald.de/augustus/binaries/augustus-3.2.2.tar.gz"
mirror "http://bioinf.uni-greifswald.de/augustus/binaries/old/augustus-3.2.2.tar.gz"
sha256 "bb36fcaaaab32920908e794d04e6cb57a0c61d689bfbd31b9b6315233ea3559e"
depends_on "bamtools"
depends_on "ensembl/ensembl/boost"
depends_on "gsl"
depends_on "lp_solve"
depends_on "suite-sparse"
def install
args = []
args << "COMPGENEPRED=true"
system "make", "-C", "auxprogs/filterBam/src", "BAMTOOLS=#{Formula["bamtools"].opt_include}/bamtools", *args
system "make", "INCLUDES=#{Formula["bamtools"].opt_include}/bamtools", *args
rm_r %w[include src]
libexec.install Dir["*"]
bin.install_symlink Dir[libexec/"bin/*"]
end
def caveats; <<-EOS.undent
Set the environment variable AUGUSTUS_CONFIG_PATH:
export AUGUSTUS_CONFIG_PATH=#{opt_prefix}/libexec/config
EOS
end
test do
system "#{bin}/augustus", "--version"
end
end