2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 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-08-12 06:26:20 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2017-08-12 06:26:20 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
|
|
|
class PacbioDaligner(MakefilePackage):
|
|
|
|
"""Daligner: The Dazzler "Overlap" Module. This is a special fork
|
|
|
|
required for some pacbio utilities."""
|
|
|
|
|
|
|
|
homepage = "https://github.com/PacificBiosciences/DALIGNER"
|
2018-07-24 09:55:17 +08:00
|
|
|
git = "https://github.com/PacificBiosciences/DALIGNER.git"
|
2017-08-12 06:26:20 +08:00
|
|
|
|
2018-07-24 09:55:17 +08:00
|
|
|
version('2017-08-05', commit='0fe5240d2cc6b55bf9e04465b700b76110749c9d')
|
2017-08-12 06:26:20 +08:00
|
|
|
|
|
|
|
depends_on('gmake', type='build')
|
|
|
|
depends_on('pacbio-dazz-db')
|
|
|
|
|
|
|
|
def edit(self, spec, prefix):
|
|
|
|
mkdir(prefix.bin)
|
|
|
|
makefile = FileFilter('Makefile')
|
2019-01-01 15:25:40 +08:00
|
|
|
makefile.filter(r'DEST_DIR\s*=\s*~/bin', 'DEST_DIR = ' + prefix.bin)
|
2017-08-12 06:26:20 +08:00
|
|
|
gmf = FileFilter('GNUmakefile')
|
2019-01-01 15:25:40 +08:00
|
|
|
gmf.filter(r'rsync\s*-av\s*\$\{ALL\}\s*\$\{PREFIX\}/bin',
|
2017-08-12 06:26:20 +08:00
|
|
|
'cp ${ALL} ' + prefix.bin)
|