2022-01-13 03:21:41 +08:00
|
|
|
# Copyright 2013-2022 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.
|
2017-03-29 10:14:26 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2022-05-29 00:55:44 +08:00
|
|
|
from spack.package import *
|
2017-03-29 10:14:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
class Blat(Package):
|
2017-06-25 13:22:55 +08:00
|
|
|
"""BLAT (BLAST-like alignment tool) is a pairwise sequence
|
2017-03-29 10:14:26 +08:00
|
|
|
alignment algorithm."""
|
|
|
|
|
|
|
|
homepage = "https://genome.ucsc.edu/FAQ/FAQblat.html"
|
2022-04-27 18:26:57 +08:00
|
|
|
url = "https://genome-test.gi.ucsc.edu/~kent/src/blatSrc35.zip"
|
|
|
|
maintainers = ['snehring']
|
2017-03-29 10:14:26 +08:00
|
|
|
|
2022-04-27 18:26:57 +08:00
|
|
|
version('37', sha256='88ee2b272d42ab77687c61d200b11f1d58443951069feb7e10226a2509f84cf2')
|
2019-10-11 13:44:41 +08:00
|
|
|
version('35', sha256='06d9bcf114ec4a4b21fef0540a0532556b6602322a5a2b33f159dc939ae53620')
|
2017-03-29 10:14:26 +08:00
|
|
|
|
|
|
|
depends_on('libpng')
|
2022-04-27 18:26:57 +08:00
|
|
|
depends_on('libuuid', when='@37:')
|
|
|
|
depends_on('mysql-client', when='@37:')
|
|
|
|
|
|
|
|
@when('@37')
|
|
|
|
def patch(self):
|
|
|
|
filter_file(r',src\/hg\/', ',NOMATCHME', 'inc/userApp.mk')
|
|
|
|
|
|
|
|
def flag_handler(self, name, flags):
|
|
|
|
if self.spec.satisfies('@35') and name.lower() == 'cflags':
|
|
|
|
flags.append('-fcommon')
|
|
|
|
return (flags, None, None)
|
2017-03-29 10:14:26 +08:00
|
|
|
|
2019-11-30 05:00:44 +08:00
|
|
|
def setup_build_environment(self, env):
|
|
|
|
env.set('MACHTYPE', 'x86_64')
|
2017-03-29 10:14:26 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
2020-07-03 14:38:23 +08:00
|
|
|
filter_file('CC=.*', 'CC={0}'.format(spack_cc), 'inc/common.mk')
|
2017-03-29 10:14:26 +08:00
|
|
|
mkdirp(prefix.bin)
|
|
|
|
make("BINDIR=%s" % prefix.bin)
|