spades: add version 4.0.0 and new variants (#45278)

Signed-off-by: Shane Nehring <snehring@iastate.edu>
This commit is contained in:
snehring 2024-07-18 12:24:05 -05:00 committed by GitHub
parent ed9058618a
commit 3381879358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,9 @@ class Spades(CMakePackage):
homepage = "https://cab.spbu.ru/software/spades/"
url = "https://github.com/ablab/spades/releases/download/v3.15.3/SPAdes-3.15.3.tar.gz"
maintainers("snehring")
version("4.0.0", sha256="07c02eb1d9d90f611ac73bdd30ddc242ed51b00c8a3757189e8a8137ad8cfb8b")
version("3.15.5", sha256="155c3640d571f2e7b19a05031d1fd0d19bd82df785d38870fb93bd241b12bbfa")
version("3.15.3", sha256="b2e5a9fd7a65aee5ab886222d6af4f7b7bc7f755da7a03941571fabd6b9e1499")
version("3.15.0", sha256="6719489fa4bed6dd96d78bdd4001a30806d5469170289085836711d1ffb8b28b")
@ -29,9 +31,18 @@ class Spades(CMakePackage):
depends_on("zlib-api")
depends_on("bzip2")
variant("sra", default=True, description="Build with ncbi sra file support", when="@4:")
variant("tools", default=True, description="Build additional tools", when="@4:")
# SPAdes will explicitly not compile with gcc < 5.3.0
conflicts("%gcc@:5.2.9")
conflicts("%gcc@7.1.0:", when="@:3.10.1")
root_cmakelists_dir = "src"
def cmake_args(self):
args = [self.define_from_variant("SPADES_USE_NCBISDK", "sra")]
if self.spec.satisfies("+tools"):
args.append("-DSPADES_ENABLE_PROJECTS:STRING=all")
return args