abyss: prefer system gcc on Linux

and provide alternative test for Linux when column is not installed on the system.
master
Michka Popoff 2021-03-05 23:18:03 +01:00
parent 8a3b58f918
commit 3551ad3826
1 changed files with 10 additions and 2 deletions

View File

@ -28,9 +28,12 @@ class Abyss < Formula
depends_on "boost" => :build
depends_on "google-sparsehash" => :build
depends_on "gcc"
depends_on "open-mpi"
on_macos do
depends_on "gcc"
end
fails_with :clang # no OpenMP support
resource("testdata") do
@ -53,7 +56,12 @@ class Abyss < Formula
test do
testpath.install resource("testdata")
system "#{bin}/abyss-pe", "k=25", "name=ts", "in=reads1.fastq reads2.fastq"
if which("column")
system "#{bin}/abyss-pe", "k=25", "name=ts", "in=reads1.fastq reads2.fastq"
else
# Fix error: abyss-tabtomd: column: not found
system "#{bin}/abyss-pe", "unitigs", "scaffolds", "k=25", "name=ts", "in=reads1.fastq reads2.fastq"
end
system "#{bin}/abyss-fac", "ts-unitigs.fa"
end
end