forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaker.rb
69 lines (60 loc) · 2.32 KB
/
maker.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
require 'formula'
class Maker < Formula
homepage 'http://www.yandell-lab.org/software/maker.html'
#doi '10.1101/gr.6743907' => 'MAKER', '10.1186/1471-2105-12-491' => 'MAKER2', '10.1104/pp.113.230144' => 'MAKER-P'
#tag "bioinformatics"
url "http://yandell.topaz.genetics.utah.edu/maker_downloads/static/maker-2.31.8.tgz"
sha1 "056d4b5c2d9ca9397ea236899bedc0b8ca9c1ca5"
depends_on 'augustus' => :optional
depends_on 'blast' => :recommended
depends_on 'exonerate' => :recommended
depends_on 'infernal' => :optional
depends_on 'mir-prefer' => :optional
depends_on :mpi => :optional
depends_on 'postgresql' => :optional
depends_on 'repeatmasker' => :recommended
depends_on 'snap' => :recommended
depends_on 'snoscan' => :optional
depends_on 'trnascan' => :optional
# No formula: depends_on 'genemark-es' => :optional
# No formula: depends_on 'genemarks' => :optional
depends_on 'Bio::Perl' => :perl
depends_on 'Bit::Vector' => :perl
depends_on 'DBD::SQLite' => :perl
depends_on 'DBI' => :perl
depends_on 'File::Which' => :perl
depends_on 'IO::All' => :perl
depends_on 'IO::Prompt' => :perl
depends_on "Inline::C" => [:perl, "Inline"]
depends_on "DBD::Pg" => :perl if build.with? "postgresql"
depends_on 'Perl::Unsafe::Signals' => :perl
depends_on 'PerlIO::gzip' => :perl
depends_on 'forks' => :perl
depends_on 'forks::shared' => :perl
def install
cd 'src' do
mpi = if build.with?("mpi") then "yes" else "no" end
system "(echo #{mpi}; yes '') |perl Build.PL"
system *%w[./Build install]
end
libexec.install Dir['*']
bin.install_symlink %w[
../libexec/bin/gff3_merge
../libexec/bin/maker]
end
def caveats; <<-EOS.undent
Optional components of MAKER
GeneMarkS and GeneMark-ES. Download from http://exon.biology.gatech.edu
FGENESH 2.4 or higher. Purchase from http://www.softberry.com
MAKER is available for academic use under either the Artistic
License 2.0 developed by the Perl Foundation or the GNU General
Public License developed by the Free Software Foundation.
MAKER is not available for commercial use without a license. Those
wishing to license MAKER for commercial use should contact Beth
Drees at the University of Utah TCO to discuss your needs.
EOS
end
test do
system 'maker --version'
end
end