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.
|
2017-06-23 00:12:19 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2017-06-23 00:12:19 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class GmapGsnap(AutotoolsPackage):
|
|
|
|
"""GMAP: A Genomic Mapping and Alignment Program for
|
|
|
|
mRNA and EST Sequences, and GSNAP: Genomic Short-read
|
|
|
|
Nucleotide Alignment Program"""
|
|
|
|
|
|
|
|
homepage = "http://research-pub.gene.com/gmap/"
|
|
|
|
url = "http://research-pub.gene.com/gmap/src/gmap-gsnap-2017-06-16.tar.gz"
|
|
|
|
|
2019-05-15 04:58:48 +08:00
|
|
|
version('2019-05-12', sha256='3dc1b6ee4f6c049c07bcf4a5aba30eb2d732997241cdcad818dab571719f8008')
|
2019-02-23 08:36:40 +08:00
|
|
|
version('2019-02-15', sha256='7e82b9867a1e561b4816fb2f2fb916294077c384c6a88bb94cce39bfe71ab3ac')
|
2018-09-29 06:07:08 +08:00
|
|
|
version('2018-07-04', sha256='a9f8c1f0810df65b2a089dc10be79611026f4c95e4681dba98fea3d55d598d24')
|
2018-03-28 23:45:47 +08:00
|
|
|
version('2018-03-25', 'f08e65c1e4d9574a3eb7f15f8ca6af16')
|
2018-02-20 14:09:05 +08:00
|
|
|
version('2018-02-12', '13152aedeef9ac66be915fc6bf6464f2')
|
2017-06-23 00:12:19 +08:00
|
|
|
version('2017-06-16', 'fcc91b8bdd4bf12ae3124de0c00db0c0')
|
2017-12-22 13:56:58 +08:00
|
|
|
version('2014-12-28', '1ab07819c9e5b5b8970716165ccaa7da')
|
2018-09-27 00:56:39 +08:00
|
|
|
|
2018-09-29 01:41:41 +08:00
|
|
|
depends_on('zlib')
|
|
|
|
depends_on('bzip2')
|
|
|
|
|
2018-09-27 00:56:39 +08:00
|
|
|
variant(
|
|
|
|
'simd',
|
|
|
|
description='CPU support.',
|
|
|
|
values=('avx2', 'sse42', 'avx512', 'sse2'),
|
2018-09-29 01:41:41 +08:00
|
|
|
multi=True,
|
|
|
|
default='sse2'
|
2018-09-27 00:56:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
def configure(self, spec, prefix):
|
|
|
|
configure = Executable('../configure')
|
|
|
|
|
|
|
|
for simd in spec.variants['simd'].value:
|
|
|
|
with working_dir(simd, create=True):
|
|
|
|
configure('--with-simd-level={0}'.format(simd),
|
|
|
|
'--prefix={0}'.format(prefix))
|
|
|
|
|
|
|
|
def build(self, spec, prefix):
|
|
|
|
for simd in spec.variants['simd'].value:
|
|
|
|
with working_dir(simd):
|
|
|
|
make()
|
|
|
|
|
|
|
|
def check(self):
|
|
|
|
for simd in self.spec.variants['simd'].value:
|
|
|
|
with working_dir(simd):
|
|
|
|
make('check')
|
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
|
|
|
for simd in spec.variants['simd'].value:
|
|
|
|
with working_dir(simd):
|
|
|
|
make('install')
|