diff options
author | ilbiondo <61497728+ilbiondo@users.noreply.github.com> | 2020-04-15 16:37:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 16:37:25 +0200 |
commit | 4afdaa5f4b611ebf7419ec2098baa0ba4a50398f (patch) | |
tree | 86d23801bf63dedb041b2b9868029ac6632cb093 | |
parent | 666bc844be759e6d289b0f62866138b6177cf18a (diff) | |
download | spack-4afdaa5f4b611ebf7419ec2098baa0ba4a50398f.tar.gz spack-4afdaa5f4b611ebf7419ec2098baa0ba4a50398f.tar.bz2 spack-4afdaa5f4b611ebf7419ec2098baa0ba4a50398f.tar.xz spack-4afdaa5f4b611ebf7419ec2098baa0ba4a50398f.zip |
IQ-TREE: added new package at v1.6.12 (#16064)
-rw-r--r-- | var/spack/repos/builtin/packages/iq-tree/package.py | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/iq-tree/package.py b/var/spack/repos/builtin/packages/iq-tree/package.py new file mode 100644 index 0000000000..9058a66f10 --- /dev/null +++ b/var/spack/repos/builtin/packages/iq-tree/package.py @@ -0,0 +1,51 @@ +# Copyright 2013-2020 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 import * + + +class IqTree(CMakePackage): + """IQ-TREE Efficient software for phylogenomic inference""" + + homepage = "http://www.iqtree.org" + git = "https://github.com/Cibiv/IQ-TREE.git" + url = "https://github.com/Cibiv/IQ-TREE/archive/v1.6.12.tar.gz" + + version('1.6.12', sha256='9614092de7a157de82c9cc402b19cc8bfa0cb0ffc93b91817875c2b4bb46a284') + + variant('openmp', default=True, description='Enable OpenMP support.') + variant('mpi', default=False, description='Enable MPI support.') + + maintainers = ['ilbiondo'] + + # Depends on Eigen3 and zlib + + depends_on("boost") + depends_on("eigen") + depends_on("zlib") + depends_on('mpi', when='+mpi') + + def cmake_args(self): + + # Note that one has to specify "single" to get a single + # threaded build. Otherwise OpenMP is assumed + + spec = self.spec + args = [] + iqflags = [] + + if '+openmp' in spec: + iqflags.append('omp') + + if '+mpi' in spec: + iqflags.append('mpi') + + if not iqflags: + iqflags.append('single') + + args.append('-DIQTREE_FLAGS=' + ",".join(iqflags)) + + return args |