diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/phast/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/phast/package.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/phast/package.py b/var/spack/repos/builtin/packages/phast/package.py new file mode 100644 index 0000000000..503246614c --- /dev/null +++ b/var/spack/repos/builtin/packages/phast/package.py @@ -0,0 +1,39 @@ +# Copyright 2013-2018 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 Phast(MakefilePackage): + """PHAST is a freely available software package for comparative and + evolutionary genomics.""" + + homepage = "http://compgen.cshl.edu/phast/index.php" + url = "https://github.com/CshlSiepelLab/phast/archive/v1.4.tar.gz" + + version('1.4', '2bc0412ba58ea1f08ba5e12fad43b4c7') + + # phast cannot build with clapack using external blas + depends_on('clapack~external-blas') + + build_directory = 'src' + + @property + def build_targets(self): + targets = ['CLAPACKPATH={0}'.format(self.spec['clapack'].prefix)] + return targets + + def edit(self, spec, prefix): + with working_dir(self.build_directory): + filter_file(r'\$\{PWD\}', + '$(dir $(realpath $(firstword $(MAKEFILE_LIST))))', + 'make-include.mk') + filter_file(r'\$\{PWD\}', + '$(dir $(realpath $(firstword $(MAKEFILE_LIST))))', + 'Makefile') + + def install(self, spec, prefix): + install_tree('bin', prefix.bin) + install_tree('lib', prefix.lib) |