Skip to content

Commit

Permalink
fastani: Bump revision for gcc@9
Browse files Browse the repository at this point in the history
- See brewsci#1186
- Also: compress test data
  • Loading branch information
lmrodriguezr committed Mar 13, 2021
1 parent 00fdd27 commit 94316b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/fastani.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Fastani < Formula
url "https://github.com/ParBLiSS/FastANI/archive/v1.32.tar.gz"
sha256 "f66b3bb5b272aa3db4deae782e47020fa9aae63eecbbd6fd93df876237d3b2e5"
license "Apache-2.0"
revision 1
head "https://github.com/ParBLiSS/FastANI.git"

bottle do
Expand All @@ -20,6 +21,7 @@ class Fastani < Formula
uses_from_macos "zlib"

on_macos do
depends_on "gcc@9"
depends_on "libomp"
end

Expand All @@ -33,15 +35,16 @@ def install
"--prefix=#{prefix}",
"--with-gsl=#{Formula["gsl"].opt_prefix}",
"--with-boost=#{Formula["boost"].opt_prefix}"
system "gzip", "-9f", *Dir["data/*.fna"]
system "make", "install"
pkgshare.install "data", "scripts"
end

test do
assert_match "fragment length", shell_output("#{bin}/fastANI --help 2>&1")
system "#{bin}/fastANI",
"-q", pkgshare/"data/Shigella_flexneri_2a_01.fna",
"-r", pkgshare/"data/Escherichia_coli_str_K12_MG1655.fna",
"-q", pkgshare/"data/Shigella_flexneri_2a_01.fna.gz",
"-r", pkgshare/"data/Escherichia_coli_str_K12_MG1655.fna.gz",
"-o", testpath/"out",
"--matrix"
assert_predicate testpath/"out", :exist?
Expand Down

0 comments on commit 94316b8

Please sign in to comment.