forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
augustus.rb
32 lines (26 loc) · 823 Bytes
/
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
require 'formula'
class Augustus < Formula
homepage 'http://bioinf.uni-greifswald.de/augustus/'
url 'http://bioinf.uni-greifswald.de/augustus/binaries/augustus.3.0.1.tar.gz'
mirror 'https://science-annex.org/pub/augustus/augustus.3.0.1.tar.gz'
sha1 '19f40b3b834aba0386646d9cb8120caf3f0eb64e'
depends_on 'boost' => :recommended # for gz support
fails_with :clang do
build 503
cause 'error: invalid operands to binary expression'
end
def install
system 'make'
rm_r %w[include mysql++ src]
libexec.install Dir['*']
bin.install_symlink '../libexec/bin/augustus'
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 'augustus --version'
end
end