spack/var/spack/repos/builtin/packages/pacbio-dazz-db/package.py
Todd Gamblin 5425a3dad4 flake8: fix flake8 issues with invalid escapes
- in many files, regular strings were used in places where raw strings
  should've been used.

- convert these to raw strings and get rid of new flake8 errors
2019-01-01 00:44:28 -08:00

35 lines
1.3 KiB
Python

# Copyright 2013-2019 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 PacbioDazzDb(MakefilePackage):
"""The Dazzler Database Library. This version is a special fork
required for some pacbio utilities."""
homepage = "https://github.com/PacificBiosciences/DAZZ_DB"
git = "https://github.com/PacificBiosciences/DAZZ_DB.git"
version('2017-04-10', commit='f29d27d51f460563481cd227d17f4bdc5e288365')
depends_on('gmake', type='build')
def edit(self, spec, prefix):
mkdirp(prefix.bin)
mkdirp(prefix.lib)
mkdirp(prefix.include)
makefile = FileFilter('Makefile')
makefile.filter(r'DEST_DIR\s*=\s*~/bin', 'DEST_DIR = ' + prefix.bin)
gmf = FileFilter('GNUmakefile')
gmf.filter(r'rsync\s*-av\s*\$\{ALL\}\s*\$\{PREFIX\}/bin',
'cp ${ALL} ' + prefix.bin)
gmf.filter(r'rsync\s*-av\s*libdazzdb.*\s*\$\{PREFIX\}/lib',
'cp libdazzdb.* ' + prefix.lib)
gmf.filter((r'rsync\s*-av\s*\$\(wildcard\s*\$\{THISDIR\}/\*.h'
r'\)\s*\$\{PREFIX\}/include'),
'cp *.h ' + prefix.include)