spack/var/spack/repos/builtin/packages/phast/package.py
Todd Gamblin a8ccb8e116 copyrights: update all files with license headers for 2021
- [x] add `concretize.lp`, `spack.yaml`, etc. to licensed files
- [x] update all licensed files to say 2013-2021 using
      `spack license update-copyright-year`
- [x] appease mypy with some additions to package.py that needed
      for oneapi.py
2021-01-02 12:12:00 -08:00

40 lines
1.3 KiB
Python

# Copyright 2013-2021 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', sha256='287c77599c51256a3adbd62ed217cb6d6a547fcec2c29262e9d61fa32ed92b99')
# 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)