diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/mlst/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/mlst/package.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mlst/package.py b/var/spack/repos/builtin/packages/mlst/package.py new file mode 100644 index 0000000000..fb2b7b585c --- /dev/null +++ b/var/spack/repos/builtin/packages/mlst/package.py @@ -0,0 +1,36 @@ +# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +from spack.package import * + + +class Mlst(Package): + """Scan contig files against traditional PubMLST typing schemes""" + + homepage = "https://github.com/tseemann/mlst" + url = "https://github.com/tseemann/mlst/archive/refs/tags/v2.22.1.tar.gz" + + version("2.22.1", sha256="a8f64d7cb961a8e422e96a19309ad8707f8792d9f755a9e5a1f5742986d19bca") + + depends_on("perl@5.26:", type="run") + depends_on("perl-moo", type="run") + depends_on("perl-list-moreutils", type="run") + depends_on("perl-json", type="run") + depends_on("perl-file-which", type="run") + depends_on("blast-plus@2.9.0:", type="run") + depends_on("any2fasta", type="run") + # dependencies for scripts + depends_on("parallel", type="run") + depends_on("curl", type="run") + + def install(self, spec, prefix): + mkdirp(prefix.bin) + mkdirp(prefix.db) + mkdirp(prefix.perl5) + install_tree("bin", prefix.bin) + install_tree("scripts", prefix.bin) + install_tree("db", prefix.db) + install_tree("perl5", prefix.perl5) |