29 lines
957 B
Ruby
29 lines
957 B
Ruby
|
class Augustus < Formula
|
||
|
desc "Predict genes in eukaryotic genomic sequences"
|
||
|
homepage "http://bioinf.uni-greifswald.de/augustus/"
|
||
|
url "http://bioinf.uni-greifswald.de/augustus/binaries/augustus-3.3.tar.gz"
|
||
|
sha256 "f6470931e835d8da16288e501f95287df0f71f6bd6b6c8b49c3cf33c1e7f18e5"
|
||
|
|
||
|
depends_on "boost"
|
||
|
|
||
|
def install
|
||
|
# Prevent symlinking into /usr/local/bin/
|
||
|
inreplace "Makefile", %r{ln -sf.*/usr/local/bin/}, "#ln -sf"
|
||
|
|
||
|
# Compile executables for macOS. Tarball ships with executables for Linux.
|
||
|
system "make"
|
||
|
|
||
|
system "make", "install", "INSTALLDIR=#{prefix}"
|
||
|
bin.env_script_all_files libexec/"bin", :AUGUSTUS_CONFIG_PATH => prefix/"config"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
(testpath/"test.fasta").write <<~EOS
|
||
|
>U00096.2:1-70
|
||
|
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
|
||
|
EOS
|
||
|
cmd = "#{bin}/augustus --species=human test.fasta"
|
||
|
assert_match "Predicted genes", shell_output(cmd)
|
||
|
end
|
||
|
end
|