2019-01-01 14:04:23 +08:00
|
|
|
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-07-27 05:25:40 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-07-27 05:25:40 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class Prank(Package):
|
|
|
|
"""A powerful multiple sequence alignment browser."""
|
|
|
|
|
|
|
|
homepage = "http://wasabiapp.org/software/prank/"
|
2019-10-29 09:27:54 +08:00
|
|
|
url = "http://wasabiapp.org/download/prank/prank.source.170427.tgz"
|
2016-07-27 05:25:40 +08:00
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('170427', sha256='623eb5e9b5cb0be1f49c3bf715e5fabceb1059b21168437264bdcd5c587a8859')
|
2016-07-27 05:25:40 +08:00
|
|
|
|
|
|
|
depends_on('mafft')
|
|
|
|
depends_on('exonerate')
|
2016-07-29 07:48:17 +08:00
|
|
|
depends_on('bpp-suite') # for bppancestor
|
2018-03-08 15:47:46 +08:00
|
|
|
conflicts('%gcc@7.2.0', when='@:150803')
|
2016-07-27 05:25:40 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
with working_dir('src'):
|
2019-11-25 22:14:18 +08:00
|
|
|
|
|
|
|
filter_file('gcc', '{0}'.format(spack_cc),
|
|
|
|
'Makefile', string=True)
|
|
|
|
filter_file('g++', '{0}'.format(spack_cxx),
|
|
|
|
'Makefile', string=True)
|
|
|
|
if not spec.target.family == 'x86_64':
|
|
|
|
filter_file('-m64', '', 'Makefile', string=True)
|
|
|
|
filter_file('-pipe', '', 'Makefile', string=True)
|
|
|
|
|
2016-07-27 05:25:40 +08:00
|
|
|
make()
|
|
|
|
mkdirp(prefix.bin)
|
|
|
|
install('prank', prefix.bin)
|